getMED.output: Extract Point Estimates And Standard Errors of Longitudinal...

View source: R/MED.output_helper.R

getMED.outputR Documentation

Extract Point Estimates And Standard Errors of Longitudinal Mediation Model

Description

This function computes and returns a data frame containing point estimates and standard errors for the parameters of a longitudinal mediation model.

Usage

getMED.output(model, y_var, m_var, x_type, x_var, curveFun, names)

Arguments

model

An object representing a fitted longitudinal mediation model.

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 getMediation().

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 getMediation().

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 getMediation().

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 getMediation().

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 getMediation().

names

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

Value

A data frame containing the point estimates and standard errors for parameters of a longitudinal mediation model.


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