View source: R/MED.loading_helper.R
getMED.loadings | R Documentation |
This function specifies the factor loadings for a longitudinal mediation model with given functional form.
getMED.loadings(
t_var,
y_var,
m_var,
x_type,
x_var,
curveFun,
y_records,
m_records,
x_records = NULL
)
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_type |
A string indicating the type of predictor variable used in the model. Supported values are |
x_var |
A string specifying the baseline predictor if |
curveFun |
A string specifying the functional form of the growth curve. Supported options include: |
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.