| cognition {galamm} | R Documentation |
Simulated Data with Measurements of Cognitive Abilities
Description
Simulated dataset mimicking the measurement of abilities in three cognitive
domains. The latent traits (cognitive ability in a given domain) are based on
the functions in mgcv::gamSim
(Wood 2017), and depend on the
explanatory variable x.
Usage
cognition
Format
cognition A data frame with 14400 rows and 7 columns:
- id
Subject ID.
- domain
Factor variable denoting the cognitive domain.
- x
Explanatory variable.
- timepoint
Factor variable denoting the timepoint.
- item
Factor variable denoting the item within the tests of each cognitive domain.
- trials
Number of trials, if applicable.
- y
Response variable. For domain 1 a real number, for domain 2 a binomially distributed variable based on a single trial, for domain 3 a real number.
References
Wood SN (2017). Generalized Additive Models: An Introduction with R, 2 edition. Chapman and Hall/CRC.
See Also
Other datasets:
diet,
epilep,
hsced,
latent_covariates,
latent_covariates_long,
lifespan,
mresp,
mresp_hsced