mvregmed.lavaan.model {regmed}R Documentation

Setup a model for input to lavaan

Description

Set up a model statement (string formula) from mvregmed object for input to lavaan

Usage

mvregmed.lavaan.model(fit.edge, fit.mvregmed)

Arguments

fit.edge

Output from mvregmed.edges

fit.mvregmed

A mvregmed object, either from mvregmed.fit or from mvregmed.grid.bestfit

Details

Loop through all relationships determined important from mrregmed edges object, and create model statement for lavaan, while also specifying covariances pre-estimated by mvregmed. See vignette for examples. The summary method for lavaan supersedes the summary from the lavaan package by simplifying the output to only return the coefficient table, as the covariance estimates were fixd from mvregmed.

Value

Text string to define a model as input to sem

Author(s)

Daniel Schaid and Jason Sinnwell

References

Schaid DS, Dikilitas O, Sinnwell JP, Kullo I (2022). Penalized mediation models for multivariate data. Genet Epidemiol 46:32-50.


[Package regmed version 2.1.0 Index]