lsttheory_es | R Documentation |
Estimate latent state-trait models for experience sampling data
lsttheory_es(
model,
ntimepoints,
nperiods = 1,
data,
addsyntax = "",
la_t_equiv = NULL,
la_o_equiv = NULL,
la_s_equiv = NULL,
vzeta_eqiv = NULL,
veps_equiv = NULL,
vtheta_equiv = NULL,
nu_equiv = NULL,
alpha_equiv = NULL,
mtheta_equiv = NULL,
gamma_t_equiv = NULL,
manifest_thetacovariates = NULL,
...
)
model |
integer or character. Can be 1-9 or one of the following: c("MSSTinvar", "STARinvar", "PTARinvar", "ITARinvar", "PITARinvar", "STAR2", "PTAR2", "ITAR2", "PITAR2"). Each model implies invariance assumptions, but details can be changed with the options below.
|
ntimepoints |
integer. The total number of measurement occasions on which data was collected. |
nperiods |
integer. The number of periods (e.g. days or weeks) on which data was collected. |
data |
a data.frame. This data frame contains the observed variables, sorted by time t and then by indicator i, i.e., Y11, Y21, Y31, ... Y12, Y22, Y32 ... Y15, Y25, Y35 ... etc. |
addsyntax |
character string. Will be added to generated lavaan syntax. |
la_t_equiv |
Character. Invariance option for factor loadings of the latent trait.
Can be one of |
la_o_equiv |
Character. Invariance option for factor loadings of the occasion factor (OCC).
Can be one of |
la_s_equiv |
Character. Invariance option for autoregression between occasion factors. Can be one of |
vzeta_eqiv |
Character. Invariance option for variances of the state residual (zeta) variables. Can be one of |
veps_equiv |
Character. Invariance option for variances of the residual (epsilon) variables.
Can be one of |
vtheta_equiv |
Character. Invariance option for variances of the latent trait. Can be one of |
nu_equiv |
Character. Invariance option for intercepts of the indicators. Can be one of |
alpha_equiv |
Character. Invariance option for intercepts of the latent states.
Only relevant for models with a single trait or period-specific traits.
Can be one of |
mtheta_equiv |
Character. Invariance option for means of the latent traits. Character. Can be one of |
gamma_t_equiv |
Character. Invariance option for regression coefficient from covariates to the latent trait variables. |
manifest_thetacovariates |
Vector or single character. Name or the variable (or variables) in the dataset which are covariates that further explain the trait variables in the model. |
... |
Further arguments passed to lower-level functions |
Julia Norget
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.