View source: R/MIX_MED.loading_helper.R
getMIX_MED.loadings | R Documentation |
This function specifies the factor loadings for a mixture model with longitudinal mediation model with given functional form as submodels
getMIX_MED.loadings(
nClass,
t_var,
y_var,
m_var,
x_var,
x_type,
curveFun,
y_records,
m_records,
x_records = NULL
)
nClass |
An integer specifying the number of classes for the mixture model or multiple group model. 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 longitudinal variable at each study wave. 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 |
m_var |
A string specifying the prefix of the column names corresponding to the mediator variable at each study wave.
It takes the value passed from |
x_var |
A string specifying the baseline predictor if |
x_type |
A string indicating the type of predictor variable used in the model. Supported values are |
curveFun |
A string specifying the functional form of the growth curve. Supported options include: "linear" (or "LIN"),
and "bilinear spline" (or "BLS"). It takes the value passed from |
y_records |
A numeric vector specifying indices of the study waves for the outcome variable. It is the first vector
in |
m_records |
A numeric vector specifying indices of the study waves for the mediator variable. It is the second vector
in |
x_records |
A numeric vector specifying indices of the study waves for the predictor variable. Default value is |
A list containing the specification of definition variables (i.e., individual measurement occasions) and factor loadings of a longitudinal mediation model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.