View source: R/regmed.lavaan.model.R
regmed.lavaan.model | R Documentation |
Create a lavaan model for input to lavan::sem()
regmed.lavaan.model(fit.edge, fit.regmed)
fit.edge |
object created by regmed.edges function |
fit.regmed |
object created by regmed.fit from which the fit.edge object was made |
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.
a character string that descibes the mediation model in format of lavaan model
Dan Schaid, Greg Jenkins, Jason Sinnwell
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.