IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v059i05.html
   My bibliography  Save this article

mediation: R Package for Causal Mediation Analysis

Author

Listed:
  • Tingley, Dustin
  • Yamamoto, Teppei
  • Hirose, Kentaro
  • Keele, Luke
  • Imai, Kosuke

Abstract

In this paper, we describe the R package mediation for conducting causal mediation analysis in applied empirical research. In many scientific disciplines, the goal of researchers is not only estimating causal effects of a treatment but also understanding the process in which the treatment causally affects the outcome. Causal mediation analysis is frequently used to assess potential causal mechanisms. The mediation package implements a comprehensive suite of statistical tools for conducting such an analysis. The package is organized into two distinct approaches. Using the model-based approach, researchers can estimate causal mediation effects and conduct sensitivity analysis under the standard research design. Furthermore, the design-based approach provides several analysis tools that are applicable under different experimental designs. This approach requires weaker assumptions than the model-based approach. We also implement a statistical method for dealing with multiple (causally dependent) mediators, which are often encountered in practice. Finally, the package also offers a methodology for assessing causal mediation in the presence of treatment noncompliance, a common problem in randomized trials.

Suggested Citation

  • Tingley, Dustin & Yamamoto, Teppei & Hirose, Kentaro & Keele, Luke & Imai, Kosuke, 2014. "mediation: R Package for Causal Mediation Analysis," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 59(i05).
  • Handle: RePEc:jss:jstsof:v:059:i05
    DOI: http://hdl.handle.net/10.18637/jss.v059.i05
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v059i05/v59i05.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v059i05/mediation_4.4.2.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v059i05/v59i05.R
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v059.i05?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Imai, Kosuke & Keele, Luke & Tingley, Dustin & Yamamoto, Teppei, 2011. "Unpacking the Black Box of Causality: Learning about Causal Mechanisms from Experimental and Observational Studies," American Political Science Review, Cambridge University Press, vol. 105(4), pages 765-789, November.
    2. Imai, Kosuke & Yamamoto, Teppei, 2013. "Identification and Sensitivity Analysis for Multiple Causal Mechanisms: Revisiting Evidence from Framing Experiments," Political Analysis, Cambridge University Press, vol. 21(2), pages 141-171, April.
    3. Kosuke Imai & Dustin Tingley & Teppei Yamamoto, 2013. "Experimental designs for identifying causal mechanisms," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 176(1), pages 5-51, January.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Acharya, Avidit & Blackwell, Matthew & Sen, Maya, 2016. "Explaining Causal Findings Without Bias: Detecting and Assessing Direct Effects," American Political Science Review, Cambridge University Press, vol. 110(3), pages 512-529, August.
    2. Nicholas Weller & Jeb Barnes, 2016. "Pathway Analysis and the Search for Causal Mechanisms," Sociological Methods & Research, , vol. 45(3), pages 424-457, August.
    3. Adam C. Sales, 2017. "Review," Journal of Educational and Behavioral Statistics, , vol. 42(1), pages 69-84, February.
    4. Ward, Jeffrey T. & Hartley, Richard D. & Tillyer, Rob, 2016. "Unpacking gender and racial/ethnic biases in the federal sentencing of drug offenders: A causal mediation approach," Journal of Criminal Justice, Elsevier, vol. 46(C), pages 196-206.
    5. Gay, Victor & Boehnke, Jörn, 2017. "The Missing Men: World War I and Female Labor Participation," MPRA Paper 77560, University Library of Munich, Germany.
    6. Parker Hevron, 2018. "Judicialization and Its Effects: Experiments as a Way Forward," Laws, MDPI, vol. 7(2), pages 1-21, May.
    7. Markus Frölich & Martin Huber, 2017. "Direct and indirect treatment effects–causal chains and mediation analysis with instrumental variables," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 79(5), pages 1645-1666, November.
    8. Ahrens, Steffen & Bosch-Rosa, Ciril, 2023. "Motivated beliefs, social preferences, and limited liability in financial decision-Making," Journal of Banking & Finance, Elsevier, vol. 154(C).
    9. Guanglei Hong & Jonah Deutsch & Heather D. Hill, 2013. "Ratio-of-Mediator-Probability Weighting for Causal Mediation Analysis in the Presence of Treatment-by-Mediator Interaction," Working Papers 2013-009, Human Capital and Economic Opportunity Working Group.
    10. Carpena, Fenella & Zia, Bilal, 2020. "The causal mechanism of financial education: Evidence from mediation analysis," Journal of Economic Behavior & Organization, Elsevier, vol. 177(C), pages 143-184.
    11. Cammett, Melani & Şaşmaz, Aytuğ, 2017. "Political Context, Organizational Mission, and the Quality of Social Services: Insights from the Health Sector in Lebanon," World Development, Elsevier, vol. 98(C), pages 120-132.
    12. Jing Peng, 2023. "Identification of Causal Mechanisms from Randomized Experiments: A Framework for Endogenous Mediation Analysis," Information Systems Research, INFORMS, vol. 34(1), pages 67-84, March.
    13. Wunsch, Conny & Strobl, Renate, 2018. "Identification of causal mechanisms based on between-subject double randomization designs," CEPR Discussion Papers 13028, C.E.P.R. Discussion Papers.
    14. Andres, Maximilian & Bruttel, Lisa & Friedrichsen, Jana, 2023. "How communication makes the difference between a cartel and tacit collusion: A machine learning approach," European Economic Review, Elsevier, vol. 152(C).
    15. Bakaki, Zorzeta & Dorussen, Han, 2023. "Trust in peacebuilding organizations: A survey experiment in Haiti," World Development, Elsevier, vol. 172(C).
    16. Brown, Martin & Henchoz, Caroline & Spycher, Thomas, 2018. "Culture and financial literacy: Evidence from a within-country language border," Journal of Economic Behavior & Organization, Elsevier, vol. 150(C), pages 62-85.
    17. Gregory A. PORUMBESCU & Nicola BELLE & Maria CUCCINIELLO & Greta NASI, 2019. "Does Transparency Lead To Coproduction?," TAD 14 The disciplines and the study of Public Administration: Transatlantic perspectives in the margin of the 14th Administration and Public Management International Conference, Bucharest, June 6-18 6, Research Centre in Public Administration and Public Services, Bucharest, Romania.
    18. Brent J. Davis & Tarek Jaber‐Lopez, 2023. "Do voluntary commitment mechanisms improve welfare? The effect of mandatory and voluntary oaths in a social dilemma," Bulletin of Economic Research, Wiley Blackwell, vol. 75(2), pages 525-540, April.
    19. Ahrens, Steffen & Bosch-Rosa, Ciril, 2022. "Motivated beliefs, social preferences, and limited liability in financial decision-making," Discussion Papers 2022/8, Free University Berlin, School of Business & Economics.
    20. S. Erdem Aytaç & Luis Schiumerini & Susan Stokes, 2018. "Why Do People Join Backlash Protests? Lessons from Turkey," Journal of Conflict Resolution, Peace Science Society (International), vol. 62(6), pages 1205-1228, July.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:059:i05. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.