bmem.bs: Bootstrap but using the Bollen-Stine method

View source: R/bmem.R

bmem.bsR Documentation

Bootstrap but using the Bollen-Stine method

Description

The same as bmem but using the Bollen-Stine method

Usage

bmem.bs(x, ram, indirect, v, ci='bc', cl=.95, 
        boot=1000, max_it=500, ...)

Arguments

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.

ci

norm: normal approximation CI, perc: percentile CI, bc: bias-corrected CI, bca: BCa

cl

Confidence level. Can be a vector.

boot

Number of bootstraps

max_it

Maximum number of iterations in EM

...

Other options for sem function can be used.

Value

The on-screen output includes the parameter estimates, bootstrap standard errors, and CIs.

Author(s)

Zhiyong Zhang and Lijuan Wang

References

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.

See Also

bmem, bmem.sobel, bmem.plot


bmem documentation built on Aug. 27, 2023, 9:07 a.m.