getUNI.loadings function

Get Factor Loadings for a Univariate Longitudinal Outcome with Specified Functional Curves

Get Factor Loadings for a Univariate Longitudinal Outcome with Specified Functional Curves

This function specifies the factor loadings for a univariate longitudinal outcome with given functional form. The longitudinal outcome is fit by a Latent Growth Curve Model or a Latent Change Score Model.

getUNI.loadings(y_model, t_var, y_var, curveFun, intrinsic, records)

Arguments

  • y_model: A string specifying how to fit the longitudinal outcome. Supported values are "LGCM" and "LCSM". It is "LGCM" or "LCSM", or takes the value passed from getTVCmodel().

  • t_var: A string specifying the prefix of the column names corresponding to the time variable at each study wave. It takes the value passed from getLGCM() or getLCSM() or getTVCmodel().

  • 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 getLGCM() or getLCSM() or getTVCmodel().

  • curveFun: A string specifying the functional form of the growth curve. Supported options for y_model = "LGCM" include: "linear" (or "LIN"), "quadratic" (or "QUAD"), "negative exponential"

    (or "EXP"), "Jenss-Bayley" (or "JB"), and "bilinear spline" (or "BLS"). Supported options for y_model = "LCSM" include: "quadratic" (or "QUAD"), "negative exponential"

    (or "EXP"), "Jenss-Bayley" (or "JB"), and "nonparametric" (or "NonP"). It takes the value passed from getLGCM() or getLCSM() or getTVCmodel().

  • intrinsic: A logical flag indicating whether to build an intrinsically nonlinear longitudinal model. It takes the value passed from getLGCM() or getLCSM() or getTVCmodel().

  • records: A numeric vector specifying indices of the study waves. It takes the value passed from getLGCM() or getLCSM() or getTVCmodel().

Returns

A list containing the specification of definition variables (i.e., individual time points for the latent growth curve models, and individual time points and individual time lags (intervals) between adjacent time points for latent change score models) and factor loadings of a univariate longitudinal outcome.

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