View source: R/TVC.info_helper.R
getTVC.info | R Documentation |
This function constructs the OpenMx model paths and parameters for a TVC and its relationship with the parameters related to growth factors of a longitudinal outcome.
getTVC.info(y_var, records, growth_TIC, TVC, decompose, starts)
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 |
records |
A numeric vector specifying the indices of the observed study waves. It takes the value passed from |
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. Default is |
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 |
starts |
A list of initial values for the parameters, either takes the value passed from |
A list containing two elements: X_PARAM and KAPPA. X_PARAM is a list of OpenMx paths and parameters for the TVC, and KAPPA is an OpenMx path for the temporal effect of the TVC on the corresponding longitudinal outcome.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.