dccs {hmmr} | R Documentation |
Dimensional Change Card Sort Task Data
Description
Data from 3-5 year old children performing on the dimensional change card sort task published in Van Bers et al (2011).
Usage
data(dccs)
data(dccslong)
Format
A data.frame consisting of the following variable:
pp
participant number
ageM
(numeric) age in months
ageY
(numeric) age in years
ageGr
(numeric) age group
sex
(numeric) age group
nTrPre
(numeric) number of trials completed pre-switch
nTrPre
(numeric) number of trials correct in pre-switch trials
t1Post
(numeric) indicator variable for post switch trial indicating correct (1) or incorrect (0)
t2Post
(numeric) indicator variable for post switch trial indicating correct (1) or incorrect (0)
t3Post
(numeric) indicator variable for post switch trial indicating correct (1) or incorrect (0)
t4Post
(numeric) indicator variable for post switch trial indicating correct (1) or incorrect (0)
t5Post
(numeric) indicator variable for post switch trial indicating correct (1) or incorrect (0)
t6Post
(numeric) indicator variable for post switch trial indicating correct (1) or incorrect (0)
nCorPost
(numeric) number of trials correct post-switch
passPost
(numeric) indicator variable whether post-switch test was passed
Source
Bianca M.C.W. van Bers, Ingmar Visser, Tessa J.P. van Schijndel, Dorothy J. Mandell and Maartje E.J. Raijmakers (2011). The dynamics of development on the Dimensional Change Card Sorting task. Developmental Science, vol 14(5), 960-971.
Examples
# the original data was in wide format; for analysis with hidden Markov models,
# data in long format is more convenient; the following code was used to reshape
# the data from wide to long format (and make a selection of the columns)
data(dccs)
dccslong <- reshape(
dccs[,c("pp","ageM","sex","t1Post","t2Post","t3Post","t4Post","t5Post","t6Post")],
direction="long",
varying=list(4:9) )
dccslong <- dccslong[order(dccslong$pp),-6]
names(dccslong) <- c("pp","ageM","sex","trial","acc")