Tutorials › Propensity Score Matching and Instrumental Variables › Subclassification on the Propensity Score

Weighting and Stratification · Tutorial 209 of 699

Subclassification on the Propensity Score

Learn how to form propensity-score strata, interpret within-stratum treatment contrasts, and diagnose when coarse or poorly supported strata undermine the comparison.

Intermediate 12 min read

What You'll Learn

  • Define propensity-score strata using intervals of the estimated probability of treatment.
  • Explain why the exact propensity score is a balancing score under stated assumptions.
  • Calculate treated and untreated outcome means and their contrast within each stratum.
  • Recognize why finite, broad strata may leave residual confounding.
  • Check score overlap, treatment representation, and covariate balance within strata.
  • Distinguish within-stratum contrasts from an overall effect for a specified target population.

Why Subclassify on the Propensity Score?

In an observational study, treated and untreated units may differ in their baseline covariates. A comparison of their raw outcome means can therefore mix treatment effects with pre-existing differences. Subclassification addresses this by grouping units with similar propensity scores and comparing treated and untreated outcomes within each group. The central idea is to make comparisons among units whose estimated chances of receiving treatment are similar, rather than comparing all treated units with all untreated units at once.

Let \(A\) be a binary treatment indicator, with \(A=1\) for treated and \(A=0\) for untreated; let \(X\) denote measured pretreatment covariates; and let \(Y\) be the observed outcome. The propensity score is the conditional probability of treatment given those covariates. A subclass is a set of units whose propensity scores fall in a specified interval. The intervals are chosen before making outcome comparisons, and every unit is assigned to the interval containing its score.

Definition: The propensity score is \(e(X)=P(A=1\mid X)\). A propensity-score subclassification partitions units into strata \(S=1,\ldots,K\) using ranges of \(e(X)\) (or estimated propensity scores). The within-stratum treatment contrast is the treated outcome mean minus the untreated outcome mean among units assigned to that stratum.

Assumptions and the Balancing-Score Justification

Subclassifying on a propensity score does not by itself guarantee a causal interpretation. The usual causal conditions are needed. First, consistency requires that a unit’s observed outcome equals its potential outcome under the treatment actually received: \(Y=Y(1)\) if \(A=1\), and \(Y=Y(0)\) if \(A=0\). The treatment and outcome must also be well-defined, with no interference between units assumed for this analysis. Second, conditional exchangeability requires \((Y(1),Y(0))\mathbin{\perp} A\mid X\): after conditioning on measured pretreatment covariates, treatment assignment is independent of the potential outcomes. This rules out unmeasured confounding, an assumption that cannot generally be verified from the observed outcomes alone.

Third, positivity requires \(0<e(X)<1\) for covariate patterns in the target population. Both treatment states must be possible at those patterns. A stratum containing only treated units or only untreated units provides no within-stratum comparison. Finally, the propensity score used to create strata must adequately represent treatment assignment given the measured covariates. In practice it is estimated, so model misspecification or unstable score estimates can undermine the intended grouping.

The theoretical motivation is that the exact propensity score is a balancing score: conditional on its value, the distribution of measured covariates is the same in the treated and untreated groups. To see this, consider a covariate value \(X=x\) for which \(e(x)=e\). Within the set of units with score \(e\), Bayes’ rule gives the treated covariate distribution in proportion to \(e(x)f(x\mid e)\), while the untreated distribution is in proportion to \((1-e(x))f(x\mid e)\). Because \(e(x)=e\) throughout that set, these are constant multiples of the same distribution \(f(x\mid e)\). After normalization, the distributions coincide.

Under conditional exchangeability given \(X\), this balancing result also supports exchangeability of the potential outcomes across treatment groups conditional on the exact score. In outline, the conditional distribution of \(X\) is the same for treated and untreated units at a fixed score, and, given \(X\), treatment assignment carries no further information about \(Y(a)\). Integrating over that common covariate distribution therefore gives the same distribution of \(Y(a)\) in the two treatment groups at that score. This is the theoretical basis for comparing outcomes at similar propensity scores.

