Tutorials › Model-Informed Drug Development (MIDD) › Treatment-Effect Heterogeneity and Subgroup-Specific Precision

Model-Based Endpoint and Sample Size Planning · Tutorial 322 of 596

Treatment-Effect Heterogeneity and Subgroup-Specific Precision

Learn to quantify precision for overall effects, subgroup contrasts, and treatment-by-covariate interactions, and to plan and interpret interaction-focused sample sizes.

Advanced 12 min read

What You'll Learn

  • Define overall treatment effects as weighted averages of subgroup effects.
  • Calculate subgroup and treatment-by-subgroup standard errors from cell sizes.
  • Relate subgroup prevalence to the sample size needed to estimate an interaction.
  • Plan an approximate sample size for a target interaction effect and power.
  • Interpret wide subgroup intervals without concluding that effects are equal.
  • Recognize how covariate spread and modeling choices affect interaction precision.

Why Overall Precision Does Not Guarantee Subgroup Precision

A trial can estimate an average treatment effect precisely while providing little information about whether that effect differs across patient groups. The distinction matters in model-based endpoint planning: a sample size adequate for the primary overall contrast may be inadequate for a treatment-by-subgroup interaction. This is especially likely when the subgroup of interest is uncommon or when effects are compared across a wide range of a continuous covariate.

The planning target must therefore be explicit. An overall treatment contrast, a treatment contrast within one subgroup, and a difference between subgroup treatment contrasts are different quantities with different precisions. A non-significant estimate in one subgroup is not, by itself, evidence that treatment effects are equal across subgroups.

Effects, Weights, and Precision

Definition: Let \(\tau_g\) denote the treatment effect in subgroup \(g\), defined as the treatment-minus-control contrast on the chosen endpoint scale. For two subgroups, the treatment-effect interaction is \(\delta=\tau_1-\tau_0\). If subgroup 1 has target-population prevalence \(q\), the overall treatment effect is \(\tau=q\tau_1+(1-q)\tau_0\), provided the target population and subgroup-specific effects are defined on the same scale.

The overall effect is a prevalence-weighted average, not an unweighted average unless the subgroups are equally prevalent. Its precision depends on how many participants contribute information to each arm and subgroup. The interaction is a contrast of two treatment contrasts, so its variance includes uncertainty from all four treatment-by-subgroup cells.

For a simple planning calculation, assume a two-arm randomized trial, independent participants, a continuous endpoint with common residual standard deviation \(\sigma\) in all cells, and no clustering. Assume treatment allocation is balanced within each subgroup and that the subgroup proportions in the analysis population are \(q\) and \(1-q\). If each cell has sample size \(n_{ag}\), where \(a\) indexes treatment and \(g\) indexes subgroup, then the estimated cell-mean contrast has variance \(\sigma^2(1/n_{ag}+1/n_{cg})\), where \(c\) denotes control. This calculation presumes the endpoint and analysis population are appropriate for the estimand; attrition or other design features require corresponding adjustments to the effective cell sizes or variance assumptions.

$$ \begin{aligned} \operatorname{Var}(\hat{\tau}_g)&=\sigma^2\left(\frac{1}{n_{Tg}}+\frac{1}{n_{Cg}}\right),\\ \operatorname{Var}(\hat{\delta})&=\operatorname{Var}(\hat{\tau}_1)+\operatorname{Var}(\hat{\tau}_0). \end{aligned} $$

The second equality uses independent estimates from disjoint subgroups. More generally, the variance of a difference includes a covariance term, \(\operatorname{Var}(\hat{\tau}_1-\hat{\tau}_0)=\operatorname{Var}(\hat{\tau}_1)+\operatorname{Var}(\hat{\tau}_0)-2\operatorname{Cov}(\hat{\tau}_1,\hat{\tau}_0)\); the covariance is zero in this simple independent-cell setting. Model-based estimates may have a different covariance structure, so their standard errors should come from the fitted model rather than mechanically applying this formula.

Worked Example: Overall and Subgroup Precision in a Two-Group Trial

Consider a hypothetical trial with 400 participants, 200 assigned to each treatment arm. Suppose 25% belong to subgroup 1, and the endpoint residual standard deviation is 9 points in every cell. The estimated treatment effect is 8 points in subgroup 1 and 3 points in subgroup 0. Assume these are estimates from the same trial and use the simple common-variance model just stated.

There are 50 participants in each treatment arm within subgroup 1 and 150 in each arm within subgroup 0. The estimated overall effect, weighted by the subgroup proportions, is \(0.25(8)+0.75(3)=4.25\) points.

