Mediation analysis using sobel test (for complete data only)
bmem.sobel(x, ram, indirect, moment=FALSE, ...)A data set
RAM path for the mediaiton model
A vector of indirect effec
Covariance or moment analysis
Other options for sem function can be used.
The on-screen output includes the parameter estimates and sobel standard errors.
Zhang, Z. & Wang, L. (2011) Four methods for mediation analysis with missing data.
Zhang, Z. (2011) Robust mediation analysis with missing data and auxiliary variables.