Actual subclassification usually uses score ranges, not exact score values. Units in one range can still have meaningfully different scores and covariates. Thus the exact balancing argument does not imply that a finite partition perfectly balances covariates or eliminates confounding. Subclassification is an approximation whose adequacy must be checked.

Assigning Units and Calculating a Within-Stratum Contrast

Choose \(K\) score intervals that cover the relevant score range without overlapping, using a consistent endpoint convention so that every unit belongs to exactly one stratum. For each stratum, record the number of treated and untreated units, summarize their observed outcomes separately, and calculate the difference in their means. This is a descriptive calculation first; a causal interpretation depends on the assumptions above and on adequate comparability within the stratum.

$$ \widehat{\tau}_k = \bar{Y}_{1k}-\bar{Y}_{0k} = \frac{\sum_{i:S_i=k,\ A_i=1}Y_i}{n_{1k}} - \frac{\sum_{i:S_i=k,\ A_i=0}Y_i}{n_{0k}} $$

Here \(S_i=k\) means unit \(i\) is assigned to stratum \(k\), and \(n_{1k}\) and \(n_{0k}\) are the treated and untreated counts in that stratum. Both counts must be positive for this contrast to be calculated. The result is expressed in the outcome’s units. It estimates a treatment contrast for the units represented by that stratum only to the extent that the assumptions and within-stratum comparability are credible.

Worked Example: Assigning Units to Score Strata

Suppose a hypothetical study sets three score ranges in advance: \(0\leq e(X)<0.30\), \(0.30\leq e(X)<0.70\), and \(0.70\leq e(X)\leq1\). Six units have the following estimated scores. The intervals are mutually exclusive and cover all possible scores, so every unit can be assigned once.

UnitEstimated scoreStratum
A0.12Low
B0.28Low
C0.30Middle
D0.56Middle
E0.71High
F0.93High

For example, unit C is assigned to the middle stratum because its score equals the lower endpoint \(0.30\), which is included there; unit B remains in the low stratum because \(0.28<0.30\). After assignment, treatment counts and baseline covariate balance should be examined separately in each stratum. The score values alone do not show whether both treatment groups are represented or whether the measured covariates are adequately balanced.

Worked Example: Comparing Outcomes Within Each Stratum

In a hypothetical study, the outcome is symptom improvement measured in points, with larger values indicating greater improvement. After stratification, the observed outcomes are as follows. The calculations are descriptive within-stratum contrasts; they do not, on their own, establish that treatment caused the differences.

StratumTreated outcomesUntreated outcomes
Low score5, 73, 5, 4
Middle score8, 6, 76, 5, 7
High score11, 98, 10

In the low-score stratum, the treated mean is \((5+7)/2=6\) points, and the untreated mean is \((3+5+4)/3=4\) points. The within-stratum contrast is \(6-4=2\) points.

In the middle-score stratum, the treated mean is \((8+6+7)/3=7\) points, and the untreated mean is \((6+5+7)/3=6\) points. The contrast is \(7-6=1\) point.

In the high-score stratum, the treated mean is \((11+9)/2=10\) points, and the untreated mean is \((8+10)/2=9\) points. The contrast is \(10-9=1\) point.

The three calculations provide separate comparisons in the outcome’s units. They do not automatically constitute one overall effect estimate: an overall effect for a target population requires stratum contributions appropriate to that target. The average treatment effect, average treatment effect on the treated, and other targets generally give different importance to the strata.

Why Comparing Within Strata Can Matter

A pooled comparison can be misleading when treatment groups have different distributions across the score range. The following hypothetical example shows why within-stratum comparisons are informative. Suppose symptom improvement is measured in points.

Worked Example: A Pooled Difference Can Reflect Stratum Composition

In a low-score stratum, 2 treated units have a mean improvement of 4 points and 8 untreated units have a mean of 3 points. In a high-score stratum, 8 treated units have a mean of 10 points and 2 untreated units have a mean of 9 points. Within either stratum, the treated-minus-untreated contrast is \(1\) point.

The pooled treated mean is calculated using all 10 treated units: \((2\times4+8\times10)/10=(8+80)/10=8.8\) points. The pooled untreated mean is \((8\times3+2\times9)/10=(24+18)/10=4.2\) points. The pooled difference is \(8.8-4.2=4.6\) points.

