Med4way: a Stata command to investigate mediating and interactive mechanisms using the four-way effect decomposition
Open accessThe DOI matches its Crossref record; 2 of the 2 references it cites were found in a registry or an index.
Abstract
The overall effect of an exposure on an outcome, in the presence of a mediator with which the exposure may interact, can be decomposed into four components that correspond to the portion of the effect that is due: (i) to neither mediation nor interaction; (ii) to just interaction (but not mediation); (iii) to both mediation and interaction; and (iv) to just mediation (but not interaction). This four-way decomposition unifies methods to attribute effects to interactions and methods that assess mediation. We introduce the Stata command med4way to estimate the causal contrasts that arise in this decomposition. Med4way is implemented as a Stata stand-alone command requiring Stata version 10 or higher (StataCorp, College Station, TX, USA), and allows estimating the four-way decomposition using parametric regression models. Med4way can be used when the outcome is continuous, dichotomous, count or survival time, and the mediator is continuous or binary. The command accommodates cohort and case-control designs. We present two examples of application of the command to gain insight on important public health problems. In the first application, we employ med4way to investigate the role of birth outcomes in explaining the effect of maternal exposure to manganese on child neurodevelopment. In the second application, we investigate the role of stage at diagnosis in explaining income disparities in colorectal cancer survival. The command is freely available on GitHub [https://github.com/anddis/med4way] and has been published under General Public License (GPL) version 3.
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
MacKinnon, D. P., Fairchild, A. J., & Fritz, M. S. (2007) · Annual Review of Psychology · doi:10.1146/annurev.psych.58.110405.085542 · Cited by 5,688
Valeri, L., & VanderWeele, T. J. (2013) · Psychological Methods · doi:10.1037/a0031034 · Cited by 2,132
Self-citation
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
Qin, X.-D., Zhou, Y., Bloom, M. S., Qian, Z. (., Geiger, S. D., Vaughn, M. G., Chu, C., Li, Q.-Q., Yang, B.-Y., Hu, L.-W., et al. (2023) · Environmental Health Perspectives · doi:10.1289/ehp11377 · Cited by 45
“33 This approach estimated cord estrogens as potential mediators of PFAS-preterm birth associations, allowing for an interaction between PFAS and cord estrogens, adjusting for maternal age, BMI, education, parity, environmental tobacco smoke exposure (ETS), alcohol intake, household income, date of…”
Background
Metadata
- Authors
- Discacciati, A., Bellavia, A., Lee, J. J., Mazumdar, M., & Valeri, L.
- Venue
- International Journal of Epidemiology
- Publisher
- Oxford University Press (OUP)
- Published
- 2018-11-16
- Volume
- 48
- Issue
- 1
- Pages
- 15-20
- ISSN
- 0300-5771 (ISSN-L)
- 1464-3685
- OpenAlex
- W2900514973
- Cited by
- 249
- References
- 2
- FWCI
- 11.29
- Type
- journal article
- Language
- en
- Open access
- bronze
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
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Med4way: a Stata command to investigate mediating and interactive mechanisms using the four-way effect decomposition. https://app.cochat.ai/papers/10.1093/ije/dyy236
- The paper
- Discacciati, A., Bellavia, A., Lee, J. J., 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. https://doi.org/10.1093/ije/dyy236
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.