regmed.lavaan.dat: Set up data to input to lavaan sem

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

regmed.lavaan.datR Documentation

Set up data to input to lavaan sem

Description

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

Usage

regmed.lavaan.dat(x, mediator, y)

Arguments

x

vector of exposure variables

mediator

matrix of mediator variables

y

vector of outcome variable

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)

Dan Schaid, Jason Sinnwell

References

Schaid, DJ, Sinnwell JP. (2020) Penalized Models for Analysis of Multiple Mediators. Genet Epidemiol 44:408-424.


regmed documentation built on Jan. 22, 2023, 1:30 a.m.