Tutorials › Propensity Score Matching and Instrumental Variables › Effect Modification and Aggregate Treatment Effects

Estimands: ATE, ATT, ATO and Estimand Shifts After Matching · Tutorial 69 of 699

Effect Modification and Aggregate Treatment Effects

You will learn to distinguish effect variation across covariate-defined groups from changes in the group mix that determine an aggregate treatment effect.

Intermediate 11 min read

What You'll Learn

  • Define additive treatment effects within covariate-defined groups and distinguish them from an aggregate effect.
  • Derive how population group proportions weight group-specific effects.
  • Compare aggregate effects when the target population has a different mix of groups.
  • Identify assumptions needed for subgroup effects in randomized and observational settings.
  • Recognize why study-population randomization alone does not identify effects for a separate target population.
  • Diagnose sparse subgroups, hidden within-group variation, and misleading overall summaries.

Why an Aggregate Effect Depends on Who Is in the Population

A treatment can have different effects in different covariate-defined groups. For example, a treatment may reduce an outcome more among patients with severe baseline disease than among those with mild disease. Even when the effect within each group stays the same, the overall average effect changes if the target population contains different proportions of the groups. This distinction matters when interpreting a matched estimate: its aggregate can reflect both treatment-effect variation and the composition of the matched target.

The discussion below uses additive effects on the outcome scale. A difference of 5 units has the same numerical meaning wherever it is calculated, so group effects can be averaged using population proportions. Effect modification is scale-dependent: variation in an additive effect does not automatically imply variation on every other effect scale.

Definition: Let \(A\in\{0,1\}\) denote treatment, and let \(Y(1)\) and \(Y(0)\) be the potential outcomes under treatment and control. For a target population \(T\), the average treatment effect is \(\mathrm{ATE}_T=E_T[Y(1)-Y(0)]\). For a covariate-defined group \(G=g\), its target-population group effect is \(\tau_{Tg}=E_T[Y(1)-Y(0)\mid G=g]\). There is additive effect modification across groups when these group-specific mean effects differ.

The group effect is an average, not necessarily the effect for every individual in the group. Individual treatment effects may still vary within a group. Therefore, a partition into a few groups captures only the variation represented by those group definitions; unmeasured or finer-grained heterogeneity can remain.

How Group Effects Form an Aggregate

Suppose the groups \(g=1,\ldots,K\) form a mutually exclusive and exhaustive partition of the target population. Write \(q_{Tg}=P_T(G=g)\), the proportion of the target population in group \(g\). The aggregate effect is the group-effect average weighted by those proportions:

$$ \mathrm{ATE}_T =E_T[Y(1)-Y(0)] =\sum_{g=1}^{K}P_T(G=g)E_T[Y(1)-Y(0)\mid G=g] =\sum_{g=1}^{K}q_{Tg}\tau_{Tg}. $$

This identity follows from the law of total expectation: each group contributes its mean effect multiplied by the fraction of the target population in that group. It does not require effects to be constant within groups. It does require the group effects and group proportions to refer to the same target population.

For a treated-unit target, the corresponding decomposition uses the treated population's group proportions and treated-unit group effects. Define \(q_{1g}=P(G=g\mid A=1)\) and \(\tau_{1g}=E[Y(1)-Y(0)\mid A=1,G=g]\). Then \(\mathrm{ATT}=\sum_g q_{1g}\tau_{1g}\). In general, \(\tau_{1g}\) need not equal the full-population group effect \(\tau_{Tg}\): treated and other units within the same broad group may differ in their treatment-effect distribution.

Worked Example: Same Group Effects, Different Aggregate Effects

Consider a hypothetical population divided into two groups. Suppose the mean treatment effect is 8 outcome points in Group 1 and 2 points in Group 2. Assume these group effects apply to the target population being considered. In Population A, 30% are in Group 1 and 70% in Group 2. Among treated units, suppose the group proportions are 60% and 40%.

For Population A, the aggregate effect is:

$$ \mathrm{ATE}_A=(0.30)(8)+(0.70)(2)=2.4+1.4=3.8\text{ points}. $$

For the treated-unit target, using the stated treated group proportions and group effects:

$$ \mathrm{ATT}=(0.60)(8)+(0.40)(2)=4.8+0.8=5.6\text{ points}. $$

The difference between 3.8 and 5.6 points is due to weighting the same two group effects by different group proportions. The calculation of the ATT additionally assumes that the effects among treated units within each group equal the stated group effects. Without that assumption or direct information about treated-unit group effects, the full-population group effects alone do not determine the ATT.

Effect Variation Is Not the Same as a Composition Shift

Two questions should be kept separate. First, do the mean treatment effects differ across groups? That is a question about effect modification. Second, how much of each group is in the target population? That is a question about composition. An aggregate can differ between populations because their group proportions differ, because their within-group effects differ, or because both differ.

This distinction is directly relevant to matching. A matching procedure can change which units contribute to the estimate and therefore change the group mix of its target. If group effects vary, a different mix can change the aggregate even when the within-group effects are unchanged. Conversely, an aggregate estimate alone cannot reveal whether effects are similar across groups or whether opposing group effects have averaged out.

Worked Example: Opposing Group Effects Can Average to Zero

Suppose hypothetical data describe two covariate-defined groups in a target population. The mean potential outcome under treatment and under control is 16 and 10 points, respectively, in Group 1. In Group 2, those means are 7 and 11 points. Group 1 makes up 40% of the target population and Group 2 makes up 60%.

The group effects are the treated potential-outcome means minus the control potential-outcome means:

$$ \tau_1=16-10=6\text{ points},\qquad \tau_2=7-11=-4\text{ points}. $$

Weighting these effects by the population proportions gives:

