getMIX_MED.loadings function

Get Factor Loadings for a Mixture Model or Multiple Group Model with Longitudinal Mediation Model with Specified Functional Curves as Submodels

Get Factor Loadings for a Mixture Model or Multiple Group Model with Longitudinal Mediation Model with Specified Functional Curves as Submodels

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 )

Arguments

  • nClass: An integer specifying the number of classes for the mixture model or multiple group model. It takes the value passed from getMIX() or getMGroup().

  • 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 getMIX() or getMGroup().

  • 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 getMIX() or getMGroup().

  • 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 getMIX() or getMGroup().

  • x_var: A string specifying the baseline predictor if x_type = "baseline", or the prefix of the column names corresponding to the predictor variable at each study wave if x_type = "longitudinal". It takes the value passed from getMIX()

    or getMGroup().

  • x_type: A string indicating the type of predictor variable used in the model. Supported values are "baseline"

    and "longitudinal". It takes the value passed from getMIX() or getMGroup().

  • 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 getMIX() or getMGroup().

  • y_records: A numeric vector specifying indices of the study waves for the outcome variable. It is the first vector in records specified in getMIX() or getMGroup().

  • m_records: A numeric vector specifying indices of the study waves for the mediator variable. It is the second vector in records specified in getMIX() or getMGroup().

  • x_records: A numeric vector specifying indices of the study waves for the predictor variable. Default value is NULL, which is for x_type = "baseline". If x_type = "longitudinal", it is the third vector in records specified in getMIX() or getMGroup().

Returns

A list containing the specification of definition variables (i.e., individual measurement occasions) and factor loadings of a longitudinal mediation model.

  • Maintainer: Jin Liu
  • License: GPL (>= 3.0)
  • Last published: 2023-09-12