Learn R Programming

mmabig (version 3.2-0)

plot.mma.big: Relative effects plot of the fitted mma.big object

Description

Plot the marginal effect of the selected variable(mediator) on the outcome, and the marginal effect of the predictor on the selected variable.

Usage

# S3 method for mma.big
plot(x,vari,...)

Arguments

x

a mma.big object created initially call to mma.big.

vari

an indices or the name of the mediator to plot.

...

other arguments passed to the plot function.

Author

Qingzhao Yu qyu@lsuhsc.edu and Bin Li bli@lsu.edu

Details

plot.mma.big plots on the upper panel, the boxplot of fitted coefficients of the selected mediator on each outcome from bootstrap samples. The lower panel is for each predictor, the marginal change in the mediator when the predictor changes. If the predictors are binary, show the boxplot of the mean changes in mediator when the corresponding predictor changes from 0 to 1. If the predictors are continuous, show the smoothed changes of the mean mediator with the predictor, with 95% confidence bounds.

References

Yu, Q., Fan, Y., and Wu, X. (2014) <doi:10.4172/2155-6180.1000189>. "General Multiple Mediation Analysis With an Application to Explore Racial Disparity in Breast Cancer Survival," Journal of Biometrics & Biostatistics,5(2): 189.

Yu, Q., Scribner, R.A., Leonardi, C., Zhang, L., Park, C., Chen, L., and Simonsen, N.R. (2017) <doi:10.1016/j.sste.2017.02.001>. "Exploring racial disparity in obesity: a mediation analysis considering geo-coded environmental factors," Spatial and Spatio-temporal Epidemiology, 21, 13-23.

Yu, Q., and Li, B. (2017) <doi:10.5334/hors.160>. "mma: An r package for multiple mediation analysis," Journal of Open Research Software, 5(1), 11.

Li, B. and Yu, Q. (2018). "Mediation Analysis with Large Data Sets".

See Also

"mma.big"

Examples

Run this code
#See help(mma.big)

Run the code above in your browser using DataLab