Panel Data Propensity Score Weighting

Statistics
Introduced by
Hirano, Imbens & Ridder; Robins, Hernan & Brumback
Year
2000-2003
Type
Causal inference / panel weighting
Family
Quasi-experimental / causal inference

What does it do?

Panel Data Propensity Score Weighting (panel PSW) applies inverse probability weighting to longitudinal data in which the same units are observed across several time periods.

Each observation is weighted by the inverse of its estimated probability of receiving treatment, given its covariates at that time. The reweighted sample is then used to estimate a causal effect from repeated-measures data.

The intuition behind the method

In a panel dataset, each unit is measured repeatedly, and the decision to receive treatment can change over time as unit characteristics change. Treated and untreated observations are not directly comparable, because units that receive treatment often differ systematically from those that do not. PSW addresses this by giving more weight to observations whose covariate profiles are underrepresented in their treatment group and less weight to those that are overrepresented. If the propensity model captures the relevant covariates, the weighted treated and untreated observations look more alike on those covariates at each time point, so the remaining outcome difference is more plausibly attributable to treatment.

History

Hirano, Imbens and Ridder (2003) show that weighting by the inverse of a nonparametric estimate of the propensity score yields an efficient estimate of the average treatment effect; their analysis is cross-sectional. The propensity score itself was introduced by Rosenbaum and Rubin (1983), as referenced in their paper. Robins, Hernan and Brumback (2000) introduced marginal structural models and inverse-probability-of-treatment weighted estimators for time-varying treatments with time-dependent confounding. Their paper is the main source for weighting in longitudinal settings. 'Panel PSW' as a named method has no single originating paper; it combines these strands.

When to use it

Use panel PSW when you have repeated observations on the same units, a binary treatment whose uptake may change over time, and time-varying covariates that plausibly explain who receives treatment. Because the weights are 1/e for treated and 1/(1-e) for untreated observations, the target is the average treatment effect (ATE) for the full population, not the effect on the treated (ATT); for the ATT, use weight 1 for treated and e/(1-e) for untreated observations. Do not use it when important drivers of treatment are unmeasured, since the weights adjust only for observed covariates. Avoid it when the weights are extreme, which often signals limited overlap between treated and untreated covariate profiles; doubly robust estimators, or difference-in-differences where a clear pre/post structure with a comparison group exists, may be more suitable. If the data are truly cross-sectional, or there are very few repeated periods, the panel-specific corrections add little and cross-sectional PSW may be sufficient.

Limitations and considerations

  • Relies on the assumption of no unmeasured confounding: unobserved drivers of both treatment and outcome leave the weighted estimate biased.
  • When propensity scores are close to 0 or 1, the weights become very large and the estimates highly variable; truncation limits this but introduces bias, so report results with and without it. Weights above roughly 10, or a large drop in effective sample size, are commonly treated as warning signs; this is a convention, not a rule.
  • The propensity model must be correctly specified, because errors in the fitted probabilities pass directly into the weights.
  • When treatment changes over time and covariates are affected by earlier treatment, weights are multiplied across periods as in marginal structural models, which compounds variability.
  • Inference must account for within-unit correlation through unit-clustered standard errors or the cluster bootstrap, which adds complexity compared with standard OLS.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Addresses selection on observed covariates that vary over time, provided those covariates are measured before treatment in each period.
  • Weights are built from a propensity score for each unit-period, so the outcome analysis can adjust for measured confounders without a separate matching step; covariate balance after weighting should still be verified.
  • Because treated observations are weighted by 1/e and untreated observations by 1/(1-e), the estimand is the average treatment effect for the full population, not only the treated.
  • Once the weights are constructed, they can be applied within a range of outcome models, including linear, logistic and survival models.
  • Stabilized weights, whose numerator is the marginal treatment probability rather than 1, have lower variance than unstabilized weights and are more numerically stable in long panels.

Applications

  • Estimating the causal effect of job training programmes on wages using multi-year administrative panel records.
  • Evaluating the impact of medical treatments on patient outcomes in longitudinal cohort studies.
  • Assessing the effect of firm-level policy adoption on performance using multi-year firm panel data.
  • Studying the consequences of school or programme participation decisions in education panel datasets.
  • Measuring the labour-market effects of disability onset or job loss in multi-wave survey panels.

How it works

How it works

1

For each unit i at each time period t, a propensity score is estimated as the probability that the unit is treated given its observed covariates X_it. Covariates must be measured before treatment in that period. This is typically done with a logistic regression or a machine learning classifier fit on the panel, and may include lagged outcomes or covariates to capture the panel dynamics.

Formula
\hat{e}_{it} = P(D_{it}=1 \mid X_{it})
2

