Durgical
EN
Open the app

Subgroup and post hoc analyses

  • Concept

«The drug worked only in men» is one of the most repeated and least reliable sentences in medicine. This page shows how to tell a real difference from a mirage.

Updated

What it is

A subgroup analysis estimates the treatment effect within groups defined by a baseline characteristic (sex, age, disease severity). It is a priori when named in the protocol before the data are seen, and post hoc when chosen afterwards. Many subgroups multiply false positives and each subgroup has little power, so subgroup findings are usually hypothesis-generating. Whether the effect truly differs is judged by a test of interaction between subgroups, not by comparing a significant p value in one with a non-significant one in the other.

Key facts

  • Interaction test: estimates the difference between subgroup effects (a ratio of RRs or a difference of risk differences) with its own p value or CI.
  • Credibility rises with: pre-specification with direction, few subgroups, a plausible mechanism, a significant interaction, and replication in other trials.
  • Subgroups have fewer patients than the trial, so a «non-significant» subgroup is often simply underpowered.
  • A real difference in effect between subgroups is effect modification; the scale (relative or absolute) matters.

Worked example

  1. Made-up trial: 2 000 patients, 1 000 per arm; events 200 (20 %) on placebo and 158 (15.8 %) on the drug: RR = 0.79.
  2. Men, 600 per arm: 120 vs 90 events (20 % vs 15 %), RR 0.75, p ≈ 0.02.
  3. Women, 400 per arm: 80 vs 68 events (20 % vs 17 %), RR 0.85, p ≈ 0.28.
  4. Tempting conclusion: it works in men only. But women are fewer, so their estimate is less precise.
  5. Interaction test: ratio of RRs = 0.85 / 0.75 ≈ 1.13, p ≈ 0.52; no evidence the effect differs by sex.
  6. The sex split was also one of 12 subgroups examined after unblinding: 1 − 0.95¹² ≈ 0.46 chance of at least one spurious p < 0.05.
  7. Reading: the best estimate for women is the overall RR 0.79; a sex difference is at most a hypothesis for a new trial.

Pre-specified and post hoc subgroup analyses

FeatureA priori (pre-specified)Post hoc
When chosenIn the protocol, before the data are seenAfter looking at the results
NumberFew, each with a reasonOften many, tried until something appears
Direction of effectPredicted in advanceDescribed after the fact
False-positive controlPlanned (few tests, adjusted alpha)Usually none: data dredging
What the result isSupportive evidence if the interaction test is convincingA hypothesis to be tested in a new study
How to report itAs planned, all results shownClearly labelled as post hoc and exploratory

Markers

  • A priori
  • Post hoc
  • Interaction test
  • Hypothesis-generating

Common traps

  • Significant in one subgroup and not in the other means the effect differs: the subgroups must be compared directly with an interaction test; separate p values mostly reflect group size
  • Post hoc analyses are forbidden: they are allowed and useful if labelled as exploratory; the error is presenting them as confirmed
  • Splitting by adherence or response is a fair subgroup: these occur after randomisation, so the groups are no longer comparable
  • A non-significant subgroup shows the drug does not work there: subgroups are underpowered; absence of evidence is not evidence of absence
  • Pre-specified means credible: it still needs few subgroups, a plausible reason and a convincing interaction test

Test yourself

Think of the answer, then tap the question to see it.

A trial reports benefit in patients under 65 (p = 0.01) but not in those 65 or over (p = 0.20). What analysis should you look for before believing an age difference?

A test of interaction between age groups. If the difference between the two effects is not significant, the overall effect remains the best estimate for both groups.

Why is a subgroup defined by adherence to treatment not a valid comparison of the randomised arms?

Adherence happens after randomisation and is linked to prognosis, so adherers and non-adherers differ in more than treatment: the protection of randomisation is lost.

A paper tests 20 post hoc subgroups and finds one with p = 0.03. How should it be read?

As hypothesis-generating: with 20 tests at 0.05, about 64 % chance of at least one false positive (1 − 0.95²⁰). It needs a new trial designed to test it.

Which features make a subgroup claim more credible?

Pre-specified with its direction, one of few, biologically plausible, a significant interaction test, and consistency across other trials.

Add to my cards (4)

Connections

← All of epidemiology

Educational content on epidemiological and statistical methods; the examples use made-up numbers to teach the calculation. Not a clinical or legal guide: current Colombian rules are in the official sources.

Sources: Chapter 10: Analysing data and undertaking meta-analyses (Cochrane, 2026); E9 Statistical Principles for Clinical Trials (U.S. Food and Drug Administration, 1998); How can we make multiple comparisons? (NIST/SEMATECH e-Handbook of Statistical Methods, National Institute of Standards and Technology, 2012).

Spotted a mistake?We are always improving for the community. Tell us what is wrong and our team will review it.Report a mistake

Representative model, for educational purposes only.