Causal Mediation Analysis

We implement parametric and non parametric mediation analysis. This package performs the methods and suggestions in Imai, Keele and Yamamoto (2010) , Imai, Keele and Tingley (2010) , Imai, Tingley and Yamamoto (2013) , and Imai and Yamamoto (2013) . In addition to the estimation of causal mediation effects, the software also allows researchers to conduct sensitivity analysis for certain parametric models.


We implement parametric and non parametric mediation analysis. This package performs the methods and suggestions in Imai, Keele and Yamamoto (2010), Imai, Keele and Tingley (2010), Imai, Tingley and Yamamoto (2013), Imai and Yamamoto (2013) and Yamamoto (2013). In addition to the estimation of causal mediation effects, the software also allows researchers to conduct sensitivity analysis for certain parametric models.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mediation")

4.5.1 by Teppei Yamamoto, a year ago


https://imai.princeton.edu/projects/mechanisms.html


Browse source code at https://github.com/cran/mediation


Authors: Dustin Tingley [aut] , Teppei Yamamoto [aut, cre] , Kentaro Hirose [aut] , Luke Keele [aut] , Kosuke Imai [aut] , Minh Trinh [aut] , Weihuang Wong [aut]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports lpSolve, Hmisc, lme4, stats, graphics, grDevices, utils, boot

Depends on MASS, Matrix, mvtnorm, sandwich

Suggests mgcv, quantreg, VGAM, SuppDists, survival, parallel, testthat, speedglm


Imported by CEDMr, EMAS, bruceR, exploratory, maczic.

Depended on by mediationsens.

Suggested by JSmediation, WRS2, bayestestR, brainGraph, broom, broom.mixed, datawizard, emmeans, iMediate, mellio, parameters, pctax.


See at CRAN