Learn R Programming

nlpsem (version 0.3)

getMIX_MULTI.loadings: Get Factor Loadings for a Mixture Model with MGM as Submodels

Description

This function specifies the factor loadings for a mixture model with MGM as submodels. The longitudinal outcomes are fit by Latent Growth Curve Models or a Latent Change Score Models.

Usage

getMIX_MULTI.loadings(
  nClass,
  y_model,
  t_var,
  y_var,
  curveFun,
  intrinsic = NULL,
  records
)

Value

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

Arguments

nClass

A numeric value to indicate the number of latent classes.

y_model

A character string specifying how to fit the longitudinal outcome. Supported values are "LGCM" and "LCSM". It takes the value passed from `getMIX()`.

t_var

t_var A character vector where each element represents a prefix for column names corresponding to the time variables for the respective longitudinal process. It takes the value passed from `getMIX()`.

y_var

A character vector where each element represents a prefix for column names corresponding to the outcome variables for the respective longitudinal process. It takes the value passed from `getMIX()`.

curveFun

The specified functional form of the growth curve. Supported options include: "linear" (or "LIN"), "quadratic" (or "QUAD"), "negative exponential" (or "EXP"), "Jenss-Bayley" (or "JB"), "bilinear spline" (or "BLS"), and "nonparametric" (or "NonP"). It takes the value passed from `getMIX()`.

intrinsic

A boolean flag for whether an intrinsically nonlinear longitudinal model is built up. It takes the value passed from `getMIX()`.

records

A list of numeric vectors where each vector contains indices of the observed time points for the respective longitudinal processes. It takes the value passed from `getMIX()`.