View source: R/regmed.lavaan.dat.R
| regmed.lavaan.dat | R Documentation | 
Set up data to input to lavaan structural equation model (sem)
regmed.lavaan.dat(x, mediator, y)
x | 
 vector of exposure variables  | 
mediator | 
 matrix of mediator variables  | 
y | 
 vector of outcome variable  | 
Use the function regmed.dat.check to standardize all variables and subset to subjects without missing data
A dataframe with updated x, mediator, and y
Dan Schaid, Jason Sinnwell
Schaid, DJ, Sinnwell JP. (2020) Penalized Models for Analysis of Multiple Mediators. Genet Epidemiol 44:408-424.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.