Panel Data Propensity Score Matching

Statistics
Introduced by
Heckman, Ichimura & Todd
Year
1997-1998
Type
Matching / causal inference
Family
Quasi-experimental / causal inference

What does it do?

Panel data propensity score matching estimates treatment effects in longitudinal observational data.

It matches treated and control units on pre-treatment covariates, then differences outcomes over time within each matched set. The approach draws on the matching-estimator framework of Heckman, Ichimura, and Todd (1998). It is useful when randomisation is not feasible and both selection on observed characteristics and fixed differences between units need to be addressed.

The intuition behind the method

In observational panel data, treated units often differ systematically from untreated units. Propensity score matching first makes the two groups comparable by pairing each treated unit with control units that have a similar estimated probability of treatment. The panel dimension then adds a second layer of control. Comparing before-and-after changes within each matched pair removes unit-specific differences that are constant over time and shared by the pair. This relies on the matched units having followed similar trends absent treatment. The combined approach therefore addresses both selection on observed pre-treatment characteristics and fixed differences between units, which neither step handles fully on its own.

History

Heckman, Ichimura, and Todd (1998) developed matching as an econometric evaluation estimator. Their paper provides distribution theory for kernel-based matching, extends the method to more general conditions than those assumed in the earlier statistical literature, and examines when using the propensity score is efficient. They show that using the propensity score is not necessarily better, in the sense of reducing estimator variance, even when the score is known, and they consider cases where the score is estimated parametrically or nonparametrically. The panel differencing step described on this page extends that matching framework; it is not part of the 1998 results. Caliendo and Kopeinig (2008) review practical implementation choices for propensity score matching, including estimation of the score, choice of matching algorithm, common support, matching quality, and the estimation of effects and their standard errors.

When to use it

Use panel data propensity score matching when you have longitudinal observational data, treatment is not randomly assigned, and selection into treatment is plausibly driven by observed pre-treatment characteristics. It also requires that the panel includes observations before treatment, so that the within-pair before-after change can be computed. It suits evaluations of programmes or interventions where participants self-select and repeated outcome measures are available. Do not use it when important confounders are unobserved, when fixed-effects models alone are more appropriate because time-invariant confounding is the main concern, when the pre-treatment period is too short to check whether matched units trended similarly, when treated and control propensity scores barely overlap, or when treatment was randomly assigned, in which case matching adds nothing.

Limitations and considerations

  • Relies on strong ignorability: all confounders must be observed and included in the propensity score model. Unobserved time-varying confounders are not removed by matching or by differencing.
  • Within-pair differencing removes fixed differences only if matched treated and control units would have followed a common trend absent treatment. Matching does not test this assumption.
  • Requires common support. Treated units without a sufficiently close control are dropped, which reduces the sample and narrows the population to which the estimate applies.
  • The ATT formula does not by itself give a standard error, because the estimated propensity score and the matching step both add sampling variability.
  • Requires a pre-treatment period long enough to check whether matched units had similar outcome trends before treatment.

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

Strengths

  • Adjusts for selection on observed pre-treatment characteristics through the propensity score, and removes unit-specific differences that are constant over time within each matched pair by differencing outcomes across periods.
  • The ATT is built from within-pair before-after differences, with the matching weights shown in the estimator formula, so no outcome regression model is needed for the point estimate.
  • Because matching uses covariates only, balance and common support can be checked before any treatment effect is estimated.
  • The estimand is the average effect on the treated, the group that actually received the intervention, which is often the policy-relevant quantity.

Applications

  • Evaluating the effect of active labour market programmes (job training, subsidised employment) on earnings using administrative panel records.
  • Assessing the causal impact of a health intervention on patient outcomes when treatment assignment is physician-driven.
  • Estimating returns to education or firm-level effects of technology adoption using employer-employee or firm panel datasets.
  • Measuring the effect of entering a welfare programme on future income trajectories.
  • Studying the impact of managerial or ownership changes on firm performance using matched pre/post panel data.

How it works

How it works

1

Estimate the propensity score, the probability of receiving treatment conditional on covariates measured before treatment, for every unit, typically by logit or probit regression. All variables that jointly influence treatment assignment and the outcome must be included in this model.

Formula
p(X_{it}) = \Pr(D_i = 1 \mid X_{it})
2

