getTVC.output: Extract Point Estimates And Standard Errors of Latent Growth...

View source: R/TVC.output_helper.R

getTVC.outputR Documentation

Extract Point Estimates And Standard Errors of Latent Growth Curve Model Or Latent Change Score Model with a Time-varying Covariate and Time-invariant Covariates (If Any)

Description

This function computes and returns a data frame containing point estimates and standard errors for the parameters of a latent growth curve model or a latent change score model with a time-varying covariate and time-invariant covariates (if any)

Usage

getTVC.output(model, curveFun, records, y_model, decompose, growth_TIC, names)

Arguments

model

An object representing a fitted latent growth curve model or a latent change score model with a TVC. It takes the value passed from 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 getTVCmodel().

records

A numeric vector specifying the indices of the observed study waves. It takes the value passed from getTVCmodel().

y_model

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

decompose

An integer specifying the decomposition option for temporal states. Supported values include 0 (no decomposition), 1 (decomposition with interval-specific slopes as temporal states), 2 (decomposition with interval- specific changes as temporal states), and 3 (decomposition with change-from-baseline as temporal states). It takes the value passed from getTVCmodel().

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. It takes the value passed from getTVCmodel().

names

A character vector specifying parameter names. It takes the value passed from getTVCmodel().

Value

A data frame containing the point estimates and standard errors for parameters of a latent growth curve model or a latent change score model with a time-varying covariate and time-invariant covariates (if any).


nlpsem documentation built on Sept. 13, 2023, 1:06 a.m.