Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Causal inference›Marginal Structural Model (MSM)
Regression modelQuasi-experimental / causal inference

Marginal Structural Model (MSM)

Marginal Structural Model with Inverse Probability of Treatment Weighting · Also known as: MSM, MSM-IPTW, marginal structural Cox model, weighted structural model

A marginal structural model is a causal modeling framework designed to estimate the effect of a time-varying treatment in the presence of time-varying confounders that are themselves affected by prior treatment. By reweighting observations with inverse probability of treatment weights, MSMs create a pseudo-population in which confounding is eliminated, enabling unbiased estimation of causal treatment contrasts even when standard regression adjustments would fail.

ScholarGate
  1. Regression model
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Marginal Structural Model
Difference-in-DifferencesDoubly Robust EstimationG-ComputationInverse Probability Weig…Propensity Score Weighti…Bayesian Doubly Robust E…Bayesian Inverse Probabi…Bayesian Marginal Struct…Bayesian Propensity Scor…Bayesian Sensitivity Ana…

+26 more

When to use it

Use marginal structural models when treatment varies over time and time-varying covariates both predict future treatment and are affected by past treatment — a situation called treatment-confounder feedback or time-varying confounding. Common contexts include long-term drug exposure studies in epidemiology, repeated policy exposures in economics, and intensive-care treatment sequences in clinical research. MSMs are appropriate for longitudinal cohort data with binary or continuous time-varying treatment and a single final or cumulative outcome. Do not use MSMs when treatment is fixed and assigned once (standard propensity score methods suffice), when the positivity assumption fails (some covariate patterns have zero probability of treatment), when you have very few time points and weak confounding (ordinary regression is adequate), or when the primary interest is a conditional rather than marginal effect.

Strengths & limitations

Strengths
  • Correctly handles time-varying confounders that are intermediate variables on the causal pathway — something conventional regression adjustments cannot do.
  • Targets a marginal (population-average) causal effect that is directly policy-relevant and interpretable without conditioning on individual covariate trajectories.
  • Separates the treatment model from the outcome model, allowing flexible machine-learning approaches to estimate weights without misspecifying the outcome model.
  • Stabilized weights keep the pseudo-population well-behaved and reduce variance compared with raw IPTW estimators.
  • Readily extended to survival outcomes via marginal structural Cox models, making it widely applicable in clinical and epidemiological time-to-event research.
Limitations
  • Relies on three identifying assumptions — no unmeasured confounding (sequential exchangeability), positivity (every treatment level has nonzero probability at every history), and correct model specification — all of which are untestable from data alone.
  • Extreme or highly variable weights inflate variance and can produce unstable estimates; weight truncation is a common but ad hoc remedy.
  • Requires correctly specifying the treatment model at every time point; errors in any period propagate through the entire weight product.
  • Inefficient compared with doubly robust estimators such as targeted maximum likelihood estimation (TMLE) when the outcome model is also available.
  • Large, high-quality longitudinal datasets with complete covariate histories are needed; missing data in treatment or covariate history requires additional assumptions and methods.

Frequently asked

What makes MSMs different from conventional multivariable regression?

Conventional regression that adjusts for a time-varying covariate that is also affected by past treatment introduces collider-stratification bias. MSMs avoid this by removing confounding through reweighting rather than by conditioning, so that time-varying intermediates do not act as colliders in the adjusted model.

What is the positivity assumption and why does it matter?

Positivity requires that every individual, regardless of their covariate history, has a nonzero probability of receiving each level of treatment at each time point. If positivity fails, the inverse probability weights become infinite for some observations, making estimation impossible and results unreliable. Practical near-violations also inflate variance substantially.

When should I use stabilized versus unstabilized weights?

Always prefer stabilized weights in practice. Unstabilized weights have mean equal to the sample size, which is inefficient and leads to high-variance estimates. Stabilized weights have mean approximately 1 and achieve the same confounding removal with lower variance.

How do I handle extreme weights?