For subgroup 1, the standard error is \(9\sqrt{1/50+1/50}=9\sqrt{0.04}=1.80\) points. For subgroup 0, it is \(9\sqrt{1/150+1/150}=9\sqrt{0.01333}=1.039\) points. The larger subgroup has the more precise treatment contrast.

The interaction estimate is \(8-3=5\) points. Its standard error is \(9\sqrt{1/50+1/50+1/150+1/150}=9\sqrt{0.05333}=2.078\) points. The Wald statistic is \(5/2.078=2.406\). Under a two-sided standard-normal approximation, the nominal p-value is about 0.016. The approximate 95% interval is \(5\pm1.96(2.078)=[0.927,9.073]\) points. This interval describes uncertainty in the difference between subgroup treatment effects; it is not an interval for either subgroup effect alone. The nominal result does not account for any multiplicity from examining additional subgroups or contrasts.

For comparison, the standard error of the overall contrast is \(9\sqrt{1/200+1/200}=0.900\) points. Thus the overall estimate can be substantially more precise than the interaction estimate. The calculation does not establish that the treatment effect truly varies between patient groups; it quantifies uncertainty under the stated model and sampling assumptions.

Why Interactions Require Larger Samples

With total sample size \(N\), balanced allocation to treatment and control, and subgroup prevalence \(q\), the expected cell sizes are \(qN/2\) in each arm of subgroup 1 and \((1-q)N/2\) in each arm of subgroup 0. Substituting these sizes into the interaction variance gives a direct planning relationship.

$$ \begin{aligned} \operatorname{Var}(\hat{\delta}) &=\sigma^2\left(\frac{4}{qN}+\frac{4}{(1-q)N}\right)\\ &=\frac{4\sigma^2}{Nq(1-q)},\\ SE(\hat{\delta})&=\frac{2\sigma}{\sqrt{Nq(1-q)}}. \end{aligned} $$

This derivation shows why imbalance in subgroup prevalence reduces interaction precision: the product \(q(1-q)\) is largest at \(q=0.5\) and falls as the subgroup becomes rarer. The same total sample size then supplies fewer observations to at least one of the contrasts needed to form the interaction. Precision also worsens as endpoint variability increases.

Worked Example: Planning for Interaction Power

Suppose a hypothetical trial is designed to detect a 4-point difference between subgroup treatment effects, with two-sided \(\alpha=0.05\) and 80% power. Assume \(\sigma=9\) points, subgroup prevalence \(q=0.25\), balanced treatment allocation, independent observations, and no loss of information from attrition. Use a normal approximation and treat the planning value of \(\sigma\) as known.

For an interaction standard error \(SE(\hat{\delta})\), an approximate sample-size condition is \(N\geq (z_{1-\alpha/2}+z_{1-\beta})^2\,4\sigma^2/[\delta^2q(1-q)]\), where \(1-\beta\) is the target power. Here \(z_{0.975}=1.96\), \(z_{0.80}=0.842\), and the target interaction is \(\delta=4\) points. Substitution gives \(N\geq(1.96+0.842)^2(4)(9^2)/[(4^2)(0.25)(0.75)]\).

The numerator is \(2.802^2(324)=2543.790096\); the denominator is \(16(0.1875)=3\). Thus \(N\geq847.930032\), so at least 848 participants are required. In practice, choose a feasible total and allocation that produce suitable integer cell sizes; for example, 848 participants gives 212 in subgroup 1 and 636 in subgroup 0, with 106 and 318 per arm, respectively.

At \(N=848\), the interaction standard error is \(9\sqrt{1/106+1/106+1/318+1/318}=9\sqrt{0.02516}=1.428\) points. A 4-point interaction is about \(4/1.428=2.80\) standard errors from zero, consistent with the approximate 80% power calculation. The formula is a planning approximation, not a guarantee of power: uncertainty in the variance, departures from the assumed allocation or prevalence, attrition, and the actual analysis model can change precision.

Continuous Covariates and the Distribution of Information

Heterogeneity need not be represented by a binary subgroup. With a continuous baseline covariate, a linear interaction model can describe how the treatment contrast changes across the covariate. In a model \(Y=\beta_0+\beta_T T+\beta_X X+\beta_{TX}TX+\varepsilon\), \(T\) is coded 0 for control and 1 for treatment, and \(X\) is centered at its target-population mean. The treatment contrast at covariate value \(x\) is \(\beta_T+\beta_{TX}x\); \(\beta_{TX}\) is the change in that contrast for a one-unit increase in \(X\).