The pooled difference of \(4.6\) points is much larger than either within-stratum difference of \(1\) point because treated units are concentrated in the high-score stratum, where outcomes are higher for both treatment groups. This arithmetic does not prove that the within-stratum contrasts are causal; that still requires the stated assumptions and adequate covariate comparability. It does show that a raw pooled contrast can reflect differences in stratum composition as well as treatment.

Diagnostics, Alternatives, and Limitations

After forming strata, check whether the proposed comparison is working rather than relying on the partition alone. Useful diagnostics include:

  • Treatment representation: verify that each stratum has treated and untreated units. A missing treatment group means the within-stratum contrast cannot be estimated from the observed data.
  • Score overlap: inspect whether both groups have scores in the ranges used for comparisons. Severe separation or sparse regions signal weak empirical support.
  • Covariate balance: compare the distributions of important pretreatment covariates between treated and untreated units within strata. Similar propensity scores do not guarantee that every covariate is balanced in a finite sample.
  • Within-stratum score spread: a broad range can contain units whose treatment probabilities, and potentially covariate profiles, differ substantially. Persistent imbalance suggests that the grouping is too coarse for the data.
  • Counts and precision: very small treatment groups make stratum means unstable. A numerically calculable contrast can still be too imprecise to be useful.

Subclassification offers a transparent alternative to weighting, which uses propensity-score-based weights, and to propensity-score matching, which constructs comparisons between selected units. It also differs from outcome regression, which models the outcome conditional on covariates. These approaches have different sensitivities to model specification, overlap, and the units retained or emphasized. Subclassification makes the comparison structure visible, but it does not automatically solve poor overlap, unmeasured confounding, or misspecification of the propensity-score model.

A common mistake is to say, “The propensity scores are in the same stratum, so treated and untreated units are exchangeable and the difference is causal.” That reasoning confuses an exact score with a finite interval. The balancing result applies to the exact propensity score under conditional exchangeability; a range groups together potentially distinct scores. The correction is to treat stratum membership as a design device, then assess covariate balance and treatment representation within each stratum and interpret contrasts causally only under defensible assumptions.

Another limitation is that an estimate within one stratum describes a local comparison, not necessarily the effect for the full study population. The target population determines how stratum-specific information should contribute to an overall summary. Different targets, including the average treatment effect and the effect among treated units, need not assign equal importance to each stratum. Report which target is intended rather than treating a simple average of stratum contrasts as universally appropriate.

Key takeaway: Subclassification groups units with similar propensity scores and compares treated with untreated outcomes within each group. Its causal justification depends on exchangeability and positivity, while its finite-sample performance depends on adequate overlap and covariate balance within the chosen ranges.

Check Your Understanding

Answer each question, then compare with the brief solutions below.

  1. Why does an exact propensity score balance measured covariates between treatment groups, and why does this not guarantee exact balance inside a finite-width stratum?
  2. A stratum has 12 treated units and no untreated units. Can its within-stratum treated-minus-untreated mean contrast be calculated? What does this indicate?
  3. In one stratum, treated outcomes are 4, 6, and 8 points, while untreated outcomes are 3 and 5 points. Calculate the within-stratum contrast.
  4. What assumptions are needed before interpreting a within-stratum contrast as causal?
  5. Why might the target population matter when summarizing contrasts from several strata?

Solutions. (1) At an exact score, treatment probability is constant across covariate values, so the treated and untreated covariate distributions conditional on that score coincide. A finite-width range combines different exact scores, so the covariate distributions need not coincide. (2) No: there is no untreated mean to subtract. This indicates a lack of treatment-group representation and a positivity or overlap problem in that stratum. (3) The treated mean is \((4+6+8)/3=6\) points; the untreated mean is \((3+5)/2=4\) points; the contrast is \(6-4=2\) points. (4) Consistency, conditional exchangeability given measured pretreatment covariates, positivity, and an adequately specified propensity score are needed, along with credible within-stratum comparability. (5) Different target populations give different importance to strata, so one unweighted average need not represent the intended treatment effect.

Clinical Biostats