Skip to main content

Causal Mediation Analysis Using R

  • Conference paper
  • First Online:
Advances in Social Science Research Using R

Part of the book series: Lecture Notes in Statistics ((LNSP,volume 196))

Abstract

Causal mediation analysis is widely used across many disciplines to investigate possible causal mechanisms. Such an analysis allows researchers to explore various causal pathways, going beyond the estimation of simple causal effects. Recently, Imai et al. (2008) [3] and Imai et al. (2009) [2] developed general algorithms to estimate causal mediation effects with the variety of data types that are often encountered in practice. The new algorithms can estimate causal mediation effects for linear and nonlinear relationships, with parametric and nonparametric models, with continuous and discrete mediators, and various types of outcome variables. In this paper, we show how to implement these algorithms in the statistical computing language R. Our easy-to-use software, mediation, takes advantage of the object-oriented programming nature of the R language and allows researchers to estimate causal mediation effects in a straightforward manner. Finally, mediation also implements sensitivity analyses which can be used to formally assess the robustness of findings to the potential violations of the key identifying assumption. After describing the basic structure of the software, we illustrate its use with several empirical examples.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 139.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 179.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Baron, R., Kenny, D.: The moderator-mediator variable distinction in social psychological research: Conceptual, strategic, and statistical considerations. Journal of Personality and Social Psychology 51(4), 1173–1182 (1986)

    Article  Google Scholar 

  2. Imai, K., Keele, L., Tingley, D.: A general approach to causal mediation analysis. Tech. rep., Department of Politics, Princeton University (2009). Available at http://imai.princeton.edu/research/BaronKenny.html

  3. Imai, K., Keele, L., Yamamoto, T.: Identification, inference and sensitivity analysis for causal mediation effects. Tech. rep., Department of Politics, Princeton University (2008). Available at http://imai.princeton.edu/research/mediation.html

  4. Imai, K., Tingley, D., Yamamoto, T.: Experimental identification of causal mechanisms. Tech. rep., Department of Politics, Princeton University (2009). Available at http://imai.princeton.edu/research/Design.html

  5. Keele, L.: Semiparametric Regression for the Social Sciences. Wiley and Sons, Chichester, UK (2008)

    Google Scholar 

  6. King, G., Tomz, M., Wittenberg, J.: Making the most of statistical analyses: Improving interpretation and presentation. American Journal of Political Science 44, 341–355 (2000)

    Article  Google Scholar 

  7. Koenker, R.: Quantile Regression. Cambridge University Press, Cambridge (2008)

    Google Scholar 

  8. R Development Core Team: R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria (2009). URL http://www.R-project.org. ISBN 3-900051-07-0

  9. Rosenbaum, P.R.: Observational Studies, 2nd edn. Springer-Verlag, New York (2002)

    MATH  Google Scholar 

  10. Vinokur, A., Schul, Y.: Mastery and inoculation against setbacks as active ingredients in the jobs intervention for the unemployed. Journal of Consulting and Clinical Psychology 65(5), 867–877 (1997)

    Article  Google Scholar 

  11. Wood, S.: Generalized Additive Models: An Introduction With R. Chapman & Hall/CRC, Boca Raton (2006)

    Google Scholar 

  12. Zellner, A.: An efficient method of estimating seemingly unrelated regressions and tests for aggregation bias. Journal of the American Statistical Association 57, 348–368 (1962)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to K. Imai .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Springer-Verlag New York

About this paper

Cite this paper

Imai, K., Keele, L., Tingley, D., Yamamoto, T. (2010). Causal Mediation Analysis Using R. In: Vinod, H. (eds) Advances in Social Science Research Using R. Lecture Notes in Statistics(), vol 196. Springer, New York, NY. https://doi.org/10.1007/978-1-4419-1764-5_8

Download citation

Publish with us

Policies and ethics