# Simulated Data with Latent and Observed Covariates Interaction

Source:`R/data.R`

`latent_covariates.Rd`

Simulated dataset for use in examples and testing with a latent covariate interacting with an observed covariate.

## Format

`latent_covariates`

A data frame with 600 rows and 5 columns:

- id
Subject ID.

- type
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.- x
Explanatory variable.

- y
Observed response. Note, this includes both the actual response, and the measurements of the latent variable, since mathematically they are all treated as responses.

- response
Dummy variable indicating whether the given row is a response or not.

## See also

Other datasets:
`cognition`

,
`diet`

,
`epilep`

,
`hsced`

,
`latent_covariates_long`

,
`lifespan`

,
`mresp`

,
`mresp_hsced`