mvregmed.lavaan.dat {regmed}R Documentation

Set up data to input to lavaan sem

Description

Set up data to input to lavaan structural equation model (sem)

Usage

mvregmed.lavaan.dat(x, mediator, y, max.cor=0.99)

Arguments

x

matrix of exposure variables

mediator

matrix of mediators

y

matrix of outcome variables

max.cor

maximum correlation within mediators, so that fitting is more robust

Details

Use the function regmed.dat.check to standardize all variables and subset to subjects without missing data

Value

A dataframe with updated x, mediator, and y

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]