Heterogeneous Treatment Effect Propensity Score Matching

Statistics
Introduced by
Rosenbaum & Rubin (PSM foundation, 1983); Athey & Imbens (HTE extensions, 2016)
Year
1983–2016
Type
Causal inference / matching with effect heterogeneity
Family
Quasi-experimental / causal inference

What does it do?

This page describes a practical combination of propensity score matching (PSM) and subgroup-level analysis of conditional average treatment effects (CATE).

Standard PSM returns a single average effect for the treated; this approach uses the matched sample to ask how that effect differs across covariate-defined subgroups or along individual characteristics. It is assembled from established components rather than a single named estimator with one originating paper.

The intuition behind the method

Standard propensity score matching summarises the effect as one average: how much treated units gained, on average, relative to comparable controls. Effects often differ between people, though. A job training programme may help younger workers more than older ones, or a drug may work better for one sex than another. The procedure here first uses the propensity score to build a matched sample in which treated and control units resemble each other on observed covariates, and then examines effect differences across subgroups within that sample. Matching makes within-subgroup comparisons more comparable, but it does not by itself establish that subgroup differences are causal.

History

Rosenbaum and Rubin (1983) showed that the propensity score, the conditional probability of treatment given observed covariates, is sufficient to remove bias due to all observed covariates, and described matched sampling on it. Athey and Imbens (2016) proposed data-driven methods for estimating heterogeneity in causal effects, partitioning data into subpopulations that differ in treatment effect with regression-tree methods and honest estimation, in which separate samples build the partition and estimate effects. The specific workflow on this page, matching on the propensity score and then estimating CATE within subgroups of the matched sample, is an applied combination of these components rather than a single originating procedure.

When to use it

Choose this approach when you have observational data with a binary treatment, enough measured covariates to make unconfoundedness plausible, and a question about who benefits from treatment rather than only the average effect. It suits pre-specified subgroups of substantive interest, or exploratory analysis clearly labelled as such. Each subgroup of interest needs enough matched treated and control units to estimate contrasts with reasonable precision, and a formal power calculation for interaction tests is advisable before committing to the design. Overlap in the propensity score must hold within each subgroup; where it does not, the estimates refer to the treated units in the common-support region, and the target population should be stated explicitly. Avoid the approach when the propensity model cannot achieve acceptable balance, when the number of candidate subgroups is large relative to the sample (which inflates multiplicity), or when treatment is continuous rather than binary, in which case a dose-response framework is more suitable. This page covers matching on covariates measured at a single time point; designs with pre- and post-treatment outcomes are covered by the difference-in-differences variant of this approach.

Limitations and considerations

  • Causal validity rests on unconfoundedness: all confounders must be observed and included in the propensity model. Unmeasured confounding biases both the average effect and the subgroup contrasts.
  • Power falls within subgroups. Small matched samples in a stratum produce wide intervals, and interaction tests are generally less powerful than the overall effect test.
  • Data-driven subgroup discovery raises the risk of false positives. Without pre-specification or correction for multiple comparisons, apparent heterogeneity may be spurious.
  • Balance must hold within each subgroup, not only overall; poor balance in one stratum undermines the subgroup estimate for that stratum.
  • Heterogeneity in an observational study can reflect residual confounding that correlates with the subgroup variable rather than genuine variation in the treatment effect.
  • Matching restricts the analysis to the region of common support: treated units without comparable controls are dropped, so subgroup estimates describe a narrower population than all treated units.
  • Standard errors that treat the matched sample as an ordinary random sample can understate uncertainty, particularly when control units are reused; the variance estimator should account for the matching step.

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

Strengths

  • Shows effect differences that a single average effect on the treated would hide, which can inform which subpopulations are targeted.
  • The propensity-score matching step adjusts for observed confounding before subgroup comparisons are made, so within-subgroup contrasts are not built on raw covariate imbalance between treated and untreated units.
  • Subgroups can be pre-specified for confirmatory analysis or discovered from the data for exploratory work, so the same matched sample supports both designs.
  • Results are reported as matched treated-control contrasts within subgroups, which are straightforward to explain to applied audiences.

Applications

  • Identifying which patient subgroups benefit most from a medical treatment in observational clinical data.
  • Evaluating whether a job training programme has larger employment effects for certain demographic groups.
  • Assessing differential impact of an educational intervention across students at different baseline performance levels.
  • Targeting social policy by finding subpopulations for whom a cash transfer or subsidy has the largest causal effect.
  • Personalised marketing analytics: determining which customer segments respond most to an advertising campaign.
  • Regulatory evaluation of heterogeneous compliance effects across regions or firm types in policy research.

