|
|
mediation is a publicly available R
package that allows both parame
tric and nonparametric causal mediation analysis. It implements
the methods and
suggestions in
Imai, Keele, and Yamamoto
(2008) and
Imai, Keele, and Tingley
(2009). In addition to the estimation of causal
mediation effects, the software also
allows researchers to conduct sensitivity analysis for certain
parametric models.
|
The current version is 2.1 (built on 09/14/09) which runs on R
2.7 and higher. The source code and binaries are available for download from
The Comprehensive R Archive Network (CRAN)
|
Regardless of one's operating system, the software can be installed by typing the following command at R
prompt: > install.packages("mediation") This will install the latest version from CRAN. |
The complete documentation with many examples is
available. The software also comes with standard R help files.
|