Simulated dataset for use in examples and testing with a latent covariate interacting with an observed covariate. In this data, each response has been measured six times for each subject.
latent_covariates_long
latent_covariates_long
A data frame with 800 rows and 5
columns:
Subject ID.
Type of observation in the y
variable.
If it equals "measurement1"
or "measurement2"
then the
observation is a measurement of the latent variable. If it equals
"response"
, then the observation is the actual response.
Explanatory variable.
Observed response. Note, this includes both the actual response, and the measurements of the latent variable, since mathematically they are all treated as responses.
Dummy variable indicating whether the given row is a response or not.
Other datasets:
cognition
,
diet
,
epilep
,
hsced
,
latent_covariates
,
lifespan
,
mresp
,
mresp_hsced