Each observation is assigned an inverse probability weight. Treated observations receive a weight of 1/e_hat and untreated observations receive 1/(1-e_hat), so that treated or untreated units with covariate profiles that are unlikely in their own group are given more influence. These weights aim to create a pseudo-population in which treatment assignment is independent of the measured covariates. Whether they achieve this must be checked by comparing covariate balance after weighting. These weights target the ATE under unconfoundedness; for the ATT, treated observations receive weight 1 and untreated observations receive e_hat/(1-e_hat).

Formula
w_{it} = \frac{D_{it}}{\hat{e}_{it}} + \frac{1-D_{it}}{1-\hat{e}_{it}}
3

The effect is estimated as a weighted contrast between treated and untreated outcomes, with weights applied at the observation level and each arm's weighted mean normalised by its own sum of weights (the Hajek form). This normalisation remains appropriate when stabilized weights are used. Equivalently, one can fit a weighted regression of the outcome on treatment, with time fixed effects and any remaining covariates, using unit-clustered standard errors.

Formula
\hat{\tau}_{ATE} = \frac{\sum_{i,t} w_{it} D_{it} Y_{it}}{\sum_{i,t} w_{it} D_{it}} - \frac{\sum_{i,t} w_{it} (1-D_{it}) Y_{it}}{\sum_{i,t} w_{it} (1-D_{it})}
4

Raw IPW weights can be highly variable and unstable, especially in long panels. Stabilized weights replace the numerator 1 with the marginal probability of treatment in the relevant arm, which reduces variance and improves finite-sample performance. Inspect the weight distribution for extreme values, and report any trimming or truncation as a sensitivity analysis.

Formula
\tilde{w}_{it} = \frac{P(D_{it}=1)}{\hat{e}_{it}}\,D_{it} + \frac{P(D_{it}=0)}{1-\hat{e}_{it}}\,(1-D_{it})
5

Because panel observations are correlated within units over time, standard errors must account for within-unit clustering. Use cluster-robust standard errors at the unit level, or a cluster bootstrap that resamples whole units and re-estimates the propensity model in every replicate so that uncertainty from estimating the weights is included. Ignoring within-unit correlation leads to artificially narrow confidence intervals and inflated rejection rates.

Common pitfalls

  • Failing to check weight distributions before analysis; extreme weights signal model misspecification or near-violation of the positivity assumption.
  • Not checking covariate balance after weighting; compare standardized mean differences before and after weighting, since the weights do not guarantee balance.
  • Using individual-period standard errors instead of cluster-robust standard errors clustered at the unit level, leading to false precision.
  • Using a bootstrap that resamples observations rather than whole units, or that does not re-estimate the propensity model in each replicate.
  • Treating the weighted estimate as valid when the overlap assumption is violated — if some covariate profiles exist only in the treated or only in the untreated, causal identification breaks down.
  • Ignoring time-ordering of covariates and treatment: covariates measured after treatment onset should not be included in the propensity model.

Frequently asked questions

How does panel PSW differ from ordinary (cross-sectional) PSW?

In cross-sectional PSW each observation is independent and a single propensity score is estimated per unit. In panel PSW each unit is observed multiple times, so the propensity score can vary over time with changing covariates, observations within a unit are correlated, and inference must use cluster-robust or bootstrap standard errors.

What is the positivity assumption and why does it matter?

Positivity requires that every covariate profile has a non-zero probability of both receiving and not receiving treatment (0 < e < 1). If some profiles occur only in treated or only in untreated units, the weights become infinite and causal identification fails. Weight distributions near 0 or 1 are a warning sign.

Should I use stabilized or unstabilized weights?

Stabilized weights are generally recommended. They multiply by the marginal treatment probability in each arm, which keeps the expected weight equal to one under correct model specification while lowering variance, making estimates more numerically stable. Unstabilized weights can be extremely large when propensity scores are close to 0 or 1.

Can I combine panel PSW with regression adjustment?

Yes. Combining weighting with regression adjustment yields doubly robust estimation: the causal estimate is consistent if either the propensity model or the outcome model is correctly specified. This offers additional protection against model misspecification.

When should I prefer difference-in-differences over panel PSW?

Prefer DiD when there is a clear pre/post structure with a policy or event affecting one group, and you are willing to assume parallel trends rather than ignorable treatment selection. Panel PSW is preferable when treatment assignment is driven by observed time-varying characteristics and no clean before/after structure exists.

Related methods

Sources

  1. Hirano, K., Imbens, G. W., & Ridder, G. (2003). Efficient Estimation of Average Treatment Effects Using the Estimated Propensity Score. Econometrica, 71(4), 1161-1189.

    Open DOI reference
  2. Robins, J. M., Hernan, M. A., & Brumback, B. (2000). Marginal Structural Models and Causal Inference in Epidemiology. Epidemiology, 11(5), 550-560.

    Open DOI reference