ben-domingue / irw

Code related to data for the Item Response Warehouse
https://datapages.github.io/irw/
7 stars 11 forks source link

Psychometrics of the Creative Behavior Inventory (CBI) #407

Closed ben-domingue closed 1 month ago

ben-domingue commented 1 month ago

https://osf.io/h6vj4/

License: CC-By Attribution 4.0 International

[check that we do not have this?]

KingArthur0205 commented 1 month ago

Don't think we have this in the warehouse yet.

This repo includes 1 dataset of 2082 participants and 28 items on a 4-point scale.(0 to 3) The participants' data were collected from studies during the past 15 years. The data were collected over the past 15 years, and the questionnaire focuses on the frequency of specific creative activities performed by the participants.

The study column is deleted as the same set of questions are asked in all the studies.

KingArthur0205 commented 1 month ago

Data: CBI_Rodriguez_2021.csv

Code:

# Paper: https://osf.io/h6vj4/
# Data: https://osf.io/h6vj4/
library(haven)
library(dplyr)
library(tidyr)

df <- read.csv("CBI Data 2080 Cases.csv")
df <- df[, paste0("cbi", 1:28)]
df$id <- seq_len(nrow(df))
df <- pivot_longer(df, cols=-id, names_to = "item", values_to = "resp")

save(df, file="CBI_Rodriguez_2021.Rdata")
write.csv(df, "CBI_Rodriguez_2021.csv", row.names=FALSE)
KingArthur0205 commented 1 month ago

PR created: https://github.com/ben-domingue/irw/pull/409