regmed.lavaan.model: Create a lavaan model

Description Usage Arguments Details Value Author(s)

View source: R/regmed.lavaan.model.R

Description

Create a lavaan model for input to lavan::sem()

Usage

1
regmed.lavaan.model(fit.edge, fit.regmed)

Arguments

fit.edge

object created by regmed.edges function

fit.regmed

object created by regmed.fit from which the fit.edge object was made

Details

The fit.regmed object is needed for the fixed covariance estimates to be put into the model statement. The summary method supersedes the default summary from the lavaan package to only return the table of coefficients, as the covariances are fixed from regmed.fit.

Value

a character string that descibes the mediation model in format of lavaan model

Author(s)

Dan Schaid, Greg Jenkins, Jason Sinnwell


regmed documentation built on April 13, 2021, 1:07 a.m.