Description Usage Arguments Details Value Author(s) References
Mediation analysis based on bootstrap
1 2 3 |
x |
A data set |
ram |
RAM path for the mediaiton model |
indirect |
A vector of indirect effec |
v |
Indices of variables used in the mediation model. If omitted, all variables are used. |
method |
|
ci |
|
cl |
Confidence level. Can be a vector. |
boot |
Number of bootstraps |
m |
Number of imputations |
varphi |
Percent of data to be downweighted |
st |
Starting values |
robust |
Robust method |
moment |
Select mean structure or covariance analysis. moment=FALSE, covariance analysis. moment=TRUE, mean and covariance analysis. |
max_it |
Maximum number of iterations in EM |
... |
Other options for |
The indirect effect can be specified using equations such as a*b
, a*b+c
, and a*b*c+d*e+f
. A vector of indirect effects can be used indirect=c('a*b', 'a*b+c')
.
The on-screen output includes the parameter estimates, bootstrap standard errors, and CIs.
Zhiyong Zhang and Lijuan Wang
Zhang, Z. & Wang, L. (2012) Four methods for mediation analysis with missing data. Psychometrika.
Zhang, Z. (2012) Robust mediation analysis with missing data and auxiliary variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.