Causal Mediation Programs in R, M plus, SAS, SPSS, and Stata
Open accessThe DOI matches its Crossref record; 33 of the 33 references it cites were found in a registry or an index.
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 treatment-mediator 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 is discussed.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Principles and Practice of Structural Equation Modeling
Tabri, N., & Elliott, C. M. (2012) · Canadian Graduate Journal of Sociology and Criminology · doi:10.15353/cgjsc-rcessc.v1i1.25 · Cited by 38,891
An Introduction to the Bootstrap
Efron, B., & Tibshirani, R. J. (1993) · doi:10.1007/978-1-4899-4541-9 · Cited by 21,230
Structural Equations with Latent Variables
Bollen, K. A. (1989) · Wiley series in probability and statistics · doi:10.1002/9781118619179 · Cited by 17,277
Asymptotic Confidence Intervals for Indirect Effects in Structural Equation Models
Sobel, M. E. (1982) · Sociological Methodology · doi:10.2307/270723 · Cited by 12,810 · cited 1×
“Mediation models are fundamental structural equation models (SEMs) because they are used to investigate a core aspect of SEM--how an independent variable, X, is related to an outcome variable, Y, through a mediator variable, M (Judd & Kenny, 1981; MacKinnon, 2008, 2020; Sobel, 1982).”
MethodEstimating causal effects of treatments in randomized and nonrandomized studies
Rubin, D. B. (1974) · Journal of Educational Psychology · doi:10.1037/h0037350 · Cited by 9,436 · cited 2×
“Causal mediation analysis is based on the potential outcomes framework and the more general counterfactual framework (Holland, 1986; Rubin, 1974).”
BackgroundMethodConfidence Limits for the Indirect Effect: Distribution of the Product and Resampling Methods
MacKinnon, D. P., Lockwood, C. M., & Williams, J. (2004) · Multivariate Behavioral Research · doi:10.1207/s15327906mbr3901_4 · Cited by 7,806 · cited 2×
“Therefore, percentile bootstrap confidence intervals are preferred (Mackinnon et al., 2004).”
BackgroundMethodSelf-citationIntroduction to Statistical Mediation Analysis
MacKinnon, D. P. (2012) · doi:10.4324/9780203809556 · Cited by 5,618 · cited 4×
“It is also possible to estimate the CDE at the mean value of the mediator or +/− 1 standard deviation units above/below the mean of the mediator (MacKinnon, 2008, 2020). nc is used to specify the number of baseline covariates entered in the analysis and yreg and mreg are used to specify the outcome…”
BackgroundMethodInfluentialSelf-citationStatistics and Causal Inference
Holland, P. W. (1986) · Journal of the American Statistical Association · doi:10.1080/01621459.1986.10478354 · Cited by 5,293 · cited 3×
“Causal mediation analysis is based on the potential outcomes framework and the more general counterfactual framework (Holland, 1986; Rubin, 1974).”
BackgroundMethodmediation:R Package for Causal Mediation Analysis
Tingley, D., Yamamoto, T., Hirose, K., Keele, L., & Imai, K. (2014) · Journal of Statistical Software · doi:10.18637/jss.v059.i05 · Cited by 4,155 · cited 18×
“The CDE is the part of the TE that is not due to interaction nor mediation, the PNIE is the part that is solely due to mediation, the reference interaction is the part that is solely due to interaction, and the mediated interaction is the part that is due to both interaction and mediation (for more details see VanderW…”
MethodInfluentialA general approach to causal mediation analysis.
Imai, K., Keele, L., & Tingley, D. (2010) · Psychological Methods · doi:10.1037/a0020761 · Cited by 4,143 · cited 2×
“Third, the causal mediation effects are computed as the difference in the predicted potential outcomes (e.g., PNIE = Y i ((0, M i (1)) − Y(0, M i (0))). for each observation and then the average is estimated (for more details see Imai et al., 2010).”
BackgroundProcess Analysis: Estimating Mediation in Treatment Evaluations
Judd, C. M., & Kenny, D. A. (1981) · Evaluation Review · doi:10.1177/0193841x8100500502 · Cited by 2,442
Valeri, L., & VanderWeele, T. J. (2013) · Psychological Methods · doi:10.1037/a0031034 · Cited by 2,132 · cited 4×
“…and macros for SAS, Stata, SPSS, R, and Mplus (Discacciati, Bellavia, Lee, Mazumdar, & Valeri, 2019; Emsley & Liu, 2013; L. K. Muthén & Muthén, 1998/2017; SAS Institute, 2018; Steen, Loeys, Moerkerke, & Vansteelandt, 2017; Tingley, Yamamoto, Hirose, Keele, & Imai, 2014; Valeri & Vanderweele, 2013).”
MethodInfluentialIdentifiability and exchangeability for direct and indirect effects
Robins, J. M., & Greenland, S. (1992) · Epidemiology · doi:10.1097/00001648-199203000-00013 · Cited by 1,793
The Book of Why: The New Science of Cause and Effect
Goldberg, L. R. (2019) · Notices of the American Mathematical Society · doi:10.1090/noti1912 · Cited by 1,655
Longitudinal Structural Equation Modeling
Geiser, C. (2014) · Encyclopedia of Quality of Life and Well-Being Research · doi:10.1007/978-94-007-0753-5_1701 · Cited by 1,366
Direct and Indirect Effects: Classical and Bootstrap Estimates of Variability
Bollen, K. A., & Stine, R. (1990) · Sociological Methodology · doi:10.2307/271084 · Cited by 1,305 · cited 1×
“Percentile bootstrapping is a computer intensive method that creates an empirical distribution of the causal effect estimates by resampling from the observed dataset many times with replacement and estimating the causal effect in each resampled dataset (Bollen & Stine, 1990).”
MethodYes, but what’s the mechanism? (don’t expect an easy answer).
Bullock, J. G., Green, D. P., & Ha, S. E. (2010) · Journal of Personality and Social Psychology · doi:10.1037/a0018933 · Cited by 1,063
Counterfactuals and Causal Inference: Methods and Principles for Social Research
Morgan, S. L., & Winship, C. (2014) · Cambridge University Press · doi:10.1017/cbo9781107587991 · Cited by 1,037
Pearl, J. (2022) · Probabilistic and Causal Inference · doi:10.1145/3501714.3501736 · Cited by 1,033 · cited 3×
“A major strength of causal mediation analysis is that its effect definitions do not rely on any specific estimation method (Pearl, 2001).”
BackgroundConceptual issues concerning mediation, interventions and composition
Vanderweele, T. J., & Vansteelandt, S. (2009) · Statistics and Its Interface · doi:10.4310/sii.2009.v2.n4.a7 · Cited by 739 · cited 4×
“The VVW and Stata PARAMED macros start by estimating the parameters of regression Equations 1 and 2, and subsequently use these parameters to estimate the causal mediation effects (see Table 1 for an overview of these causal estimators) (VanderWeele & Vansteelandt, 2009).”
BackgroundMethodInfluentialA Unification of Mediation and Interaction: A 4-Way Decomposition
VanderWeele, T. J. (2014) · Epidemiology · doi:10.1097/ede.0000000000000121 · Cited by 661 · cited 1×
“…is not due to interaction nor mediation, the PNIE is the part that is solely due to mediation, the reference interaction is the part that is solely due to interaction, and the mediated interaction is the part that is due to both interaction and mediation (for more details see VanderWeele (2014)).”
Interpretation and identification of causal mediation
Pearl, J. (2014) · Psychological Methods · doi:10.1037/a0036434 · Cited by 554
medflex: An R Package for Flexible Mediation Analysis using Natural Effect Models
Steen, J., Loeys, T., Moerkerke, B., & Vansteelandt, S. (2017) · Journal of Statistical Software · doi:10.18637/jss.v076.i11 · Cited by 278 · cited 19×
“…and macros for SAS, Stata, SPSS, R, and Mplus (Discacciati, Bellavia, Lee, Mazumdar, & Valeri, 2019; Emsley & Liu, 2013; L. K. Muthén & Muthén, 1998/2017; SAS Institute, 2018; Steen, Loeys, Moerkerke, & Vansteelandt, 2017; Tingley, Yamamoto, Hirose, Keele, & Imai, 2014; Valeri & Vanderweele, 2013).”
BackgroundMethodInfluentialDiscacciati, A., Bellavia, A., Lee, J. J., Mazumdar, M., & Valeri, L. (2019) · International Journal of Epidemiology · doi:10.1093/ije/dyy236 · Cited by 249 · cited 13×
“The previous software programs use OLS to estimate the regression parameters when Equations 1 and 2 are estimated based on a continuous mediator or outcome, but Mplus has many estimator options; with the default being maximum likelihood (see Table 2 for more details).”
MethodInfluentialSAS Macro for Causal Mediation Analysis with Survival Data
Valeri, L., & VanderWeele, T. J. (2015) · Epidemiology · doi:10.1097/ede.0000000000000253 · Cited by 226
Identification of Causal Parameters in Randomized Studies With Mediating Variables
Sobel, M. E. (2008) · Journal of Educational and Behavioral Statistics · doi:10.3102/1076998607307239 · Cited by 202 · cited 1×
“These methods clarify the causal basis of mediation, which is a topic raised in many different criticisms of mediation analysis (Bullock, Green, & Ha, 2010; MacKinnon, 2008, 2020; Sobel, 2008).”
MethodGoldberg, L. (1996) · JAMA · doi:10.1001/jama.276.19.1555 · Cited by 170
MacKinnon, D. P., Valente, M. J., & Gonzalez, O. (2020) · Prevention Science · doi:10.1007/s11121-019-01076-4 · Cited by 165 · cited 1×
“For models with a continuous mediator and outcome, causal and traditional mediation analysis have been shown to provide similar effect estimates (MacKinnon, Valente, & Gonzalez, 2020; Miočević, Gonzalez, Valente, & MacKinnon, 2018; Rijnhart, Twisk, Chinapaw, de Boer, & Heymans, 2017).”
MethodSelf-citationMacKinnon, D. P., Goldberg, L., Clarke, G. N., Elliot, D. L., Cheong, J., Lapin, A., MOE, E. L., & Krull, J. L. (2001) · Prevention Science · doi:10.1023/a:1010082828000 · Cited by 159 · cited 1×
“MacKinnon et al. (2001) investigated twelve mediators of the ATLAS program on three outcomes.”
BackgroundSelf-citationCAUSAL INFERENCE, PATH ANALYSIS AND RECURSIVE STRUCTURAL EQUATIONS MODELS
Holland, P. W. (1988) · ETS Research Report Series · doi:10.1002/j.2330-8516.1988.tb00270.x · Cited by 112
Comparison of methods for the analysis of relatively simple mediation models
Rijnhart, J. J. M., Twisk, J. W. R., Chinapaw, M. J. M., de Boer, M. R., & Heymans, M. W. (2017) · Contemporary Clinical Trials Communications · doi:10.1016/j.conctc.2017.06.005 · Cited by 103
Self-citationA Tutorial in Bayesian Potential Outcomes Mediation Analysis
Miočević, M., González, O., Valente, M. J., & MacKinnon, D. P. (2017) · Structural Equation Modeling A Multidisciplinary Journal · doi:10.1080/10705511.2017.1342541 · Cited by 79 · cited 1×
“For models with a continuous mediator and outcome, causal and traditional mediation analysis have been shown to provide similar effect estimates (MacKinnon, Valente, & Gonzalez, 2020; Miočević, Gonzalez, Valente, & MacKinnon, 2018; Rijnhart, Twisk, Chinapaw, de Boer, & Heymans, 2017).”
MethodSelf-citationThe Product of Two Normally Distributed Random Variables
Meeker, W., Cornwell, L., & Aroian, L. (1982) · Biometrics · doi:10.2307/2530095 · Cited by 75 · cited 1×
“This may not be accurate when the causal effect estimates are a non-linear function of regression coefficients (e.g., the product of two regression coefficients does not necessarily follow a normal distribution; Meeker, Cornwell, and Aroian (1981)).”
Background
Cited by
Mediation analysis methods used in observational research: a scoping review and recommendations
Rijnhart, J. J. M., Lamp, S. J., Valente, M. J., MacKinnon, D. P., Twisk, J. W. R., & Heymans, M. W. (2021) · BMC Medical Research Methodology · doi:10.1186/s12874-021-01426-3 · Cited by 345
Self-citationWater From the Lake of Memory: The Regulatory Model of Nostalgia
Wildschut, T., & Sedikides, C. (2023) · Current Directions in Psychological Science · doi:10.1177/09637214221121768 · Cited by 54
Kondracki, A. J., Valente, M. J., Ibrahimou, B., & Bursac, Z. (2022) · Paediatric and Perinatal Epidemiology · doi:10.1111/ppe.12809 · Cited by 34
Self-citation
Metadata
- Authors
- Valente, M. J., Rijnhart, J. J. M., Smyth, H. L., Muniz, F. B., & MacKinnon, D. P.
- Venue
- Structural Equation Modeling: A Multidisciplinary Journal
- Publisher
- Informa UK Limited
- Published
- 2020-08-03
- Volume
- 27
- Issue
- 6
- Pages
- 975-984
- ISSN
- 1070-5511 (ISSN-L)
- 1532-8007
- OpenAlex
- W3047408275
- Cited by
- 186
- References
- 33
- FWCI
- 13.82
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.