Why Subgroup Effects Need Their Own Sensitivity Analysis
An overall treatment effect can conceal different effects among clinically meaningful groups. But subgroup estimates can also be unstable, especially when outcomes are frequently missing or a subgroup contains few participants. The relevant question is therefore not just whether subgroup estimates differ in one analysis. It is whether that difference is estimated with useful precision and remains similar under the same plausible assumptions about missing outcomes.
The comparison must use shared sensitivity assumptions: each scenario applies the same assumptions about missingness to every subgroup. This makes the subgroup contrast interpretable as a comparison under one coherent analysis, rather than a contrast assembled from separately chosen assumptions. Shared assumptions do not imply equal treatment effects across subgroups; they specify how missing outcomes are handled in each group.
The estimand and its scale must be stated. Here, outcomes are measured in their original units, and a positive \(\tau_g\) means a higher mean outcome under treatment than control in subgroup \(g\). A different outcome scale, such as a risk difference or log odds ratio, defines a different effect-modification contrast.
A valid interpretation requires that subgroups be defined in a way that supports the intended comparison, ordinarily using baseline characteristics rather than outcomes observed after treatment. The treatment comparison also needs the usual design or identification conditions within subgroups: for example, randomization, adequate treatment representation in each subgroup, and valid outcome measurement for observed outcomes. Missing outcomes require additional assumptions. The sensitivity analysis does not make those assumptions true; it shows what estimates follow if each stated assumption is used.
Estimating Effects Under a Shared Scenario
For each subgroup and treatment arm, begin with an observed-data estimate and apply the adjustment implied by the chosen missingness assumption. The adjustment may depend on the observed outcome distribution, missingness pattern, and sensitivity parameters. The exact calculation depends on the model used earlier in the analysis; there is no universal adjustment formula. The essential requirement here is to apply one common scenario \(\eta\) across all subgroups and then calculate each subgroup’s treatment contrast.
For example, suppose a specified scenario adds an arm- and subgroup-specific shift \(d_{ag}(\eta)\) to the observed-data mean estimate \(\hat m_{ag}\). Then
The shifts need not be numerically identical across subgroups: they may act on different observed data or missingness patterns. “Shared” means that the same specified assumption or parameter values govern the adjustments, not that the resulting subgroup adjustments must match. If a scenario requires subgroup-specific departures, those values and their relationship must be stated; otherwise, a comparison can inadvertently give different groups different assumptions.
Worked Example: Calculating Effects in Two Subgroups
Suppose a hypothetical trial measures a symptom score in points, with higher scores indicating better health. The table gives observed-data mean estimates and the adjustments under one common sensitivity scenario. For illustration, assume the scenario adds the listed shifts to the arm-specific means.
| Subgroup | Control mean estimate | Treatment mean estimate | Control shift | Treatment shift |
|---|---|---|---|---|
| Group 1 | 50 | 54 | +1 | +2 |
| Group 2 | 48 | 55 | +2 | +1 |
For Group 1, the adjusted control and treatment means are \(50+1=51\) points and \(54+2=56\) points. Thus \(\hat\tau_1(\eta)=56-51=5\) points.
For Group 2, the adjusted means are \(48+2=50\) points and \(55+1=56\) points. Thus \(\hat\tau_2(\eta)=56-50=6\) points. The estimated effect-modification contrast is \(6-5=1\) point. Under this scenario, the estimated treatment effects are similar in magnitude; this calculation alone does not establish that they are equal.
The scenario was applied to both groups, and the shifts were applied to the stated arm-specific means. A different scenario could produce a different contrast. The numerical result is therefore conditional on the scenario, not a missingness-assumption-free finding.
Comparing Subgroups Without Comparing Separate P-Values
The direct quantity for effect modification is the difference between subgroup treatment effects, \(\Delta(\eta)\), not whether one subgroup’s estimate is statistically significant while another’s is not. Separate significance tests answer whether each subgroup effect differs from zero under its own sampling model. They do not test whether the subgroup effects differ from each other.
For a fixed scenario, a confidence interval for each subgroup effect describes sampling uncertainty conditional on that scenario. A confidence interval for \(\Delta(\eta)\) describes uncertainty in the subgroup contrast, also conditional on that scenario. If subgroup estimates are independent, an appropriate standard error is \(SE\{\hat\Delta(\eta)\}=\sqrt{SE\{\hat\tau_1(\eta)\}^2+SE\{\hat\tau_0(\eta)\}^2}\). If they are not independent, the covariance must be included:
Disjoint participant subgroups in a randomized study may yield independent estimates under suitable analysis conditions, but independence should not be assumed automatically. Shared estimated quantities, clustering, or an analysis that couples subgroup estimates can induce covariance. Use the covariance structure appropriate to the estimator. A normal-approximation interval has the form estimate \(\pm 1.96\times SE\); other justified interval procedures may be needed for small samples or non-normal estimators.
Worked Example: An Interaction Contrast and Its Uncertainty
In a hypothetical analysis under one fixed missingness scenario, the treatment-effect estimates are \(5.0\) points in Group 1 and \(1.0\) point in Group 2. Their conditional standard errors are \(2.0\) and \(2.4\) points. Assume the subgroup estimates are independent for this example.
The estimated effect-modification contrast is \(\hat\Delta(\eta)=5.0-1.0=4.0\) points. Its standard error is \(SE\{\hat\Delta(\eta)\}=\sqrt{2.0^2+2.4^2}=\sqrt{9.76}=3.124\) points.
A 95% normal-approximation interval is \(4.0\pm1.96(3.124)=4.0\pm6.123\), or approximately \((-2.12,\ 10.12)\) points. Conditional on this scenario and the approximation used, the interval includes zero and is compatible with effects ranging from somewhat smaller in Group 1 to appreciably larger in Group 1. It does not show that the effects are equal, and it does not establish that they differ.
The confidence interval concerns sampling uncertainty conditional on the scenario. It does not account for uncertainty about whether the missingness assumption itself is plausible. That separate issue is assessed by examining the contrast across the chosen sensitivity set.
Does Apparent Effect Modification Persist?
Calculate \(\hat\tau_g(\eta)\) and \(\hat\Delta(\eta)\) at each shared scenario of interest. Then describe both the pattern of point estimates and their conditional uncertainty. A subgroup difference that changes direction or size substantially across plausible scenarios is sensitive to missingness assumptions. A difference that retains a similar direction and clinically relevant magnitude across those scenarios is more stable to the assumptions examined, though it can still be imprecise.
This comparison should not be reduced to counting how many scenario-specific intervals exclude zero. Instead, report the estimated contrast, its uncertainty, and how the estimates move over the sensitivity set. A collection of conditional intervals is not automatically a single interval with coverage across all assumptions. In particular, an interval calculated at one scenario does not include uncertainty about the choice of scenario.
Worked Example: Checking Whether a Difference Persists Across Scenarios
Consider two plausible shared scenarios in a hypothetical study. The subgroup treatment-effect estimates and standard errors, in points, are:
| Shared scenario | Group 1 estimate (SE) | Group 2 estimate (SE) | Estimated contrast, Group 1 minus Group 2 |
|---|---|---|---|
| A | 6 (2) | 2 (2) | 4 |
| B | 3 (2) | 4 (2) | -1 |
Under Scenario A, \(\hat\Delta(A)=6-2=4\) points. Assuming independent subgroup estimates, its standard error is \(\sqrt{2^2+2^2}=\sqrt{8}=2.828\) points. The approximate 95% interval is \(4\pm1.96(2.828)=4\pm5.543\), or \((-1.54,\ 9.54)\) points.
Under Scenario B, \(\hat\Delta(B)=3-4=-1\) point, with the same standard error \(2.828\). The approximate interval is \(-1\pm5.543\), or \((-6.54,\ 4.54)\) points. The point-estimate contrast changes direction across the two scenarios, and both intervals are wide. The appropriate conclusion is that the apparent difference is not stable across these assumptions and is estimated imprecisely—not that the subgroups have identical effects.
These calculations assume that each scenario is applied coherently to both subgroups and that the stated standard errors and independence approximation are suitable. If the second scenario were selected only because it produced a preferred conclusion, the comparison would be misleading; the scenarios should represent defensible assumptions, not result-driven choices.
Sparse Subgroups, Diagnostics, and Limits
Sparse subgroups deserve particular caution. Few participants, few observed outcomes, or very few participants in one treatment arm can make subgroup means and standard errors unstable. Missingness can further reduce the information available for the arm-specific estimates. A large-looking subgroup contrast may therefore reflect sampling variation, sensitivity to a small number of observations, or the assumed missing-outcome adjustments rather than reliable biological or clinical effect modification.
Useful diagnostics include checking, for every subgroup and arm, the numbers randomized, the numbers with observed outcomes, and the amount of missingness; inspecting whether estimates or standard errors are unusually unstable; and confirming that all groups use the same scenario definitions. Also check that the fitted analysis can estimate the requested quantities within each subgroup and that no adjusted mean is being interpreted beyond the support of the model or data. Extreme shifts or very large changes in an estimate across small changes in assumptions are warnings to report, not reasons to hide a scenario.
A subgroup-specific analysis is not a remedy for weak information. Nor does a shared sensitivity scenario remove the need to justify its assumptions. Results apply to the selected subgroup definitions, outcome scale, model, and sensitivity set. They do not automatically generalize to unexamined subgroups or establish a mechanism for a difference.
The main alternatives answer different questions. A pooled treatment-effect estimate summarizes an average effect and can be useful when subgroup differences are not the target, but it can conceal heterogeneity. Separate subgroup estimates show the effects within groups, but without their direct contrast they do not quantify effect modification. A model with treatment-by-subgroup terms can estimate the interaction directly and may borrow information through its structure; it still depends on correct model specification and must be paired with a missingness sensitivity analysis. None of these approaches makes sparse subgroup evidence precise by itself.
Check Your Understanding
For each question, treat effects as treatment minus control, and condition all estimates on the stated shared sensitivity scenario.
- Under one scenario, subgroup effects are \(4\) and \(1\) points. What is the effect-modification contrast if it is defined as subgroup 1 minus subgroup 2?
- Two independent subgroup-effect estimates have standard errors of \(1.5\) and \(2.0\) points. Calculate the standard error of their difference.
- One subgroup estimate has a 95% interval excluding zero, while another subgroup estimate has an interval including zero. Does this alone establish effect modification? What quantity should be examined?
- Across two plausible shared scenarios, the estimated subgroup contrast is \(3\) points in one and \(-2\) points in the other. What does this imply about robustness to the assumptions?
Solutions. (1) \(4-1=3\) points. (2) Under independence, \(SE=\sqrt{1.5^2+2.0^2}=\sqrt{6.25}=2.5\) points. (3) No. The difference in significance is not a test of the difference between effects; examine the direct contrast and its standard error or confidence interval. (4) The contrast changes direction, so the apparent effect modification is not stable across these scenarios. This does not prove the subgroup effects are equal; it shows that the conclusion depends on the missingness assumptions examined.