The same as bmem
but using the Bollen-Stine method
bmem.bs(x, ram, indirect, v, ci='bc', cl=.95,
boot=1000, max_it=500, ...)
The on-screen output includes the parameter estimates, bootstrap standard errors, and CIs.
A data set
RAM path for the mediaiton model
A vector of indirect effec
Indices of variables used in the mediation model. If omitted, all variables are used.
norm
: normal approximation CI, perc
: percentile CI, bc
: bias-corrected CI, bca
: BCa
Confidence level. Can be a vector.
Number of bootstraps
Maximum number of iterations in EM
Other options for sem
function can be used.
Zhiyong Zhang and Lijuan Wang
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.
bmem
, bmem.sobel
, bmem.plot