View source: R/MGM.mxModel_helper.R
getMGM.mxModel | R Documentation |
This function builds up an object of mxModel for a multivariate latent growth curve model or a multivariate latent change score model with user-specified functional form (including whether intrinsically nonlinear).
getMGM.mxModel(
dat,
t_var,
y_var,
curveFun,
intrinsic,
records,
y_model,
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 multiple longitudinal outcomes. It takes the value passed from |
t_var |
A vector of strings, with each element representing the prefix for column names related to the time
variable for the corresponding outcome variable at each study wave. It takes the value passed from |
y_var |
A vector of strings, with each element representing the prefix for column names corresponding to a
particular 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 |
records |
A list of numeric vectors, with each vector specifying the indices of the observed study waves for
the corresponding outcome variable. It takes the value passed from |
y_model |
A string specifying how to fit the longitudinal outcome. Supported values are |
starts |
A list of initial values for the parameters, either takes the value passed from |
A pre-optimized mxModel for a multivariate latent growth curve model or a multivariate latent change score model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.