The DOI matches its Crossref record; 51 of the 51 references it cites were found in a registry or an index.
medflex: An R Package for Flexible Mediation Analysis using Natural Effect Models
Open accessAbstract
Mediation analysis is routinely adopted by researchers from a wide range of applied disciplines as a statistical tool to disentangle the causal pathways by which an exposure or treatment affects an outcome. The counterfactual framework provides a language for clearly defining path-specific effects of interest and has fostered a principled extension of mediation analysis beyond the context of linear models. This paper describes medflex, an R package that implements some recent developments in mediation analysis embedded within the counterfactual framework. The medflex package offers a set of ready-made functions for fitting natural effect models, a novel class of causal models which directly parameterize the path-specific effects of interest, thereby adding flexibility to existing software packages for mediation analysis, in particular with respect to hypothesis testing and parsimony. In this paper, we give a comprehensive overview of the functionalities of the medflex package.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
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
R: A Language and Environment for Statistical Computing
R Core Team (2025) · doi:10.32614/r.manuals · Cited by 352,181
Baron, R. M., & Kenny, D. A. (1986) · Journal of Personality and Social Psychology · doi:10.1037/0022-3514.51.6.1173 · Cited by 91,532
Longitudinal data analysis using generalized linear models
LIANG, K.-Y., & ZEGER, S. L. (1986) · Biometrika · doi:10.1093/biomet/73.1.13 · Cited by 18,550
mice: Multivariate Imputation by Chained Equations in R
Buuren, S. V., & Groothuis-Oudshoorn, K. (2011) · Journal of Statistical Software · doi:10.18637/jss.v045.i03 · Cited by 13,870
Simultaneous Inference in General Parametric Models
Hothorn, T., Bretz, F., & Westfall, P. (2008) · Biometrical Journal · doi:10.1002/bimj.200810425 · Cited by 13,847
Addressing Moderated Mediation Hypotheses: Theory, Methods, and Prescriptions
Preacher, K. J., Rucker, D. D., & Hayes, A. F. (2007) · Multivariate Behavioral Research · doi:10.1080/00273170701341316 · Cited by 9,973
Brown, R. A., Hastie, T. J., & Tibshirani, R. J. (1991) · Biometrics · doi:10.2307/2532174 · Cited by 8,176
Statistics and Causal Inference
Holland, P. W. (1986) · Journal of the American Statistical Association · doi:10.1080/01621459.1986.10478354 · Cited by 5,293
mediation: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
A general approach to causal mediation analysis.
Imai, K., Keele, L., & Tingley, D. (2010) · Psychological Methods · doi:10.1037/a0020761 · Cited by 4,143
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
Starling, A. P., Adgate, J. L., Hamman, R. F., Kechris, K., Calafat, A. M., Ye, X., & Dabelea, D. (2017) · Environmental Health Perspectives · doi:10.1289/ehp641 · Cited by 142
Flexible Mediation Analysis With Multiple Mediators
Steen, J., Loeys, T., Moerkerke, B., & Vansteelandt, S. (2017) · American Journal of Epidemiology · doi:10.1093/aje/kwx051 · Cited by 123
Self-citationHeerspink, H. J. L., Apperloo, E., Davies, M., Dicker, D., Kandler, K., Rosenstock, J., Sørrig, R., Lawson, J., Zeuthen, N., & Cherney, D. (2023) · Diabetes Care · doi:10.2337/dc22-1889 · Cited by 98
“The mediation analysis was performed using the medflex package in R (23).”
MethodSomvanshi, P. R., Mellon, S. H., Yehuda, R., Flory, J. D., Makotkine, I., Bierer, L., Marmar, C., Jett, M., & Doyle, F. J. (2020) · American Journal of Physiology-Endocrinology and Metabolism · doi:10.1152/ajpendo.00398.2019 · Cited by 55
Metadata
- Authors
- Steen, J., Loeys, T., Moerkerke, B., & Vansteelandt, S.
- Venue
- Journal of Statistical Software
- Publisher
- Foundation for Open Access Statistic
- Published
- 2017
- Volume
- 76
- Issue
- 11
- ISSN
- 1548-7660 (ISSN-L)
- OpenAlex
- W2591836500
- Cited by
- 278
- References
- 51
- FWCI
- 11.87
- Type
- journal article
- Language
- en
- Open access
- diamond
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: medflex: An R Package for Flexible Mediation Analysis using Natural Effect Models. https://app.cochat.ai/papers/10.18637/jss.v076.i11
- The paper
- Steen, J., Loeys, T., Moerkerke, B., & Vansteelandt, S. (2017). medflex: An R Package for Flexible Mediation Analysis using Natural Effect Models. Journal of Statistical Software. https://doi.org/10.18637/jss.v076.i11
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.