For balanced arms, independent errors with common variance \(\sigma^2\), and the same covariate distribution in both arms, the estimated interaction slope is the difference between treatment-arm and control-arm covariate slopes. If \(S_{XX,T}\) and \(S_{XX,C}\) are the within-arm sums of squared centered covariate values, its variance is \(\sigma^2(1/S_{XX,T}+1/S_{XX,C})\). More spread in \(X\) generally increases these sums and improves slope precision. A large sample concentrated in a narrow covariate range may therefore estimate the overall effect well but estimate variation across that range poorly.

Worked Example: Precision of a Continuous Interaction

In a hypothetical balanced trial, 120 participants are assigned to each arm. The baseline covariate is measured in standard-deviation units and has approximately unit variance within each arm. Assume a common residual standard deviation of 10 endpoint points, independent errors, and a correctly specified linear treatment-by-covariate model.

The within-arm sums of squares are approximately \(S_{XX,T}=S_{XX,C}=120\). Therefore, \(SE(\hat{\beta}_{TX})=10\sqrt{1/120+1/120}=10\sqrt{1/60}=1.291\) endpoint points per covariate standard deviation. If the estimated interaction slope is 1.5 points per standard deviation, the Wald statistic is \(1.5/1.291=1.162\), and its approximate 95% interval is \(1.5\pm1.96(1.291)=[-1.03,4.03]\) points per standard deviation.

The interval is compatible with both a small negative slope and a meaningfully positive slope. It does not establish an absence of heterogeneity. The calculation also depends on the linear interaction being a reasonable description over the covariate range; a precise slope under a misspecified model may still be a poor description of the treatment-effect pattern.

Interpretation, Diagnostics, and Alternatives

Before interpreting an interaction estimate, check the design and model assumptions that support its standard error. Verify the actual treatment-by-subgroup counts, the subgroup prevalence in the analysis population, endpoint variability within cells, and whether allocation was balanced as planned. Sparse cells, strong variance differences, clustering, or substantial departures from the assumed analysis population can make the simple formulas unreliable. For continuous covariates, inspect the observed range and distribution in each arm and assess whether the chosen functional form is plausible.

A frequent error is to compare subgroup p-values: “the treatment effect is significant in subgroup 1 but not subgroup 0, so treatment works differently.” This reasoning is invalid because a difference between significance decisions is not itself a significant difference between effects. The relevant estimate is \(\hat{\delta}=\hat{\tau}_1-\hat{\tau}_0\), with its own standard error and interval. Even a non-significant interaction may be too imprecise to rule out clinically important heterogeneity.

The simple cell-mean approach is transparent for a prespecified binary subgroup and common-variance continuous endpoint. A regression interaction model can incorporate covariate adjustment and continuous modifiers, but its interpretation and precision depend on the model specification and covariate distribution. Prespecified stratification can help ensure adequate representation of a key subgroup, but does not create information without sufficient participants. More complex models may borrow information across groups, but their conclusions depend on additional assumptions; they do not make sparse subgroup data intrinsically precise.

Subgroup analyses are also vulnerable to multiple comparisons, data-driven cut points, and selective emphasis on extreme estimates. Prespecify clinically motivated modifiers and the scale on which heterogeneity is assessed, report estimates with intervals, and distinguish exploratory patterns from confirmatory claims. The treatment contrast can vary on one scale and appear more or less uniform on another, so the endpoint scale is part of the scientific question.

Key takeaway: Plan subgroup precision from the interaction contrast itself, not from the overall treatment-effect sample size or from separate subgroup significance tests. Subgroup prevalence, endpoint variability, covariate spread, and model assumptions determine how informative the interaction estimate will be.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. With \(\sigma=8\), \(N=400\), balanced treatment allocation, and \(q=0.50\), what is the approximate interaction standard error?
  2. Why can an overall treatment effect be estimated precisely while the interaction remains imprecise?
  3. A subgroup treatment-effect estimate is statistically significant, while the estimate in another subgroup is not. Does this establish treatment-effect heterogeneity? What estimate should be examined?
  4. For a continuous covariate, what feature of its distribution can improve the precision of a linear treatment-by-covariate interaction, under the stated linear model?

Solutions. (1) \(SE=2(8)/\sqrt{400(0.50)(0.50)}=16/10=1.60\) endpoint units. (2) The overall contrast pools information across participants, whereas an interaction depends on the precision of both subgroup contrasts; an uncommon subgroup can make one contrast especially uncertain. (3) No. Compare the estimated difference between subgroup effects, \(\hat{\tau}_1-\hat{\tau}_0\), using its standard error and interval. Separate significance decisions do not test that difference. (4) Greater covariate spread within each treatment arm increases the within-arm sum of squared covariate deviations, which reduces the variance of the estimated slope difference, if the linear model and other assumptions are appropriate.