Causal Mediation Programs in R, M plus, SAS, SPSS, and Stata
- PMID: 33536726
- PMCID: PMC7853644
- DOI: 10.1080/10705511.2020.1777133
Causal Mediation Programs in R, M plus, SAS, SPSS, and Stata
Abstract
Mediation analysis is a methodology used to understand how and why an independent variable (X) transmits its effect to an outcome (Y) through a mediator (M). New causal mediation methods based on the potential outcomes framework and counterfactual framework are a seminal advancement for mediation analysis, because they focus on the causal basis of mediation analysis. There are several programs available to estimate causal mediation effects, but these programs differ substantially in data set up, estimation, output, and software platform. To compare these programs, an empirical example is presented, and a single mediator model with XM interaction was estimated with a continuous mediator and a continuous outcome in each program. Even though the software packages employ different estimation methods, they do provide similar causal effect estimates for mediation models with a continuous mediator and outcome. A detailed explanation of program similarities, unique features, and recommendations are discussed.
Keywords: causal effects; counterfactual; estimation; mediation; software.
Figures
Similar articles
-
The Correspondence Between Causal and Traditional Mediation Analysis: the Link Is the Mediator by Treatment Interaction.Prev Sci. 2020 Feb;21(2):147-157. doi: 10.1007/s11121-019-01076-4. Prev Sci. 2020. PMID: 31833021 Free PMC article.
-
Classical and causal inference approaches to statistical mediation analysis.Psicothema. 2014 May;26(2):252-9. doi: 10.7334/psicothema2013.314. Psicothema. 2014. PMID: 24755028
-
Statistical Mediation Analysis for Models with a Binary Mediator and a Binary Outcome: the Differences Between Causal and Traditional Mediation Analysis.Prev Sci. 2023 Apr;24(3):408-418. doi: 10.1007/s11121-021-01308-6. Epub 2021 Nov 16. Prev Sci. 2023. PMID: 34782926 Free PMC article.
-
Mediation analysis methods used in observational research: a scoping review and recommendations.BMC Med Res Methodol. 2021 Oct 25;21(1):226. doi: 10.1186/s12874-021-01426-3. BMC Med Res Methodol. 2021. PMID: 34689754 Free PMC article. Review.
-
A principled approach to mediation analysis in perinatal epidemiology.Am J Obstet Gynecol. 2022 Jan;226(1):24-32.e6. doi: 10.1016/j.ajog.2021.10.028. Am J Obstet Gynecol. 2022. PMID: 34991898 Free PMC article. Review.
Cited by
-
Rumen microbiome-driven insight into bile acid metabolism and host metabolic regulation.ISME J. 2024 Jan 8;18(1):wrae098. doi: 10.1093/ismejo/wrae098. ISME J. 2024. PMID: 38836500 Free PMC article.
-
Widening Educational Inequalities in Physical Health Due to the Obesity Trend?-A Mediation Analysis Using the German Socio-Economic Panel Study.Int J Public Health. 2024 Apr 29;69:1606932. doi: 10.3389/ijph.2024.1606932. eCollection 2024. Int J Public Health. 2024. PMID: 38742099 Free PMC article.
-
Does health literacy mediate the relationship between socioeconomic status and health related outcomes in the Belgian adult population?BMC Public Health. 2024 Apr 27;24(1):1182. doi: 10.1186/s12889-024-18676-7. BMC Public Health. 2024. PMID: 38678179 Free PMC article.
-
Carotid Intima-Media Thickness and Improved Stroke Risk Assessment in Hypertensive Black Adults.Am J Hypertens. 2024 Mar 15;37(4):290-297. doi: 10.1093/ajh/hpae008. Am J Hypertens. 2024. PMID: 38236147
-
In-Hospital Formula Feeding Hindered Exclusive Breastfeeding: Breastfeeding Self-Efficacy as a Mediating Factor.Nutrients. 2023 Dec 12;15(24):5074. doi: 10.3390/nu15245074. Nutrients. 2023. PMID: 38140332 Free PMC article.
References
-
- Bollen KA (1989). Structural Equations with Latent Variables. New York: Wiley
-
- Bollen KA, & Stine R (1990). Direct and indirect effects: Classical and bootstrap estimates of variability. Sociological methodology, 115–140.
-
- Bullock JG, Green DP, & Ha SE (2010). Yes, but what’s the mechanism? (don’t expect an easy answer). Journal of Personality and Social Psychology, 98(4), 550. - PubMed
-
- Discacciati A, Bellavia A, Lee JJ, Mazumdar M, & Valeri L (2019). Med4way: a Stata command to investigate mediating and interactive mechanisms using the four-way effect decomposition. International Journal of Epidemiology, 48(1), 15–20. - PubMed
-
- Emsley R, & Liu H (2013). PARAMED: Stata module to perform causal mediation analysis using parametric regression models.
Grants and funding
LinkOut - more resources
Full Text Sources
Other Literature Sources