$$ \mathrm{ATE}_T=(0.40)(6)+(0.60)(-4)=2.4-2.4=0\text{ points}. $$

The zero aggregate does not mean the treatment has no effect in either group. It is the average of a 6-point increase in Group 1 and a 4-point decrease in Group 2, weighted by their proportions. The potential-outcome means in this example are hypothetical population quantities; an observed study would need an appropriate design and assumptions to identify them.

Assumptions for Learning Group Effects

Potential outcomes are not both observed for the same unit. Identifying group effects therefore requires assumptions about how observed treatment groups represent the relevant potential outcomes. In an observational study, a standard sufficient set is consistency, no interference, conditional exchangeability given measured covariates \(X\), and treatment positivity. Consistency links the observed outcome to the potential outcome under the treatment actually received; no interference rules out one unit's treatment changing another unit's outcome; conditional exchangeability states that, given \(X\), treatment assignment carries no further information about potential outcomes; positivity requires a positive probability of each treatment level at relevant covariate values.

For a group defined by \(G\), these assumptions must support the group effect for the population being discussed. In particular, it is not enough to have both treatment arms somewhere in the study if some relevant covariate profiles within a group have no treated or no control units. Sparse or absent treatment arms can make group effects unidentified or too imprecise to estimate reliably. Matching does not by itself guarantee that these conditions hold.

In a randomized study, random assignment, consistency, no interference, and positive probability of assignment to both arms identify group effects for the randomized study population, provided the groups are defined and represented there. Randomization does not automatically identify effects for a different target population. Transporting group effects to a separate target requires additional transportability assumptions, such as appropriate comparability of effects across study and target populations conditional on relevant covariates, as well as support for the target profiles in the study. The target's group proportions must also be known or estimated for its aggregate effect.

Worked Example: Reweighting Randomized-Study Group Effects

In a hypothetical randomized study, the mean outcome is 14 points under treatment and 6 under control for Group 1. For Group 2, the corresponding means are 9 and 7 points. Suppose the study population is 60% Group 1 and 40% Group 2, while a separate target population is 25% Group 1 and 75% Group 2.

The randomized-study group contrasts are \(14-6=8\) points for Group 1 and \(9-7=2\) points for Group 2. Under randomization with positive assignment probability in both groups, plus consistency and no interference, these identify the group effects for the randomized study population. The study-population aggregate is:

$$ \mathrm{ATE}_{\text{study}}=(0.60)(8)+(0.40)(2)=4.8+0.8=5.6\text{ points}. $$

If, in addition, these group effects are transportable to the separate target population, and the two groups adequately capture relevant effect differences, the target aggregate is:

$$ \mathrm{ATE}_{\text{target}}=(0.25)(8)+(0.75)(2)=2.0+1.5=3.5\text{ points}. $$

The 3.5-point result is not identified by study randomization alone. It relies on the stated transportability conditions and adequate study support for the target groups. The calculation shows how the target group mix changes the aggregate once the group effects can validly be applied to that target.

Diagnostics, Alternatives, and Common Pitfalls

When group effects are estimated rather than known, inspect the evidence within each group. Report group sizes and treatment-arm sizes, group-specific estimates with uncertainty, and whether both arms are represented over the covariate profiles relevant to each group. A small subgroup can produce a highly uncertain effect estimate; unstable estimates should not be treated as precise just because the overall sample is large. In a matched analysis, an overall balance summary can also conceal imbalance within an important group, so group-specific comparisons may be informative.

An interaction model can summarize effect variation by including treatment-by-group terms, while direct subgroup estimation reports a contrast separately within each group. These are alternative ways to represent the same broad question, not substitutes for identification assumptions or adequate data. A single pooled contrast is simpler but hides group differences; subgroup estimates are more revealing but can be noisy, especially when many groups are examined. Pre-specifying meaningful groups and interpreting uncertainty helps limit overconfident conclusions from chance patterns.

  • Mistake: “The overall effect is zero, so treatment has no effect.” Opposing group effects can cancel in the weighted average. Examine the group effects and their uncertainty.
  • Mistake: “A randomized trial identifies the effect in any target population.” Randomization identifies study-population effects. A separate target requires transportability assumptions and appropriate covariate support.
  • Mistake: “Different aggregate estimates prove effect modification.” The aggregates may differ only because the populations have different group proportions. Compare group-specific effects as well as composition.
  • Mistake: “No statistically detectable interaction proves equal effects.” An imprecise interaction estimate may not detect meaningful variation. Report uncertainty rather than interpreting a non-significant result as proof of homogeneity.
Key takeaway: An aggregate treatment effect is an average of group-specific effects weighted by the target population's group proportions. Interpret the effect, the group definitions, and the target composition together; do not assume that an effect estimated for one population automatically applies to another.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. Two groups have effects of 5 and 1 outcome points. If the target population is 20% in Group 1 and 80% in Group 2, what is its aggregate effect?
  2. Group-specific effects are unchanged across two populations, but their aggregate effects differ. Give the direct explanation.
  3. Why does randomization in a study not, by itself, identify the effect in a separate target population?
  4. A pooled effect estimate is near zero. What additional information would help determine whether treatment effects are absent or cancel across groups?

Solutions. (1) The aggregate is \((0.20)(5)+(0.80)(1)=1.0+0.8=1.8\) outcome points. (2) The populations must have different group proportions, assuming the same group definitions and effects apply to both; the different weights change the aggregate. (3) Randomization supports identification for the randomized study population. Applying its group effects to another population additionally requires transportability assumptions and adequate support for relevant target profiles. (4) Examine group-specific effect estimates and their uncertainty, along with the proportions of each group in the target population. Opposing effects can average to zero, while imprecise subgroup estimates require cautious interpretation.

Clinical Biostats