Understanding Marginal Structural Models for Time-Varying Exposures: Pitfalls and Tips
Open accessThe DOI matches its Crossref record; 81 of the 82 references it cites were found in a registry or an index.
Abstract
Epidemiologists are increasingly encountering complex longitudinal data, in which exposures and their confounders vary during follow-up. When a prior exposure affects the confounders of the subsequent exposures, estimating the effects of the time-varying exposures requires special statistical techniques, possibly with structural (ie, counterfactual) models for targeted effects, even if all confounders are accurately measured. Among the methods used to estimate such effects, which can be cast as a marginal structural model in a straightforward way, one popular approach is inverse probability weighting. Despite the seemingly intuitive theory and easy-to-implement software, misunderstandings (or "pitfalls") remain. For example, one may mistakenly equate marginal structural models with inverse probability weighting, failing to distinguish a marginal structural model encoding the causal parameters of interest from a nuisance model for exposure probability, and thereby failing to separate the problems of variable selection and model specification for these distinct models. Assuming the causal parameters of interest are identified given the study design and measurements, we provide a step-by-step illustration of generalized computation of standardization (called the g-formula) and inverse probability weighting, as well as the specification of marginal structural models, particularly for time-varying exposures. We use a novel hypothetical example, which allows us access to typically hidden potential outcomes. This illustration provides steppingstones (or "tips") to understand more concretely the estimation of the effects of complex time-varying exposures.
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
Figures


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.
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?
The cited source says what the claim attributes to it.
In the citing paper
“Other innovations in confounding adjustment methods include Bayesian approaches for trajectory modeling [96, 97], machine learning to estimate weights for IPW and doubly robust estimators [98-100], and IPW approaches driven by latent variables or marginal structure models to facilitate a better understanding of selection into treatment [100-102].”
From Difference-in-Differences for Health Policy and Practice: A Review of Modern Methods (2025) · cites this paper as [101]
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
The central role of the propensity score in observational studies for causal effects
ROSENBAUM, P. R., & RUBIN, D. B. (1983) · Biometrika · doi:10.1093/biomet/70.1.41 · Cited by 31,241
Marginal Structural Models and Causal Inference in Epidemiology
Robins, J. M., Hernán, M. Á., & Brumback, B. (2000) · Epidemiology · doi:10.1097/00001648-200009000-00011 · Cited by 5,581
Causal Diagrams for Epidemiologic Research
Greenland, S., Pearl, J., & Robins, J. M. (1999) · Epidemiology · doi:10.1097/00001648-199901000-00008 · Cited by 3,728 · cited 6×
“(1) or inverse probability weighting (2).”
BackgroundMethodInfluentialAir Pollution and Hospital Admissions for Heart Disease in Eight U.S. Counties
Schwartz, J. (1999) · Epidemiology · doi:10.1097/00001648-199901000-00005 · Cited by 3,038
A structural approach to selection bias
Hernán, M. A., Hernández-Díaz, S., & Robins, J. M. (2004) · Epidemiology · doi:10.1097/01.ede.0000135174.63482.43 · Cited by 2,844
Estimation of Regression Coefficients When Some Regressors are not Always Observed
Robins, J. M., Rotnitzky, A., & Zhao, L. P. (1994) · Journal of the American Statistical Association · doi:10.1080/01621459.1994.10476818 · Cited by 2,823
Constructing Inverse Probability Weights for Marginal Structural Models
Cole, S. R., & Hernan, M. A. (2008) · American Journal of Epidemiology · doi:10.1093/aje/kwn164 · Cited by 2,796
Robins, J. (1986) · Mathematical Modelling · doi:10.1016/0270-0255(86)90088-6 · Cited by 2,451
Causal diagrams for empirical research
PEARL, J. (1995) · Biometrika · doi:10.1093/biomet/82.4.669 · Cited by 2,355
Doubly robust estimation in missing data and causal inference models
Bang, H., & Robins, J. M. (2005) · Biometrics · doi:10.1111/j.1541-0420.2005.00377.x · Cited by 1,998
Research works printed but not linked: 5
- Rothman KJ, Greenland S, Lash TL, eds. Modern Epidemiology, 3rd ed. Philadelphia, PA: Lippincott Williams and Wilkins; 2008.
- Richardson TS, Robins JM. Single world intervention graphs: a primer. Second UAI workshop on causal structure learning, Bellevue, Washington. 2013.
- Glymour MM. Using causal diagrams to understand common problems in social epidemiology. In: Oakes JM, Kaufman JS, eds. Methods in Social Epidemiology. 2nd ed. San Francisco, CA: Jossey-Bass; 2017:458–492.
- Robins JM. The analysis of randomized and non-randomized AIDS treatment trials using a new approach to causal inference in longitudinal studies. In: Sechrest L, Freeman H, Mulley A, eds. Health Service Research Methodology: A Focus on AIDS. Washington DC: U.S. Public Health Service, National Center for Health Services Research; 1989:113–159.
- Pearl J. Direct and indirect effects. In: Proceedings of the Seventeenth Conference on Uncertainty in Artificial Intelligence. San Francisco, CA: Morgan Kaufmann; 2001:411–420.
Cited by
Using Propensity Scores for Causal Inference: Pitfalls and Tips
Shiba, K., & Kawahara, T. (2021) · Journal of Epidemiology · doi:10.2188/jea.je20210145 · Cited by 183
Causal inference and effect estimation using observational data
Igelström, E., Craig, P., Lewsey, J., Lynch, J. W., Pearce, A., & Katikireddi, S. V. (2022) · Journal of Epidemiology & Community Health · doi:10.1136/jech-2022-219267 · Cited by 129
“39 40 G-estimation (using structural nested mean models ) predicts the counterfactual outcome at each time point given no exposure from that point onwards, conditional on prior values of the exposure and confounders.”
Kusama, T., Takeuchi, K., Kiuchi, S., Aida, J., & Osaka, K. (2023) · Journal of the American Geriatrics Society · doi:10.1111/jgs.18707 · Cited by 36
“16,29 Figure 1 shows the hypothesized causal diagram for the two-time-point exposure data investigated in this study.”
BackgroundDe-escalating adjuvant durvalumab treatment duration in stage III non-small cell lung cancer
Bryant, A. K., Sankar, K. N., Zhao, L., Strohbehn, G. W., Elliott, D., Moghanaki, D. M., Kelley, M. J., Ramnath, N., & Green, M. D. (2022) · European Journal of Cancer · doi:10.1016/j.ejca.2022.04.033 · Cited by 30
McGinty, E. E., Seewald, N. J., Bandara, S. N., Cerdá, M., Daumit, G. L., Eisenberg, M. D., Griffin, B. A., Igusa, T., Jackson, J. W., Kennedy‐Hendricks, A., et al. (2022) · Prevention Science · doi:10.1007/s11121-022-01427-8 · Cited by 30
Huang, J.-J., Zou, Z.-Y., Zhou, Z.-P., Liu, Y., Yang, Z.-J., Zhang, J., Luan, Y., Yao, Y.-M., & Wu, M. T. (2023) · Frontiers in Pharmacology · doi:10.3389/fphar.2023.1173893 · Cited by 26
“MSCM parameters were predicted using inverse probability weighting (IPW) to correct for confounding in addition to types of selection bias, such as informative censoring (Shinozaki and Suzuki, 2020).”
MethodJordan, S. E., Bromley, R., Damase‐Michel, C., Given, J. E., Komninou, S., Loane, M. A., Marfell, N., & Dolk, H. M. (2022) · International Breastfeeding Journal · doi:10.1186/s13006-022-00494-5 · Cited by 25
“Where prescription regimens change frequently, analysis depends on modelling assumptions [111].”
BackgroundMalec, S. A., Taneja, S. B., Albert, S. M., Shaaban, C. E., Karim, H. T., Levine, A. S., Munro, P., Callahan, T. J., & Boyce, R. D. (2023) · Journal of Biomedical Informatics · doi:10.1016/j.jbi.2023.104368 · Cited by 24
Difference-in-Differences for Health Policy and Practice: A Review of Modern Methods
Feng, S., Ganguli, I., Lee, Y., Poe, J., Ryan, A., & Bilinski, A. (2025) · Statistics in Medicine · doi:10.1002/sim.70247 · Cited by 16
Zhao, J., Sjölander, A., & Edgren, G. (2022) · JAMA Internal Medicine · doi:10.1001/jamainternmed.2022.2115 · Cited by 18
Xie, H. W., Li, M., & Zheng, Y. (2024) · Gynecologic Oncology · doi:10.1016/j.ygyno.2024.01.007 · Cited by 21
Statistical Methods in Epidemiology
Ng, H. K. T., & Lovrić, M. (2025) · Springer eBooks · doi:10.1007/978-3-662-69359-9_616 · Cited by 10
Iwagami, M., Ishimaru, M., Takeuchi, Y., & Shinozaki, T. (2024) · Journal of Epidemiology · doi:10.2188/jea.je20240245 · Cited by 8
Self-citationKawahara, T., Shiba, K., & Tsuchiya, A. (2022) · World Neurosurgery · doi:10.1016/j.wneu.2021.09.141 · Cited by 9
Kusama, T., Kiuchi, S., Tani, Y., Aida, J., Kondo, K., & Osaka, K. (2022) · Age and Ageing · doi:10.1093/ageing/afac022 · Cited by 7
Narita, Z. C., DeVylder, J., Knowles, G., Yamasaki, S., Miyashita, M., Stanyon, D., Yamaguchi, S., Shinozaki, T., Sasaki, R., Zhou, R., et al. (2026) · Journal of Child Psychology and Psychiatry · doi:10.1111/jcpp.70114 · Cited by 8
Self-citationOnozawa, S., Kimura, T., Ito, Y., & Akizawa, T. (2021) · Clinical and Experimental Nephrology · doi:10.1007/s10157-021-02137-1 · Cited by 7
“, anemia treatment), the effects of time-varying anemic status was estimated using a counterfactual modeling approach [26].”
MethodCabrera, C. S., Quelen, C., Ouwens, M., Hedman, K., Rigney, U., & Quint, J. K. (2021) · Annals of Epidemiology · doi:10.1016/j.annepidem.2021.11.004 · Cited by 6
Nakahashi, S., Suzuki, K., Nakashima, T., Hayashi, Y., Tanabe, Y., Tanaka, A., Hashiuchi, S., Yamashita, C., Ito, Y., Wada, T., et al. (2025) · Intensive Care Medicine · doi:10.1007/s00134-025-08074-x · Cited by 5
“As time-varying confounders may be affected by the previous exposure status, we applied inverse probability (IP)-weighted Cox models to account for time-varying confounding [28].”
Self-citationXu, Q., & Przepiorka, D. (2021) · Pharmaceutical Statistics · doi:10.1002/pst.2127 · Cited by 5
“However, recent studies demonstrated that the method can help to interpret the data from controlled, randomized clinical trials.(19) For well controlled clinical trials with subsequent therapies, the implementation of the MSM can be significantly simplified under certain situations, for example, analysis with a point-…”
MethodPatel, P., Deshpande, A., Yu, P.-C., Imrey, P. B., Lindenauer, P. K., Zilberberg, M. D., Haessler, S., & Rothberg, M. B. (2022) · Infection Control and Hospital Epidemiology · doi:10.1017/ice.2022.60 · Cited by 4
Hinwood, M., Nyberg, J., Leigh, L., Gustavsson, S., Attia, J. R., Oldmeadow, C. J., Ilicic, M., Linden, T. K. A., Åberg, N. D., Levi, C. R., et al. (2022) · BMJ Open · doi:10.1136/bmjopen-2021-058244 · Cited by 4
Huang, J.-J., Cai, J.-Z., Zhou, Z.-P., Liu, Y., Yang, Z.-J., Li, D.-Z., Chen, Y., Luan, Y., Yao, Y.-M., & Wu, M. T. (2023) · Frontiers in Pharmacology · doi:10.3389/fphar.2023.1281235 · Cited by 4
“In addition, MSCM parameters were predicted based on inverse probability weighting (IPW) (IPW) to correct selection bias or confounders, such as informative censoring (Shinozaki and Suzuki, 2020).”
MethodImpact of type of anticoagulant on clinical outcomes in cancer patients who had atrial fibrillation
Chai‐Adisaksopha, C., Watanabe, A. H., Dilokthornsakul, P., Navaravong, L., Witt, D. M., & Chaiyakunapruk, N. (2023) · Scientific Reports · doi:10.1038/s41598-023-38071-3 · Cited by 7
Context Is Medicine: Integrating the Exposome into Neurorehabilitation
Calabrò, R. S. (2025) · Brain Sciences · doi:10.3390/brainsci15111198 · Cited by 3
“Mixed-effects models estimate between-arm differences, while marginal structural models address time-varying confounding from changing sleep and medication exposure [46,47].”
Wang, Y., Li, Y., Lin, T., & Guo, Y. (2026) · npj Digital Medicine · doi:10.1038/s41746-026-02563-z · Cited by 3
A critical look at observational studies
Torğutalp, M., EROĞLU, D. Ş., & Taşçılar, K. (2026) · Current Opinion in Immunology · doi:10.1016/j.coi.2026.102778 · Cited by 2
Rivera, A. S., Pak, K. J., Mefford, M. T., & Hechter, R. C. (2023) · Open Forum Infectious Diseases · doi:10.1093/ofid/ofad695 · Cited by 1
“Horizontal line through zero is threshold for no difference. with larger samples and more regular timing of assessments [40, 41].”
BackgroundAssociation between Time-Updated Eosinophil Counts and Progression of CKDPreprint
Hattori, K., Sakaguchi, Y., Oka, T., Kawaoka, T., Kajimoto, S., Asahina, Y., Matsui, I., Mizui, M., Kaimori, J.-Y., & Isaka, Y. (2022) · Research Square · doi:10.21203/rs.3.rs-2003296/v1 · Cited by 1
Huang, J.-J., Zou, Z.-Y., Zhou, Z.-P., Liu, Y., Yang, Z.-J., Zhang, J., Luan, Y., Yao, Y.-M., & Wu, M. T. (2022) · Research Square · doi:10.21203/rs.3.rs-1897986/v1
New Special Article Series: “Methodological Tutorial Series for Epidemiological Studies”
Ito, Y. (2025) · Journal of Epidemiology · doi:10.2188/jea.je20240387
Causal Risk Ratio and Causal Risk Difference in Longitudinal Studies With Frequent Outcome Events
Shiiba, H., Noma, H., Kuwahara, K., Nakagawa, T., & Mizoue, T. (2025) · Data Science in Science · doi:10.1080/26941899.2025.2527144
Buchan, M. C., Richmond, S. A., Skinner, K. A., & Leatherdale, S. T. (2025) · Journal of Physical Activity and Health · doi:10.1123/jpah.2024-0785 · Cited by 1
Choosing an Index Date for Untreated Patients in External Comparator Studies
Antunes, L., Rippin, G., Ralphs, E., Luguzis, A., Arnold, K. F., & Lee, H. (2025) · Drug Safety · doi:10.1007/s40264-025-01613-x
Huang, D., Hoster, E., Mansmann, U., Dreyling, M. H., & Englert, S. (2025) · Statistics in Biopharmaceutical Research · doi:10.1080/19466315.2025.2579552
“Robust variance estimator is used for estimating confidence interval to account for within-patient’s correlation from a weighted population (Ali, Ali, and Wei 2014; Shinozaki and Suzuki 2020).”
Nguyen, B. T., Li, Y.-C., Dang, H. N., Nguyen, H. T., Thai, N. T. H., Nguyen, D. T., Nguyen, Q. T., Nguyen, D. T. K., Le, H. T. N., Nguyen, V. N. B., et al. (2026) · Open Heart · doi:10.1136/openhrt-2025-003754
Incorporating non-randomized studies into critical care clinical practice guidelines
Tran, A., Granton, D., Fan, E., & Rochwerg, B. N. (2026) · American Journal of Respiratory and Critical Care Medicine · doi:10.1093/ajrccm/aamag014
Comment on “Stroke preventive strategies and long-term cognitive function: A population-based study”
Jia, L. (2026) · Journal of the Neurological Sciences · doi:10.1016/j.jns.2026.125959
Fed-CausalDiff: Decoupled Synchronization for Federated Do-Simulation and Policy Evaluation
Li, P., & Khalil, M. (2026) · International Conference on Federated Learning and Intelligent Computing Systems (FLICS) · doi:10.1109/flics70075.2026.11621931
“As a result, traditional correlation-based models are prone to systematic bias, which complicates the accurate estimation of intervention effects [5].”
Arai, K., Shinozaki, T., Tanaka, S., Okada, H., & Sato, T. S. (2026) · Journal of Causal Inference · doi:10.1515/jci-2025-0022
“Owing to treatment-confounder feed-back, proper adjustment for time-varying confounders necessitates the use of so-called g-methods [1–5].”
Self-citationSequencing Matters: The Contingent Effects of Military Force
Smith, G. L. (2026) · International Studies Quarterly · doi:10.1093/isq/sqag067
Liu, D., Xie, D., Che, X., Li, X., Xu, W., & Wu, G. (2026) · Pharmacological Research · doi:10.1016/j.phrs.2026.108456
Alshahrani, A. M., Selvaraj, L., Kandasamy, G., & Anandan, S. (2026) · Life · doi:10.3390/life16111771 · Cited by 1
Metadata
- Authors
- Shinozaki, T., & Suzuki, E.
- Affiliations
- Tokyo University of Science (JP)
- Okayama University (JP)
- Venue
- Journal of Epidemiology
- Publisher
- Japan Epidemiological Association
- Published
- 2020-09-05
- Volume
- 30
- Issue
- 9
- Pages
- 377-389
- ISSN
- 0917-5040 (ISSN-L)
- 1349-9092
- PMC
- PMC7429147
- OpenAlex
- W3043336983
- Cited by
- 44
- References
- 82
- Citations by year
- 2026: 11 · 2025: 10 · 2024: 2 · 2023: 6 · 2022: 11 · 2021: 4
- FWCI
- 3.70
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- cc-by
- Locations
- Journal of Epidemiology (publishedVersion, cc-by)
- PubMed Central (publishedVersion, cc-by)
- PubMed (publishedVersion)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
- Funders
- Japan Society for the Promotion of Science (20K10471, 20K11716)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Advanced Causal Inference Techniques
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods in Epidemiology
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Bayesian Inference
- Keywords
- marginal structural models, time-varying exposure, inverse probability weighting, g-formula, causal inference, counterfactual modeling, feature selection, model specification, longitudinal data
- MeSH terms
- Humans, Models, Structural, Probability, Reference Standards, Time Factors, Models, Statistical, Causality
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.