cognition: Simulated Data with Measurements of Cognitive Abilities

cognitionR 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 \insertCitewoodGeneralizedAdditiveModels2017galamm, 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

\insertAllCited

See Also

Other datasets: diet, epilep, hsced, latent_covariates, latent_covariates_long, lifespan, mresp, mresp_hsced


galamm documentation built on June 8, 2025, 12:42 p.m.