- Introduced by
- Lunceford & Davidian (2004); Robins, Hernán & Brumback (2000)
- Year
- 2000-2004
- Type
- Causal weighting estimator
- Family
- Quasi-experimental / causal inference
What does it do?
Robust Inverse Probability Weighting is a causal estimator of average treatment effects from observational data.
It reweights units by stabilized or trimmed inverse propensity-score weights and reports sandwich or bootstrap standard errors. The "robust" label refers to the handling of extreme weights and to the variance estimation, which reflects weight variability. It does not remove bias from a misspecified propensity model or from unmeasured confounding: the point estimate still depends on a correctly specified propensity model and on the unconfoundedness assumption.
The intuition behind the method
Standard IPW gives each unit a weight equal to the inverse of the probability of the treatment it actually received, so that the reweighted sample resembles one in which treatment is unrelated to the measured covariates. When some units have propensity scores close to 0 or 1, their weights become very large, and a few units can dominate the estimate and inflate its variance. Stabilization multiplies each weight by the marginal probability of the observed treatment, which shrinks the weights toward 1 but does not remove the problem for units with extreme propensities. Trimming or winsorizing then limits the influence of the most extreme weights, at the cost of some bias. Finally, the standard error is computed with a sandwich or bootstrap method, rather than the naive formula, so that the reported uncertainty is less dependent on the weights behaving as if they were fixed.
History
Robins, Hernán, and Brumback (2000) introduced marginal structural models and the inverse-probability-of-treatment weighted estimators used to fit them, in settings where time-dependent confounders are also affected by earlier treatment. Lunceford and Davidian (2004) reviewed stratification and weighting approaches based on the propensity score, including methods offering improved precision, and presented extensive comparisons of their performance.
When to use it
Use Robust IPW to estimate average treatment effects from observational data with a binary treatment and a set of measured confounders. It is a reasonable choice when propensity scores are extreme for some units, when raw IPW weights are highly variable, or when a pure weighting estimator is preferred to an outcome model. It applies to cross-sectional or repeated-measures data with continuous or binary outcomes, provided the sample is large enough for the propensity model and the weights to be stable. Do not use it when important confounders are unmeasured, since the unconfoundedness assumption cannot be fixed by the weighting; when the outcome model is the main interest, where OLS or GLM regression is more direct; or when treatment is continuous rather than binary. If the estimand is the effect on the treated, the weights must be changed accordingly.
Limitations and considerations
- The estimator requires unconfoundedness: all confounders must be measured. This assumption cannot be verified from the data alone.
- Trimming introduces bias, and there is no universal rule for choosing the threshold, so results can depend on that choice.
- Stabilization and trimming do not make the point estimate robust to misspecification of the propensity model. The robustness claimed for the variance and weight handling does not extend to the bias of the estimate.
- Weight variability rises as propensity scores approach 0 or 1, so precision is poor when treated and control covariate distributions overlap weakly.
- Stable propensity estimation and reliable weighted estimates require a reasonably large sample.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Stabilization lowers the variance of the weights relative to raw inverse-probability weights, because the marginal treatment probability in the numerator shrinks every weight.
- Trimming or winsorizing gives an explicit control over the influence of units with extreme propensity scores.
- Sandwich or bootstrap standard errors can reflect the variability introduced by the weights, which a naive formula that treats the weights as fixed does not.
- The same stabilized weights can be combined with an outcome model in an augmented (doubly robust) estimator.
- The stabilized-weight framework extends to marginal structural models for time-varying treatments, as in Robins, Hernán, and Brumback (2000).
Applications
- Estimating average treatment effects of medical interventions or exposures in epidemiological cohort studies.
- Evaluating labour-market or social-policy programmes where treatment assignment is non-random but confounders are measured.
- Reweighting survey samples to achieve covariate balance in economics and public-health research.
- Serving as the weighting component of a doubly robust or augmented IPW (AIPW) estimator.
- Constructing marginal structural models for time-varying treatments in longitudinal observational data.
- Conducting programme evaluation with administrative data where randomisation was infeasible.
How it works
How it works
Estimate each unit's propensity score, the probability of treatment given observed covariates, using logistic regression or a flexible machine-learning classifier. The quality of the weights depends directly on this model, so its fit and the overlap between treated and control propensity distributions should be checked before the weights are used.
Formula
\hat{e}(X_i) = P(T_i = 1 \mid X_i)The stabilized weight in the mechanics formula divides the marginal probability of the observed treatment by the conditional probability of that treatment given covariates. The numerator is constant within each treatment group, so it rescales the weights without changing how they vary across units in the same group. It does not cap the weights: a unit with a propensity near 0 or 1 still receives a large weight. Robins, Hernán, and Brumback (2000) describe marginal structural models and the inverse-probability-of-treatment weighted estimators used to fit them; the stabilized form shown here is a common variant of those weights.
Formula
\tilde{w}_i = \frac{P(T_i)}{\hat{e}(X_i)^{T_i}\,(1-\hat{e}(X_i))^{1-T_i}}The mechanics give no formula for this step, so the rule is a choice made by the analyst. Common practice is to exclude (trim) or cap (winsorize) weights beyond a chosen percentile, such as the 1st and 99th, or to exclude units whose propensity scores fall outside a chosen interval such as 0.05 to 0.95. Trimming reduces variance and sensitivity to outliers, but it changes the population being estimated and introduces bias, so the threshold and its effect on the estimate should be reported.
The mechanics formula takes the difference between two sums: the sum of stabilized weight times outcome over treated units, and the same sum over control units. Both sums are divided by the total sample size n, a Horvitz-Thompson-type form in which the weights are not renormalized within each arm. Whether this difference recovers the average treatment effect depends on that normalization and on the numerator chosen for the stabilized weights, so the target of the estimator should be verified before its output is reported as an ATE. A version that divides each arm's weighted sum by the sum of its weights gives a different estimator and should not be confused with this one.
Formula
\hat{\tau}_{ATE} = \frac{1}{n}\sum_{i=1}^{n}\tilde{w}_i\,T_i\,Y_i - \frac{1}{n}\sum_{i=1}^{n}\tilde{w}_i\,(1-T_i)\,Y_iThe mechanics give no variance formula. Standard errors can be obtained from a sandwich estimator or from the nonparametric bootstrap. The bootstrap is more transparent for this purpose when it re-estimates the propensity model in each resample, because the uncertainty from that estimation then enters the interval. In practice, the bootstrap resamples units with replacement, re-estimates the propensity model and the weighted estimate in each resample, and takes percentiles of the resulting estimates as the interval limits. A sandwich variance is valid for the weighted estimate only if it accounts for the propensity estimation step; a formula that treats the weights as known will understate uncertainty.
Common pitfalls
- Using raw (unstabilized) weights without trimming, which allows a few high-weight units to dominate the estimate.
- Reporting naive standard errors based on the weighted sample size rather than a sandwich or bootstrap variance that reflects the weighting, which produces overly narrow confidence intervals.
- Failing to check covariate balance after weighting. If the weighted covariate distributions still differ between arms, the propensity model needs refinement before the estimate is interpreted.
- Applying IPW where overlap is weak. Units with propensity scores close to 0 or 1 signal poor overlap and produce large weights. Excluding or trimming them changes the population the estimate refers to, so the rule and the resulting estimand must be reported, and overlap should be checked before a rule is chosen.
- Conflating the ATE with the ATT. The weights given in the mechanics target the ATE; if the ATT is the estimand, different weights are required.
Frequently asked questions
What is the difference between stabilized and unstabilized IPW?
Unstabilized weights are simply 1/e(X) for treated units and 1/(1-e(X)) for controls, so they can be very large when propensity scores are extreme. Stabilized weights multiply each raw weight by the marginal probability of the observed treatment, typically P(T=1) or P(T=0). This keeps weights closer to 1 on average and reduces variance, without introducing bias under correct model specification. Stabilization does not cap weights, so units with extreme propensities can still have large weights.
How do I choose a trimming threshold?
There is no universally optimal threshold, and the mechanics do not specify one. Common conventions are to trim or winsorize at the 1st and 99th percentiles of the weight distribution, or to exclude units with propensity scores outside [0.05, 0.95]. These are conventions rather than results derived from the weight formula. Trimming changes the population the estimate refers to, so report the estimate under more than one threshold and state the resulting estimand.
When should I use robust IPW versus doubly robust estimation?
Doubly robust (AIPW) estimation combines IPW with an outcome model, so the estimator is consistent if either the propensity model or the outcome model is correct. Prefer AIPW when you can specify a reasonable outcome model and want protection against propensity model misspecification. Use robust IPW when you prefer a pure weighting approach or when an outcome model is difficult to specify.
Does robust IPW handle time-varying treatments?
Yes. The stabilized-weight framework extends to marginal structural models, where each period's weight uses a ratio of marginal to conditional treatment probability, and the overall weight is the product across periods. This is the setting that Robins, Hernán, and Brumback (2000) targeted.
What sample size is needed?
No strict minimum exists. Small samples tend to produce unstable propensity estimates and high-variance weighted estimates, especially when some propensity scores are near 0 or 1. Power depends on the effect size, the degree of confounding, and overlap, so a simulation-based power analysis is recommended for small samples.
Related methods
Sources
Lunceford, J. K., & Davidian, M. (2004). Stratification and weighting via the propensity score in estimation of causal treatment effects: a comparative study. Statistics in Medicine, 23(19), 2937-2960.
Open DOI referenceRobins, J. M., Hernán, M. A., & Brumback, B. (2000). Marginal structural models and causal inference in epidemiology. Epidemiology, 11(5), 550-560.
Open DOI reference