CMAverse: A Suite of Functions for Reproducible Causal Mediation Analyses
Abstract
To the Editor: In this letter, we introduce CMAverse, an R package that provides a suite of functions for reproducible causal mediation analysis including directed acyclic graph (DAG) visualization, statistical modeling for estimation and inference of causal effects, and sensitivity analyses for unmeasured confounding, measurement error and selection bias. In many research fields including biomedical sciences, epidemiology and psychology, the use of causal mediation analysis has been increasing rapidly over the past couple of decades. Mediation analysis can help explain causal relationships and inform policy. In addition to examining a direct causal relation between two variables, mediation models assess causal pathways in which one variable (the exposure) causes another variable (the outcome) through an intermediate variable (the mediator). It has been shown that the overall exposure effect can be decomposed into two components1: a natural direct effect and a natural indirect effect. Additionally, in the presence of exposure–mediator interaction, the overall exposure effect can be further decomposed into four effects1: a controlled direct effect, a reference interaction, a mediated interaction and a pure indirect effect. These decompositions yield valid results under a set of assumptions of no unmeasured confounding. In practice, there might be violations of these such assumptions, which are also untestable. Meanwhile, there might be measurement error and selection bias incu…
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
Less access to testing can be a barrier to early and effective isolation support among individuals living in lower-income neighbourhoods, which can lead to onward transmission from undiagnosed infections, and therefore more COVID-19 deaths in lower-income neighbourhoods.
“Less access to testing can be a barrier to early and effective isolation support among individuals living in lower-income neighbourhoods, which can lead to onward transmission from undiagnosed infections, and therefore more COVID-19 deaths in lower-income neighbourhoods(39,40).”
Cites
Robins, J. (1986) · Mathematical Modelling · doi:10.1016/0270-0255(86)90088-6 · Cited by 2,451 · see citing works
Mediation analysis with multiple mediators
VanderWeele, T., & Vansteelandt, S. (2014) · Epidemiologic Methods · doi:10.1515/em-2012-0010 · Cited by 858 · see citing works
Self-citation
Flagged first, then by citations
Cited by
Sorted by citations
Raeisi-Dehkordi, H., Amiri, M., Rathmann, W., Zeller, T., Adamski, J., Bano, A., van der Schouw, Y. T., Thorand, B., Muka, T., & Nano, J. (2024) · European Journal of Epidemiology · doi:10.1007/s10654-024-01136-2 · Cited by 11 · see citing works
Wang, L., Swayze, S., Bodner, K., Calzavara, A., Harrigan, S. P., Siddiqi, A., Baral, S. D., Austin, P. C., Smylie, J., Koh, M., et al. (2026) · American Journal of Epidemiology · doi:10.1093/aje/kwaf051 · Cited by 5 · see citing works
Cohen, N. J., Lesseur, C., Cardenas, A., Ward-Caviness, C. K., Spring, A. C., Rager, J. E., Fry, R. C., & Eaves, L. A. (2025) · Epigenomics · doi:10.1080/17501911.2025.2533115 · Cited by 2 · see citing works
- Authors
- Shi, B., Choirat, C., Coull, B. A., VanderWeele, T. J., & Valeri, L.
- Affiliations
- Harvard University (US)
- Corresponding author
- Shi, Baoyi
- Venue
- Epidemiology
- Published
- 2021-05-21
- Volume
- 32
- Issue
- 5
- Pages
- e20-e22
- ISSN
- 1044-3983 (ISSN-L)
- OpenAlex
- W3165488072
- Cited by
- 413
- References
- 2
- Citations by year
- 2026: 140 · 2025: 108 · 2024: 91 · 2023: 45 · 2022: 23 · 2021: 6
- FWCI
- 30.76
- Type
- journal article
- Language
- en
- Open access
- closed
- Locations
- Epidemiology (publishedVersion)
- PubMed (publishedVersion)
- Funders
- National Institute of Mental Health (K01MH118477)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Advanced Causal Inference Techniques
- Physical Sciences › Computer Science › Artificial Intelligence › Data Analysis with R
- Physical Sciences › Computer Science › Artificial Intelligence › Bayesian Modeling and Causal Inference
- Keywords
- causal mediation analysis, R package, directed acyclic graphs, natural direct and indirect effects, sensitivity analysis, unmeasured confounding, measurement error, selection bias, time-varying confounders, multiple mediators, smoking, lung cancer
- MeSH terms
- Mediation Analysis, Humans, Models, Statistical
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