View source: R/MIX.SUBMODEL.TVC_helper.R
getsub.TVC_l | R Documentation |
This function defines a latent growth curve model or latent change score model with time-varying covariate as class- specific models (submodels) for a longitudinal mixture model.
getsub.TVC_l(
dat,
nClass,
t_var,
records,
y_var,
curveFun,
intrinsic,
y_model,
TVC,
decompose,
growth_TIC,
starts
)
dat |
A wide-format data frame, with each row corresponding to a unique ID. It contains the observed variables with
repeated measurements and occasions for each longitudinal process, and time-invariant covariates (TICs) if any.
It takes the value passed from |
nClass |
An integer specifying the number of latent classes for the mixture model. It takes the value passed from |
t_var |
A string specifying the prefix of the column names corresponding to the time variable at each study wave.
It takes the value passed from |
records |
A numeric vector specifying the indices of the observed study waves. It takes the value passed from
|
y_var |
A string specifying the prefix of the column names corresponding to the outcome variable at each study wave.
It takes the value passed from |
curveFun |
A string specifying the functional form of the growth curve. Supported options for |
intrinsic |
A logical flag indicating whether to build an intrinsically nonlinear longitudinal model. It takes the
value passed from |
y_model |
A string specifying how to fit the longitudinal outcome. Supported values are |
TVC |
A string specifying the prefix of the column names corresponding to the time-varying covariate at each study wave.
It takes the value passed from |
decompose |
An integer specifying the decomposition option for temporal states. Supported values include |
growth_TIC |
A string or character vector specifying the column name(s) of time-invariant covariate(s) that account for the
variability of growth factors, if any. It takes the value passed from |
starts |
A list of initial values for the parameters, either takes the value passed from |
A list of manifest and latent variables and paths for an mxModel object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.