Dynamic Inverse Probability Weighting
Dynamic Inverse Probability Weighting for Time-Varying Treatments · Also known as: Dynamic IPW, Time-varying IPW, Longitudinal IPW, Sequential IPW
Dynamic Inverse Probability Weighting (Dynamic IPW) estimates the causal effect of a time-varying treatment sequence by reweighting observed data to mimic a hypothetical randomised trial. Developed by Robins and colleagues in the context of marginal structural models, it handles the challenge that in longitudinal settings, past treatment affects future covariates, which in turn affect future treatment — a feedback loop that standard regression cannot untangle.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
When to use it
Use Dynamic IPW when the treatment of interest is administered repeatedly over time, both treatment and covariates vary across periods, and treatment decisions at each time point are influenced by prior covariate history — the classic time-varying confounding setting. It is well suited to pharmacoepidemiology (e.g., time-varying drug use), economics of repeated programme participation, and public-health interventions with evolving exposure. Assumptions are: no unmeasured time-varying confounding (sequential ignorability), positivity (every subject has a non-zero probability of each treatment at each period), and consistency. Avoid it when unmeasured confounders exist (instrumental variables may be preferred), when the number of time points is very large relative to sample size so weights become extreme, or when treatment sequences are so rare that positivity fails for some covariate histories.
Strengths & limitations
- Handles time-varying confounding that mediates the treatment-covariate-treatment feedback loop, which standard regression adjustment cannot resolve without biasing the estimate.
- Does not require a parametric outcome model — only the treatment assignment mechanism needs to be modelled at each period.
- Stabilised weights reduce variance and allow standard weighted outcome regression on the resulting pseudo-population.
- Directly targets the causal effect of well-defined treatment regimes or protocols, making the estimand transparent and policy-relevant.
- Can be combined with outcome modelling in a doubly robust estimator for added protection against propensity model misspecification.
- Relies on the no unmeasured time-varying confounding assumption (sequential ignorability), which is untestable and demanding in observational settings.
- The positivity assumption can fail in practice: if some covariate histories make treatment nearly deterministic, weights become extreme and variance explodes.
- Propensity models must be correctly specified at every time point; misspecification accumulates multiplicatively across periods and can produce substantial bias.
- With many time points or rare treatment trajectories, the product of inverse probabilities can yield extremely large weights, leading to unstable estimates.
- Requires large samples to estimate propensity models reliably at each period and to have enough individuals following each treatment regime of interest.
Frequently asked
What distinguishes Dynamic IPW from standard (static) IPW?
Standard IPW handles a single-time treatment: one propensity score is estimated and each observation is reweighted once. Dynamic IPW handles treatment sequences over multiple periods, estimating a propensity model at each time point and multiplying the inverse probabilities across periods. The key additional challenge is time-varying confounding — variables that are simultaneously affected by past treatment and cause future treatment — which static IPW cannot accommodate without biasing the estimate by blocking causal pathways.
What is the positivity assumption and when does it fail?
Positivity requires that every individual, regardless of their covariate history, has a non-zero probability of receiving each treatment at each time point. It fails when some covariate combinations make treatment deterministic — for example, if all patients with a certain lab value always receive a specific drug. In such cases, weights become infinite and the causal effect is not identified. Checking empirical support for positivity (e.g., examining propensity score distributions) is essential before applying Dynamic IPW.
Why use stabilised weights instead of plain inverse probability weights?
Unstabilised weights have expected values greater than one and tend to be highly variable, which increases estimator variance. Stabilised weights place the marginal (unconditional) treatment probability in the numerator, keeping the expected weight close to one and substantially reducing variance without introducing bias. In practice, stabilised weights yield narrower confidence intervals and are less sensitive to extreme observations, and they are the recommended default.
How should I handle extreme weights in practice?
First diagnose them by examining the distribution of weights (mean, max, 99th percentile). If extreme weights are present, consider: (1) improving propensity model specification by adding interactions or using flexible machine-learning methods; (2) ensuring weights are stabilised; (3) trimming or truncating weights at a threshold such as the 99th percentile, which introduces small bias but substantially reduces variance. Always report sensitivity analyses under different trimming strategies.
Can Dynamic IPW be combined with outcome modelling for robustness?
Yes. A doubly robust estimator combines Dynamic IPW weights with a weighted outcome model (e.g., a marginal structural model). The resulting estimator is consistent if either the propensity models or the outcome model is correctly specified — providing a safety net against misspecification of either component. Doubly robust versions generally have better finite-sample properties than pure IPW when sample sizes are moderate.
Sources
- 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 ↗
- Hernan, M. A., & Robins, J. M. (2020). Causal Inference: What If. Chapman & Hall/CRC. link ↗
How to cite this page
ScholarGate. (2026, June 3). Dynamic Inverse Probability Weighting for Time-Varying Treatments. ScholarGate. https://scholargate.app/en/causal-inference/dynamic-inverse-probability-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.
- Doubly Robust EstimationCausal inference↔ compare
- Inverse Probability WeightingCausal inference↔ compare
- Marginal Structural ModelCausal inference↔ compare
- Propensity Score WeightingCausal inference↔ compare