⚠️There's a newer version (4.5.0) of this package.Take me there.
mediation (version 4.2.1)
R Package for Causal Mediation Analysis
Description
mediation is a publicly available R package that allows
both parametric and nonparametric causal mediation analysis.
It implements the methods and suggestions in Imai, Keele, and
Yamamoto (2010) and Imai, Keele, Tingley (2010). In addition
to the estimation of causal mediation effects, the software
also allows researchers to conduct sensitivity analysis for
certain parametric models.