For each treated unit, identify one or more control units with the closest propensity score, using a chosen algorithm such as nearest-neighbour, kernel, or radius matching. Impose a caliper to discard treated units for whom no sufficiently close control exists, and check that matching achieves covariate balance.

3

Within each matched pair or set, compute the before-after change in the outcome for the treated unit and for its matched control(s). Subtract the control change from the treated change. Average these within-pair differences across the treated units, using the matching weights w_ij (their construction depends on the matching algorithm chosen in the matching step), to obtain the ATT estimate.

Formula
\hat{\tau}_{ATT} = \frac{1}{n_1} \sum_{i \in \mathcal{T}} \left[(Y_{it_1} - Y_{it_0}) - \sum_{j \in \mathcal{C}} w_{ij}(Y_{jt_1} - Y_{jt_0})\right]
4

Assess the common support region, the range of propensity scores where both treated and control units are found. Drop or down-weight units outside the overlap. Poor overlap signals that the treated and untreated groups are too dissimilar for reliable matching.

5

Standard errors must reflect both the estimated propensity score and the matching step, because ordinary standard errors that treat matched controls as independent observations can misstate precision. Common options are bootstrap resampling, analytical variance estimators where the chosen estimator provides them, and clustering by unit where the same units are observed repeatedly. Bootstrapping is often used in practice, but whether it is valid depends on the matching estimator, so it should not be applied by default; check the variance method against the matching algorithm in use. Caliendo and Kopeinig (2008) review the choices involved in estimating treatment effects and their standard errors after matching. Report standardised mean differences before and after matching to show that the matched sample is balanced, together with the matching algorithm, caliper, number of matched controls per treated unit, and number of treated units dropped for lack of common support.

Common pitfalls

  • Omitting important confounders from the propensity score model. This is the most consequential error, because unmatched confounders bias the ATT estimate.
  • Ignoring the common support condition and keeping treated units with no close match, which distorts the ATT.
  • Reporting standard errors that ignore the matching and the estimation of the propensity score, which can misstate precision.
  • Failing to report balance diagnostics after matching. Without standardised mean differences before and after matching, readers cannot judge whether matching worked.
  • Applying cross-sectional PSM to panel data and comparing post-treatment outcomes only, which discards the within-pair change that provides the panel-specific control.
  • Using the bootstrap by default for any matching estimator without checking whether it is valid for the algorithm used.
  • Reporting the ATT without the matching algorithm, caliper, and number of treated units dropped, so that readers cannot judge how the estimate was obtained.

Frequently asked questions

How is panel data PSM different from standard cross-sectional PSM?

Standard PSM matches units on covariates and compares outcomes at a single point in time. Panel data PSM adds a longitudinal step: once matched, the estimator uses the before-after change within each matched pair. This removes unit-specific differences that are constant over time and shared within the pair, which ordinary PSM does not address, provided the matched units share a common trend.

Does panel data PSM require the parallel-trends assumption like DiD?

Yes. When the within-pair differencing step mimics a DiD estimator, the implicit assumption is that matched treated and control units would have followed the same trend absent treatment. Verifying pre-treatment trend similarity in the matched sample is therefore important.

Which matching algorithm should I choose?

Nearest-neighbour matching with replacement and a tight caliper (e.g., 0.2 of the standard deviation of the log-odds) is a common default. Kernel or radius matching uses more control observations per treated unit. The choice should be guided by the balance achieved and the sample size.

What if balance is still poor after matching?

Re-specify the propensity score model (add interactions, polynomials, or additional covariates) or tighten the caliper. Entropy balancing, a related method covered on this site, is an alternative to consider if balance remains poor.

How many pre-treatment periods do I need?

At least one pre-treatment period is required for within-pair differencing, but two or more pre-treatment periods are strongly preferred so you can verify that matched units trended similarly before treatment, supporting the parallel-trends assumption.

Related methods

Sources

  1. Heckman, J. J., Ichimura, H., & Todd, P. (1998). Matching as an Econometric Evaluation Estimator. Review of Economic Studies, 65(2), 261-294.

    Open DOI reference
  2. Caliendo, M., & Kopeinig, S. (2008). Some Practical Guidance for the Implementation of Propensity Score Matching. Journal of Economic Surveys, 22(1), 31-72.

    Open DOI reference