How it works

How it works

1

Estimate the propensity score, the probability of receiving treatment given observed covariates, typically with logistic regression or a flexible machine-learning classifier. The score compresses the observed confounders into one value per unit. Its adequacy depends on the covariates included, so every variable believed to affect both treatment and outcome should enter the model.

Formula
e(X_i) = P(D_i = 1 \mid X_i)
2

Match each treated unit to one or more control units with similar propensity scores. Common algorithms include nearest-neighbour matching (with or without a caliper), kernel matching and radius matching. The aim is a comparison group that resembles the treated group on observed characteristics. The chosen algorithm determines which controls are retained and how much weight they receive. Matching is valid only where the propensity score overlaps between treated and control units: treated units without comparable controls, and controls outside the treated score range, are dropped or trimmed. Report how many units were unmatched or trimmed, because the subgroup effects then describe only the matched common-support population.

3

Divide the matched sample into subgroups defined by key covariates or propensity-score strata. Subgroups may be pre-specified, for example by age group or sex, or data-driven, for example through recursive partitioning or causal trees. Balance should be checked separately within each subgroup, because overall balance does not guarantee balance in every subgroup.

4

Within each subgroup, or for each covariate value x, compute the mean outcome difference between matched treated and control units. Under propensity-score matching this contrast estimates the average effect on the treated within that subgroup, not the average effect for all units with covariate value x, so the subgroup estimate should be labelled as an effect on the treated. Estimating a population-wide conditional average effect requires further assumptions, such as overlap across the full population or a reweighting scheme. The estimate is only as credible as the matching within that subgroup.

Formula
\hat{\tau}(x) = E[Y_i(1) - Y_i(0) \mid X_i = x]
5

Summarise the subgroup estimates, for instance in a table or plot, and report confidence intervals for each. Test heterogeneity with a treatment-by-subgroup interaction term estimated in the matched sample, using the matching weights and a variance estimator that accounts for the matching step. A significant effect in one subgroup and a non-significant effect in another does not by itself establish that the effects differ. When many subgroups are compared, adjust for multiple comparisons and treat the differences as hypotheses to be checked rather than settled findings.

Common pitfalls

  • Running many subgroup analyses and reporting only the statistically significant differences inflates the false discovery rate.
  • Reading subgroup differences causally when overall balance is poor, or when balance within the subgroup has not been checked separately.
  • Drawing strong conclusions from very small matched subgroups, where estimates are unstable and can be driven by a few units.
  • Confusing heterogeneity with moderated mediation: the subgroup contrasts identify who appears to benefit more, not the mechanism through which the effect varies.
  • Concluding that effects differ between subgroups because one subgroup estimate is significant and another is not, without a direct test of the treatment-by-subgroup interaction.

Frequently asked questions

How is this different from standard propensity score matching?

Standard PSM estimates a single average treatment effect on the treated (ATT). HTE-PSM goes further by examining how that effect varies across subgroups or individual characteristics, estimating conditional average treatment effects (CATE) within the matched sample.

What is the risk of exploring many subgroups?

Each subgroup comparison is a hypothesis test, so examining many subgroups without adjusting the significance threshold inflates the false-positive rate. Pre-register subgroups of interest or apply Bonferroni or Benjamini-Hochberg corrections to control multiplicity.

Can I use machine learning for the propensity model?

Flexible learners such as gradient boosting or random forests are sometimes used for the propensity model, particularly with many covariates. Whatever model is used, covariate balance in the matched sample must be checked directly, because a good predictive fit for treatment does not guarantee good balance.

What sample size is sufficient for subgroup analysis?

No fixed minimum applies. The number of matched units needed depends on the expected size of the difference between subgroup effects, the outcome variance and the number of subgroups tested. Formal power calculations for interaction tests are advisable before committing to an HTE design.

Is unconfoundedness more demanding for HTE than for average effects?

The same ignorability assumption is required. However, because CATE estimates are more local (within subgroups), any residual confounding that happens to correlate with the moderating variable of interest can produce spurious-looking heterogeneity, making robustness checks especially important.

Related methods

Sources

  1. Athey, S., & Imbens, G. W. (2016). Recursive Partitioning for Heterogeneous Causal Effects. Proceedings of the National Academy of Sciences, 113(27), 7353-7360.

    Open DOI reference
  2. Rosenbaum, P. R., & Rubin, D. B. (1983). The Central Role of the Propensity Score in Observational Studies for Causal Effects. Biometrika, 70(1), 41-55.

    Open DOI reference