Keele, Luke, Dustin Tingley, Teppei Yamamoto, and Kosuke Imai. ``mediation: R Package for Causal Mediation Analysis.''

 

  Abstract

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.

  Current Version

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)

  Installation

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.

  Documentation

The complete documentation with many examples is available. The software also comes with standard R help files.

© Kosuke Imai
Last modified: Mon Sep 14 11:33:45 EDT 2009