Related Experiment Video
Updated: Aug 24, 2026

Inverse Probability of Treatment Weighting (Propensity Score) using the Military Health System Data Repository and National Death Index
Published on: January 8, 2020
Marginal structural models for analyzing causal effects of time-dependent treatments: an application in perinatal
Lisa M Bodnar1, Marie Davidian, Anna Maria Siega-Riz
1Department of Nutrition, School of Public Health and School of Medicine, and Carolina Population Center, University of North Carolina, Chapel Hill, USA. bodnar@mwri.magee.edu
Abstract:
Marginal structural models (MSMs) are causal models designed to adjust for time-dependent confounding in observational studies of time-varying treatments. MSMs are powerful tools for assessing causality with complicated, longitudinal data sets but have not been widely used by practitioners. The objective of this paper is to illustrate the fitting of an MSM for the causal effect of iron supplement use during pregnancy (time-varying treatment) on odds of anemia at delivery in the presence of time-dependent confounding. Data from pregnant women enrolled in the Iron Supplementation Study (Raleigh, North Carolina, 1997-1999) were used. The authors highlight complexities of MSMs and key issues epidemiologists should recognize before and while undertaking an analysis with these methods and show how such methods can be readily interpreted in existing software packages, including SAS and Stata. The authors emphasize that if a data set with rich information on confounders is available, MSMs can be used straightforwardly to make robust inferences about causal effects of time-dependent treatments/exposures in epidemiologic research.
Related Concept Videos
Mechanistic Models: Compartment Models in Individual and Population Analysis
Introduction To Survival Analysis
The primary goal of survival analysis is to estimate survival time—the time until a...
Comparing the Survival Analysis of Two or More Groups
Regression Toward the Mean
Assumptions of Survival Analysis
Causality in Epidemiology