Inspect the weight distribution before fitting the outcome model. Commonly, weights above a threshold (e.g., the 99th percentile or a value of 10–20) are truncated or trimmed. Truncation reduces variance but introduces a small bias; sensitivity analyses should compare results with and without truncation.

Is an MSM the same as doubly robust estimation?

No. An MSM with IPTW is consistent only if the treatment model is correctly specified. Doubly robust estimators such as augmented IPTW or TMLE combine a treatment model and an outcome model, so they are consistent if either (but not necessarily both) is correctly specified — providing an additional layer of protection against misspecification.

Sources

  1. Robins, J. M., Hernan, M. A., & Brumback, B. (2000). Marginal structural models and causal inference in epidemiology. Epidemiology, 11(5), 550-560. DOI: 10.1097/00001648-200009000-00011 ↗
  2. Hernan, M. A., & Robins, J. M. (2020). Causal Inference: What If. Chapman & Hall/CRC. link ↗

How to cite this page

ScholarGate. (2026, June 3). Marginal Structural Model with Inverse Probability of Treatment Weighting. ScholarGate. https://scholargate.app/en/causal-inference/marginal-structural-model

Related methods

Difference-in-DifferencesDoubly Robust EstimationG-ComputationInverse Probability WeightingPropensity Score Weighting

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Difference-in-DifferencesEconometrics↔ compare
  • Doubly Robust EstimationCausal inference↔ compare
  • G-ComputationCausal inference↔ compare
  • Inverse Probability WeightingCausal inference↔ compare
  • Propensity Score WeightingCausal inference↔ compare
Compare side by side →

Referenced by

Bayesian Doubly Robust EstimationBayesian Inverse Probability WeightingBayesian Marginal Structural ModelBayesian Propensity Score WeightingBayesian Sensitivity Analysis for CausalityDoubly Robust Estimation in Education ResearchDynamic Counterfactual Impact EvaluationDynamic Entropy BalancingDynamic Inverse Probability WeightingDynamic Matching EstimatorDynamic Propensity Score MatchingHeterogeneous treatment effect Counterfactual impact evaluationHeterogeneous treatment effect Doubly robust estimationHeterogeneous Treatment Effect Inverse Probability WeightingHeterogeneous Treatment Effect Marginal Structural ModelMachine learning-augmented doubly robust estimationMachine Learning-Augmented Marginal Structural ModelMulti-period Counterfactual Impact EvaluationMulti-period Doubly Robust EstimationMulti-period Inverse Probability WeightingMulti-period Propensity Score WeightingPanel Data Inverse Probability WeightingPanel Data Marginal Structural ModelPanel Data Propensity Score WeightingPolicy Evaluation Doubly Robust EstimationPolicy Evaluation Inverse Probability WeightingPolicy Evaluation Marginal Structural ModelRobust Inverse Probability WeightingRobust Marginal Structural ModelRobust Propensity Score WeightingSpatial Marginal Structural Model

Similar methods

Marginal Structural Model (IPTW)Robust Marginal Structural ModelPanel Data Marginal Structural ModelPolicy Evaluation Marginal Structural ModelBayesian Marginal Structural ModelHeterogeneous Treatment Effect Marginal Structural ModelMachine Learning-Augmented Marginal Structural ModelDynamic Inverse Probability Weighting

Related reference concepts

Counterfactual ReasoningCausal InferenceCausal IdentificationSensitivity AnalysisCox Regression ModelsEffect Modification and Interaction

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Marginal Structural Model (Marginal Structural Model with Inverse Probability of Treatment Weighting). Retrieved 2026-07-21 from https://scholargate.app/en/causal-inference/marginal-structural-model · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
James M. Robins, Miguel A. Hernan, Babette Brumback
Year
2000
Type
Causal model / semiparametric weighting
DataType
Longitudinal / time-varying treatment and covariate data
Subfamily
Quasi-experimental / causal inference
Related methods
Difference-in-DifferencesDoubly Robust EstimationG-ComputationInverse Probability WeightingPropensity Score Weighting
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account