Chapter 7 · Comparing groups beyond the t-test

How do you show that two treatments are about the same?

Margins, two one-sided tests, bioequivalence and confidence-interval conclusions.

Read first: Clinical trials, Sample size

The problem first

You are a second-year Medicine resident. Your thesis compared a biosimilar insulin glargine with the reference product in 40 patients with type 2 diabetes. HbA1c fell by almost the same amount in both groups, the t-test gave p = 0.88, and your conclusion reads: “the biosimilar is as effective as the reference insulin”.

At the pre-submission seminar, the biostatistician reads the conclusion and asks one question.

“What difference in HbA1c would you have accepted, and does your confidence interval rule out anything larger?”

Start here

Why does p > 0.05 not show that two treatments are the same?

A test of no difference asks whether the data are surprising if the treatments are identical. A large p-value means the data are not surprising. It does not mean the treatments are identical, because a small trial produces large p-values for large differences too.

−0.4+0.4Small trial, 20 per groupp = 0.88crosses both marginsLarge trial, 150 per groupp = 0.67inside both margins−0.8−0.400.40.8difference in HbA1c change (percentage points), with 90% confidence interval
Made-up teaching data: the same observed difference of 0.05 percentage points in HbA1c change, SD 1.0. The small trial (your thesis) has a 90% confidence interval from −0.48 to 0.58: the biosimilar could be up to half a percentage point worse or better. The large trial's interval, −0.14 to 0.24, excludes every difference of 0.4 or more. Only the large trial shows that the two insulins are equivalent within a margin of ±0.4. ICH E9 calls it inappropriate to conclude equivalence or non-inferiority from a non-significant test of no difference.

To show that two treatments are about the same, you first decide how different they may be and still count as the same. That amount is the margin, written Δ (delta). ICH E9 defines it as “the largest difference that can be judged as being clinically acceptable”. Then you must show that the true difference is unlikely to be as large as Δ. The clinical trials chapter shows where the margin sits for superiority, non-inferiority and equivalence. This chapter shows how the test works, how the margin is chosen, and how many patients it needs.

The test

How do two one-sided tests show that two treatments are equivalent?

Turn the question around. The null hypothesis becomes 'the treatments differ by Δ or more', and the trial must reject it. Because the difference can be too large in either direction, there are two null hypotheses, and each gets its own one-sided test.

−Δ+ΔTest 1H₀: difference ≤ −ΔH₀ regionone-sided 95% interval from −0.14Test 2H₀: difference ≥ +ΔH₀ regionone-sided 95% interval up to 0.24Both rejected90% CI−0.8−0.400.40.8difference in HbA1c change, Δ = 0.4
Teaching example, Δ = 0.4. Test 1 asks whether the biosimilar is worse by 0.4 or more. Test 2 asks whether it is better by 0.4 or more. Each is a one-sided t-test at α 5%. If both are rejected, the difference lies between −0.4 and +0.4. This is the two one-sided tests (TOST) procedure. The two one-sided 95% intervals together form the two-sided 90% confidence interval, so the rule “the 90% CI lies inside ±Δ” gives the same answer.

t₁ = (d + Δ) ÷ SE   ·   t₂ = (d − Δ) ÷ SE   ·   equivalence if p₁ < α and p₂ < α

d
observed difference, new minus reference
Δ
equivalence margin, fixed in the protocol
SE
standard error of the difference, the same as in an ordinary t-test
p₁
upper-tail p-value of t₁ (null hypothesis: difference ≤ −Δ)
p₂
lower-tail p-value of t₂ (null hypothesis: difference ≥ +Δ)
TOST p
the larger of p₁ and p₂

ICH E9 describes this exactly: equivalence is inferred when the whole confidence interval falls within the margins, which is equivalent to “using two simultaneous one-sided tests”, and because the two null hypotheses do not overlap, the type I error is controlled without any correction. Schuirmann compared this procedure with the older “power approach” in 1987.

Interactive

Change the difference, the spread, the sample size and the margin, and watch both one-sided tests

The ordinary t-test and TOST use the same difference and the same standard error. They ask opposite questions, so a small trial can give a large ordinary p-value and a large TOST p-value at the same time.

Try this: reduce the patients per group from 150 to 20. The observed difference stays at 0.05 and the ordinary t-test stays non-significant, but the TOST p-value rises above 5% and equivalence is no longer shown.

Teaching example with made-up numbers: change in HbA1c (percentage points) after 24 weeks, biosimilar insulin minus reference insulin, same SD in both groups. Positive values mean a smaller fall with the biosimilar.

0.05

Biosimilar minus reference

1.0

More spread → wider interval

150

More patients → narrower interval

±0.40

Fixed in the protocol before the trial

α for each one-sided test
test 1 nulltest 2 null−Δ+Δ90% CI95% CI−1.0−0.50.00.51.0difference in HbA1c change, biosimilar minus reference
0.0013TOST p-value, the larger of the two one-sided p-values
TestNull hypothesist (df 298)One-sided p
1 (lower)difference ≤ −0.40(0.05 + 0.40) ÷ 0.115 = 3.90< 0.0001
2 (upper)difference ≥ +0.40(0.05 − 0.40) ÷ 0.115 = −3.030.0013

SE = 1.0 × √(2 ÷ 150) = 0.115 · 90% CI −0.14 to 0.24 · ordinary t-test of no difference p = 0.6653

Equivalence shown. Both one-sided tests reject their null hypothesis, so equivalence within ±0.40 is shown. The 90% confidence interval (−0.14 to 0.24) lies inside the margins.

Confidence intervals

Why does equivalence use a 90% confidence interval and non-inferiority a 95% one?

The confidence level follows from α. A one-sided test at level α rejects exactly when one limit of the 100(1 − 2α)% two-sided interval lies beyond the null value.

−1.645+1.6455%5%90%Equivalence, bioequivalenceα 5% for each of two one-sided tests−1.960+1.9602.5%2.5%95%Non-inferiorityone-sided α 2.5%, lower limit only
With α 5% for each of two one-sided tests, 5% sits in each tail and 90% in the middle: the 90% CI. With a one-sided α of 2.5%, the matching limit is the lower limit of the 95% CI. The FDA non-inferiority guidance (2016) uses the 95% two-sided interval, which it states corresponds to a one-sided test size of 0.025. The FDA bioequivalence guidance (2001) uses the 90% interval, which it states is equivalent to two one-sided tests at the 5% level.
QuestionαInterval to readConclusion when
Equivalence (TOST)5% for each one-sided testTwo-sided 90% CIWhole interval between −Δ and +Δ
Bioequivalence5% for each one-sided test90% CI for the ratio of geometric meansWhole interval within 80.00–125.00%
Non-inferiorityOne-sided 2.5%Lower limit of the two-sided 95% CILower limit above −Δ
SuperiorityTwo-sided 5%Two-sided 95% CIInterval excludes 0

In the teaching example the 90% CI is −0.14 to 0.24 and the 95% CI is −0.18 to 0.28. The 95% interval is also inside ±0.4, so the biosimilar is non-inferior as well as equivalent. A 95% interval inside the margins would satisfy an equivalence test at α 2.5% for each side, which is stricter than TOST at 5%. Whichever level you use, state it in the protocol.

Decide

Which design answers your question?

Answer the questions in order.

What must the trial show about the new treatment?

Which design: all possible answers
  • Superiority trial: Test of no difference with a two-sided 95% confidence interval. Superiority is shown when the interval excludes 0 in the favourable direction.
  • Non-inferiority trial: Estimate M1 from the earlier placebo-controlled trials and choose M2 by clinical judgement. Non-inferiority is shown when the lower limit of the 95% confidence interval (one-sided α 2.5%) lies above −M2. Report intention to treat and per protocol.
  • A non-inferiority design cannot answer this: ICH E10: the margin can be identified only when there is historical evidence of sensitivity to drug effects. Without it, a "non-inferior" result cannot show that the new treatment works.
  • Equivalence trial: Two one-sided tests at α 5% each. Equivalence is shown when the whole 90% confidence interval lies between −Δ and +Δ. Report both analysis sets.
  • Bioequivalence study: Crossover study, log-transformed AUC and Cmax, 90% confidence interval for the ratio of geometric means within 80.00–125.00%.

Comparison

Which of these ideas do residents mix up?

Non-inferiority or equivalence?

FeatureNon-inferiorityEquivalence
QuestionIs the new treatment not worse by Δ or more?Does the difference lie within ±Δ?
Null hypothesisNew treatment is worse by Δ or moreDifference is Δ or more in either direction
Margins needed (ICH E9)Only the lower marginBoth the lower and the upper margin
TestOne one-sided testTwo one-sided tests
Interval readLower limit of the 95% CI (one-sided α 2.5%)Whole 90% CI (α 5% for each test)
Typical useA new treatment with another advantage: oral, safer, cheaper, shorterBiosimilars, generics, new formulations, where too much and too little both matter
If the new treatment is much betterStill non-inferior. Superiority can then be testedNot equivalent

A test of no difference or two one-sided tests?

FeatureTest of no differenceTwo one-sided tests
Null hypothesisThe true difference is 0The true difference is −Δ or less, or +Δ or more
p < 0.05 meansA difference is presentThe difference is smaller than Δ
Large p meansNo difference was detectedEquivalence was not shown
A small, underpowered trialTends to give a large p-value, which looks like "the same"Tends to give a large p-value, so equivalence is not shown
Needs a marginNoYes, fixed before the trial

The two tests can disagree in useful ways. A very large trial can find a statistically significant difference that lies well inside the margin: significant and equivalent at the same time.

The margin

How is the non-inferiority margin chosen?

The margin has two jobs. It must be small enough that a new drug meeting it still works better than placebo, and small enough that the loss of benefit is clinically acceptable. The FDA guidance calls these two margins M1 and M2.

Earlier trialsstandard − placeboM1 = 14, the lower limitM2 = half of M1 = 7New trialnew − standard−M1−M2−3 (−7.6 to 1.6)−20−100102030difference in cure rate (percentage points), 95% confidence intervals
Made-up teaching data. M1 is the whole effect of the standard drug that can be assumed in the new trial. It is estimated from earlier placebo-controlled trials, usually from the conservative end of their confidence interval (here 14 points). M2 is “the largest clinically acceptable difference (degree of inferiority)”, here chosen to keep half of M1. The new trial rules out a loss of 14 points, so the new drug is better than placebo, but it does not rule out a loss of 7 points. Non-inferiority on M2 is not shown.
M1
the entire effect of the active control assumed to be present in the non-inferiority trial (FDA 2016). Ruling out a loss of M1 shows the new drug has some effect
M2
the largest clinically acceptable loss of that effect, a clinical judgement, usually smaller than M1
Fraction preserved
if M2 keeps 50% of the effect, M2 = 0.5 × M1 on the chosen scale

What the guidance documents require

  • Evidence that the comparator works. ICH E10 says the margin cannot be greater than the smallest effect the active drug would reliably be expected to have compared with placebo in the setting of the planned trial. That requires historical evidence of sensitivity to drug effects: earlier trials of similar design that regularly separated the drug from placebo.
  • The constancy assumption. The FDA guidance asks whether the comparator's effect in the new trial is likely to be the same as in the earlier trials. Different patients, doses, outcomes or background treatment can make the old effect estimate wrong for the new trial.
  • Keeping a fraction of the effect. FDA: choosing M2 as 50% of M1 “has become usual practice for cardiovascular (CV) outcome studies”. For antibiotic trials, where effects over placebo are large, a 10–15% margin on the risk difference scale is commonly chosen.
  • A worked regulatory example. In the FDA guidance, six placebo-controlled warfarin trials gave a pooled relative risk of 0.361 (95% CI 0.248 to 0.527). The upper limit 0.527 gives M1 = 1/0.527 = 1.898. M2 was set at 50% of M1 on the log hazard scale, 1.378. In SPORTIF V the 95% CI for ximelagatran was 0.91 to 2.12. The upper limit 2.12 exceeds M2, so non-inferiority to warfarin was not shown.
  • Prespecified and justified. ICH E9: the margin is specified in the protocol and its choice “should be justified clinically”. It should also be smaller than the differences seen in superiority trials of the active comparator.

Analysis sets

Why do intention to treat and per protocol both matter in a non-inferiority trial?

In a superiority trial, patients who stop treatment or cross over make the groups look more alike, which works against the claim of a difference. In a non-inferiority trial the claim is that the groups are alike, so the same dilution now works in favour of the claim.

ICH E9 states that in an equivalence or non-inferiority trial the full analysis set (intention to treat) “is generally not conservative”. The per-protocol set has its own risk: its bias “may be severe” because adherence may be related to treatment and outcome. Neither analysis alone is safe, so both are reported, and ICH E9 notes that when they “lead to essentially the same conclusions, confidence in the trial results is increased”. The clinical trials chapter explains the two analysis sets.

Interactive

Move the share of patients who switch drugs and watch the intention-to-treat result move towards zero

Patients who switch to the standard drug receive its benefit but are counted in the new-drug group. The more who switch, the more alike the two groups look.

Try this: move the share of patients who switch from 30% to 50%. The intention-to-treat interval moves towards zero and crosses the margin, although the new drug is no better than before.

Teaching example with made-up numbers: 1000 patients per group, cure rate 85% with the standard drug, non-inferiority margin −10 percentage points. Patients who stop the new drug are switched to the standard drug for reasons unrelated to how ill they are.

30%
Cure rate on the new drug, in truth
margin −10trueIntention to treatPer protocol-20-15-10-505difference in cure rate, new minus standard (percentage points)
AnalysisNew-drug patients analysedCure rate, new drugDifference (95% CI)Non-inferior?
Intention to treat100076.6%−8.4 (−11.8 to −5.0)No
Per protocol70073.0%−12.0 (−16.0 to −8.0)No

Neither analysis shows non-inferiority.

In this example switching is unrelated to prognosis, so the per-protocol estimate stays unbiased. In a real trial, patients who stop a drug often differ from those who continue, and the per-protocol analysis can then be biased too.

Pitfalls

What goes wrong when margins are loose or trials are chained?

A non-inferior drug may be slightly worse than its comparator. If the next drug is then compared only with that one, and the one after with the next, small accepted losses can add up.

placebo level60%Placebo80%Drug Abeat placebo76%Drug BNI to A72%Drug CNI to B68%Drug DNI to CD keeps 8 of A's 20 points
Made-up teaching data. Each drug lost 4 points against its comparator, within a 7-point margin, and was accepted. Drug D is compared with drug C, never with drug A. This loss of effect across a series of non-inferiority trials is called biocreep (also written bio-creep). Everson-Stewart and Emerson (2010) define it as the possibility that, after a series of trials in which each new therapy is slightly worse than the one before, an ineffective or harmful therapy is declared efficacious. In their simulations it was rare except when the constancy assumption was violated. Odem-Davis and Fleming (2015) found the risk could be large even when constancy held, and that it depended on how the active control was selected, on the margin, and on bias in the estimate of the control's effect.

How to reduce the risk

  • Use the best available treatment as the comparator, not the most recently approved one (Odem-Davis and Fleming, 2015).
  • Base the margin on a well-estimated effect of that comparator over placebo, allowing for its uncertainty and possible bias, and keep a stated fraction of it (M2).
  • Distrust a loose margin. A margin close to M1, or wider than differences that clinicians would notice, can label a less effective treatment as non-inferior. Aberegg and colleagues (2018) studied 163 non-inferiority trials from the five highest impact general medical journals. Comparisons of a therapy at reduced intensity against the same therapy at full intensity reached a favourable result less often than the other comparisons (58.3% against 82.2%).
  • Keep trial conduct tight. Poor adherence, crossovers and loss to follow-up all move a non-inferiority result towards the claim.

Bioequivalence

How do regulators decide that a generic tablet is bioequivalent?

A generic contains the same drug as the reference product. If both put the same amount of drug into the blood at the same rate, the clinical effect is expected to be the same, so the comparison is made on blood levels instead of on a clinical outcome.

The EMA guideline (2010) states that two products containing the same active substance are bioequivalent if they are pharmaceutically equivalent or pharmaceutical alternatives and their bioavailabilities (rate and extent) after the same molar dose lie within acceptable predefined limits. AUC, the area under the concentration-time curve, reflects the extent of exposure. Cmax and tmax are influenced by the rate of absorption.

80.00% (ln −0.223)125.00% (ln +0.223)Product 1inside: bioequivalentProduct 2excludes 100%, insideProduct 3crosses 80%: not shown70%80%90%100%110%125%ratio of geometric means, test ÷ reference (log scale)
Made-up teaching data. Drug levels are compared as a ratio (test ÷ reference), analysed on the log scale. On that scale 80% and 125% are the same distance from 100% (ln 0.80 = −0.223, ln 1.25 = +0.223), which is why the limits are not 80–120%. Product 2 shows that a ratio can differ significantly from 100% and still be bioequivalent.

The standard requirements (EMA 2010, with FDA 2001)

  1. Design: a randomised, two-period, two-sequence, single-dose crossover, usually in healthy volunteers. The washout must bring drug concentrations below the lower limit of quantification, normally at least 5 elimination half-lives.
  2. Parameters: after a single dose, AUC(0–t) (or AUC(0–72h) when relevant) and Cmax.
  3. Analysis: ANOVA on log-transformed values. The confidence interval for the difference on the log scale is back-transformed to a confidence interval for the ratio. A non-parametric analysis is not acceptable (EMA).
  4. Acceptance: the 90% confidence interval for the ratio must lie within 80.00–125.00%. The FDA guidance states that this 90% interval approach is equivalent to two one-sided tests at the 5% level.
  5. Narrow therapeutic index drugs: the AUC range is tightened to 90.00–111.11%, and also for Cmax where Cmax matters for safety, efficacy or drug monitoring (EMA).
  6. Highly variable drugs: the Cmax range may be widened, to a maximum of 69.84–143.19%, only in a replicate design where the within-subject variability of the reference Cmax is above 30%, with clinical justification. AUC stays at 80.00–125.00% (EMA).
FeatureTherapeutic equivalenceBioequivalence
OutcomeA clinical outcome: HbA1c, cure, pain scoreDrug exposure: AUC and Cmax
ParticipantsPatients with the diseaseUsually healthy volunteers
Usual designParallel groupsCrossover, each person receives both products
ScaleDifference in means or proportionsRatio of geometric means, analysed on the log scale
MarginClinical, chosen and justified for each trialFixed by regulators: 80.00–125.00% for most drugs
Main guidanceICH E9, ICH E10, FDA 2016 (non-inferiority)EMA 2010, FDA 2001

Interactive

Change the ratio, the variability and the number of subjects, and watch the 90% confidence interval against 80–125%

The point estimate alone never decides bioequivalence. The whole 90% interval must lie inside the acceptance range, and its width depends on the within-subject variability and the number of subjects.

Try this: keep the ratio at 94% and raise the within-subject CV from 25% to 40%. The point estimate does not move, but the 90% confidence interval widens until its lower limit falls below 80.00%.

Teaching example with made-up numbers: AUC of a generic tablet against the reference tablet in a randomised two-period, two-sequence crossover study in healthy volunteers.

94%
25%

How much one person's AUC varies from period to period

24
Acceptance range

80.00–125.00% (EMA 2010)

80.00%125.00%70%80%90%100%111%125%143%ratio of geometric means, log scale: 80% and 125% are the same distance from 100%
83.20% to 106.20%90% confidence interval for the ratio

s = √ln(1 + 0.25²) = 0.2462 · SE = s × √(2 ÷ 24) = 0.0711 · t(0.95, df 22) = 1.717 · exp(ln 0.94 ± 1.717 × 0.0711)

Bioequivalent. The whole interval lies inside 80.00–125.00%. The interval includes 100%.

If the true ratio were 94% and the CV 25%, 24 subjects would show bioequivalence with power 70%. 80% power needs 32 subjects.

The formula

Worked example: equivalence, non-inferiority and bioequivalence from the same steps

Made-up teaching data. 150 patients per group. HbA1c fell by 1.10 percentage points with the biosimilar and 1.15 with the reference insulin. SD of the change 1.0 in both groups. Equivalence margin ±0.4.

Step by step: two one-sided tests

  1. Difference d = −1.10 − (−1.15) = 0.05.
  2. SE = SD × √(1/n₁ + 1/n₂) = 1.0 × √(2 ÷ 150) = 0.1155. Degrees of freedom = 150 + 150 − 2 = 298.
  3. Test 1: t₁ = (0.05 + 0.4) ÷ 0.1155 = 3.90. Upper-tail p₁ = 0.00006.
  4. Test 2: t₂ = (0.05 − 0.4) ÷ 0.1155 = −3.03. Lower-tail p₂ = 0.0013.
  5. TOST p = the larger = 0.0013, below 0.05. Equivalence is shown.
  6. Check with the interval: t for 298 df at 0.95 = 1.650. 90% CI = 0.05 ± 1.650 × 0.1155 = −0.14 to 0.24, inside ±0.4.
  7. The ordinary t-test on the same data: t = 0.05 ÷ 0.1155 = 0.43, p = 0.67.

TOST p = 0.0013 → 90% CI −0.14 to 0.24: equivalent

The same data as a non-inferiority trial

With a margin of −0.4 and a one-sided α of 2.5%: t for 298 df at 0.975 = 1.968, 95% CI = 0.05 ± 1.968 × 0.1155 = −0.18 to 0.28. The lower limit −0.18 lies above −0.4, so the biosimilar is non-inferior. With your thesis sample of 20 per group, the 95% CI would be −0.59 to 0.69, and neither conclusion is possible.

Bioequivalence: a ratio on the log scale

Made-up teaching data: 24 subjects in a 2 × 2 crossover, ratio of geometric means for AUC 94%, within-subject CV 25%.

  1. Within-subject variance on the log scale: s² = ln(1 + CV²) = ln(1.0625) = 0.0606. (In a real study s² is the residual mean square of the ANOVA. The EMA guideline gives CV = 100 × √(es² − 1).)
  2. SE of the log difference = √(2 × 0.0606 ÷ 24) = 0.0711. Degrees of freedom = 24 − 2 = 22, t at 0.95 = 1.717.
  3. ln 0.94 = −0.0619. Limits on the log scale: −0.0619 ± 1.717 × 0.0711 = −0.1839 and 0.0602.
  4. Back-transform: e−0.1839 = 0.8320 and e0.0602 = 1.0620.

90% CI = 83.20% to 106.20%: bioequivalent

All numbers computed in Python (SciPy); the TOST p-values were checked with statsmodels (ttost_ind).

Sample size

How many patients does an equivalence or non-inferiority trial need?

The same four ingredients as any sample size: α, power, SD and a distance. Here the distance is between the margin and the difference you expect, and that distance is often small.

Equivalence, true difference 0: n per group = 2 × SD² × (z1−α + z1−β/2)² ÷ Δ²

Equivalence or non-inferiority, true difference δ: n per group ≈ 2 × SD² × (z1−α + z1−β)² ÷ (Δ − |δ|)²

z 1−α
1.645 for α 5% per side (equivalence); 1.960 for one-sided α 2.5% (non-inferiority)
z 1−β/2
1.645 for 90% power in the equivalence formula with δ = 0, because power is shared between the two tests
z 1−β
1.282 for 90% power
δ
the true difference you expect. For non-inferiority, a new treatment expected to be slightly worse reduces Δ − |δ|

Teaching example, SD 1.0, Δ 0.4, 90% power. Equivalence with δ = 0: 2 × (1.645 + 1.645)² ÷ 0.4² = 135.3 → 136 per group. With δ = 0.1: 2 × (1.645 + 1.282)² ÷ 0.3² = 190.3, and the exact TOST calculation gives 192 per group. ICH E9 warns that when power is assessed at a true difference of zero, the sample size is underestimated if the true difference is not zero.

Superiority: detect 0.4133Non-inferiority, true difference 0133Equivalence, true difference 0136Equivalence, true difference 0.1192Non-inferiority, true difference −0.1235
Patients per group, exact t-based calculations in Python, SD 1.0, margin or detectable difference 0.4, 90% power. Equivalence and non-inferiority need about as many patients as superiority when the true difference is 0. They need far more when the new treatment is expected to be slightly different.

Bioequivalence studies are sized from the within-subject CV and the expected ratio. For a 2 × 2 crossover with α 5% per side, an expected ratio of 95% and 80% power, the exact TOST calculation gives 20 subjects at CV 20%, 28 at CV 25%, 40 at CV 30% and 66 at CV 40%. Add subjects for expected dropouts.

In a real paper

How is non-inferiority, and bioequivalence, reported in real studies?

Open-access paper · CC BY

Blancher M, Maignan M, Clapé C, Quesada JL, Collomb-Muret R, Albasini F, et al. Intranasal sufentanil versus intravenous morphine for acute severe trauma pain: a double-blind randomized non-inferiority study. PLoS Med. 2019;16(7):e1002849.

The study: A randomised, double-blind trial in the emergency departments of 6 hospitals in France. Adults aged 18 to 75 with traumatic pain rated 6/10 or more received intranasal sufentanil or intravenous morphine. The intranasal route avoids the need for venous access, so the question was whether it relieves pain no worse than morphine, with a prespecified margin of −1.3 points on the 0–10 numerical rating scale (NRS).

What the authors wrote
“Non-inferiority was met (p < 0.001), as the lower 97.5% confidence interval of 0.29 was greater than the prespecified non-inferiority margin of −1.3 (mean difference in NRS variation between groups 1.11, 97.5% CI 0.29 to 1.93).”
In plain words

This is the per-protocol result, the trial's primary analysis. Pain fell by 1.11 points more with sufentanil than with morphine, so positive values favour sufentanil. The lowest value in the interval, 0.29, is far above −1.3, the largest loss of pain relief the investigators had agreed to accept before the trial. “p < 0.001” is the p-value of the one-sided test of the null hypothesis that sufentanil is worse by 1.3 points or more. The intention-to-treat analysis reached the same conclusion.

ReportedValueWhat it means
Non-inferiority margin−1.3 NRS pointsSet in advance; a smaller fall in pain of up to 1.3 points was acceptable
Randomised / per protocol157 / 136 (69 IVM, 67 INS)Patients who did not receive the protocol correctly were excluded from the primary analysis
Per-protocol difference1.11 (97.5% CI 0.29 to 1.93)Lower limit above −1.3: non-inferior
Intention-to-treat difference0.74 (97.5% CI −0.05 to 1.54)Lower limit also above −1.3: the two analysis sets agree
Planned sample size218 (109 per arm)Based on SD 2.8, significance level 2.5%, power 80%; 157 were randomised
Check these when you read it
  • Which analysis was primary? Here it was per protocol, confirmed on a modified intention-to-treat population with multiple imputation for missing data. Both lower limits lie above the margin, which ICH E9 says increases confidence.
  • Which interval is reported? The paper labels it a 97.5% CI and tests at a 2.5% significance level. Check that the interval you read matches the α of the one-sided test.
  • Recruitment stopped at 157 against a target of 218. The result still excluded the margin, but a smaller trial gives less information on harms.
  • The superiority analysis was planned after enrolment began (before unblinding) and was to be done only if non-inferiority was met. The CONSORT extension asks authors to justify a switch from non-inferiority to superiority.
Open-access paper · CC BY 4.0

Zuo X, Zhao X, Shi J, Zhang T. Pharmacokinetics and bioequivalence evaluation of two oral formulations of cotrimoxazole tablets in healthy Chinese volunteers under fasting conditions. BMC Pharmacol Toxicol. 2024;25(1):23.

The study: A single-centre, randomised, open-label, two-period crossover study in 26 healthy volunteers. Each received one dose of a generic and one dose of the branded cotrimoxazole tablet (sulfamethoxazole 400 mg, trimethoprim 80 mg), 7 days apart. A generic must show bioequivalence on drug levels, not on a clinical outcome.

What the authors wrote
“For SMX, the 90% confidence intervals (CI) of the geometric mean ratio for Cmax, AUC0-t, and AUC0-∞ were 104.03-113.92%, 100.46-103.70%, and 100.41-103.81%, respectively.”
In plain words

SMX is sulfamethoxazole. For each measure of exposure, the authors divided the generic's geometric mean by the branded product's and gave the 90% confidence interval for that ratio. All three intervals lie inside 80.00–125.00%, so the generic is bioequivalent for sulfamethoxazole. The trimethoprim intervals also lay inside the range.

ReportedValueWhat it means
SMX CmaxGMR 108.86%, 90% CI 104.03–113.92%Inside 80.00–125.00%, although the interval excludes 100%
SMX AUC0-tGMR 102.07%, 90% CI 100.46–103.70%A narrow interval close to 100%
TMP Cmax90% CI 98.54–106.95%Inside the range
Subjects26 (calculated 24, plus 2 for dropouts)Crossover design: each subject is their own control
Washout7 daysAt least 7 times the terminal half-life of about 10 h
Check these when you read it
  • The 90% CI for sulfamethoxazole Cmax (104.03–113.92%) does not include 100%, yet the abstract says there were no significant differences in Cmax. Read the intervals, not the summary words.
  • Were AUC and Cmax analysed on the log scale with a model that includes sequence, period and subject?
  • The study was done under fasting conditions only. A fed-state study is a separate question.
  • How was the sample size of 24 derived: from the within-subject CV and the 80–125% limits?

How to run it

How do you run an equivalence or non-inferiority analysis?

Most software does not label a test as TOST. You can always get the answer from a confidence interval at the right level. Dedicated functions give both one-sided p-values.

SPSS

  1. Analyze > Compare Means > Independent-Samples T Test. Select the outcome as the test variable, select the group as the grouping variable, and click Define Groups to enter the two group codes.
  2. Click Options. The Confidence Interval box is 95% by default and accepts values between 1 and 99. Enter 90 for an equivalence test at α 5% per side. Keep 95 for non-inferiority at one-sided α 2.5%.
  3. Compare the interval for the mean difference with your margins. SPSS gives the ordinary test of no difference; its p-value is not the TOST p-value.

R

# TOSTER package: two one-sided tests
library(TOSTER)
t_TOST(x = hba1c_bio, y = hba1c_ref, eqb = 0.4, alpha = 0.05, var.equal = TRUE)

# From summary statistics (means, SDs, n)
tsum_TOST(m1 = -1.10, sd1 = 1.0, n1 = 150,
          m2 = -1.15, sd2 = 1.0, n2 = 150,
          eqb = 0.4, alpha = 0.05, var.equal = TRUE)

# Bioequivalence sample size, 2 x 2 crossover (PowerTOST package)
library(PowerTOST)
sampleN.TOST(CV = 0.25, theta0 = 0.95, targetpower = 0.8, design = "2x2")
  • t_TOST uses the Welch test unless var.equal = TRUE. eqb takes one value for symmetric bounds or two values for lower and upper bounds. The TOSTER plot draws a 1 − 2α interval by default (90% at α 0.05).
  • sampleN.TOST estimates the number of subjects for a target power. By default it works on the log scale with a lower limit of 0.80, an upper limit of 1/0.80 = 1.25, a one-sided α of 0.05 and an assumed ratio of 0.95.
  • The equivalence package offers tost(x, y, epsilon = 0.4) for the same test on raw data.

jamovi

Install the TOSTER module from the jamovi library. It adds a TOSTER menu with TOST versions of the one-sample, paired-samples and independent-samples t-tests, and tests for correlations and two proportions.

How to report it

What should you write in the thesis or paper?

State the framework, the margin with its reason, the interval level that matches your α, the result against the margin, and both analysis sets.

CONSORT 2025, item 9

Trial design, including the “framework (eg, superiority, equivalence, non-inferiority, exploratory)”.

CONSORT extension for non-inferiority and equivalence trials (2012), item 2b

“Hypotheses concerning noninferiority, specifying the noninferiority margin with the rationale for its choice.”

CONSORT extension (2012), items 7a and 12a

“Whether the sample size was calculated using a noninferiority criterion and, if so, what the noninferiority margin was.” “Whether a 1- or 2-sided confidence interval approach was used.”

CONSORT extension (2012), item 4a

“Whether participants in the noninferiority trial are similar to those in any trial(s) that established efficacy of the reference treatment.”

CONSORT extension (2012), item 22

“Interpret results in relation to the noninferiority hypothesis. If a superiority conclusion is drawn for outcome(s) for which noninferiority was hypothesized, provide justification for switching.”

A worked sentence with the teaching numbers

“Equivalence was prespecified with a margin of ±0.4 percentage points in HbA1c change, the largest difference judged clinically unimportant, and tested with two one-sided t-tests at α = 0.05 each. Mean HbA1c fell by 1.10 points with the biosimilar and 1.15 with the reference insulin (difference 0.05, 90% CI −0.14 to 0.24; TOST p = 0.001). The whole interval lay within ±0.4, so the two insulins were equivalent in the full analysis set.”

Then give the per-protocol result in the same form. For a bioequivalence study, report the ratio of geometric means with its 90% CI for each of AUC and Cmax, and the acceptance range.

By specialty

Equivalence and non-inferiority questions by specialty

A biosimilar insulin glargine is compared with the reference product on the change in HbA1c at 24 weeks.

Too high and too low both matter, so this is an equivalence question. Set ±Δ before the trial and read the 90% confidence interval against both margins.

Common myths

Common mistaken beliefs

  • Myth: p > 0.05 shows that the two treatments are equally effective.

    It shows that no difference was detected. ICH E9 calls it inappropriate to conclude equivalence or non-inferiority from a non-significant test of no difference.

  • Myth: "Non-inferior" means "not worse".

    It means not worse by the margin or more. A non-inferior treatment can be slightly worse than the comparator.

  • Myth: Intention to treat is always the conservative analysis.

    Only in superiority trials. ICH E9: in equivalence and non-inferiority trials the full analysis set is generally not conservative. Report per protocol too.

  • Myth: Equivalence is always read from the 95% confidence interval.

    The level follows from α. Two one-sided tests at 5% each correspond to the 90% interval. Non-inferiority at one-sided 2.5% uses the lower limit of the 95% interval.

  • Myth: The margin can be settled after looking at the results.

    It must be specified in the protocol and justified clinically (ICH E9), and based on the comparator's effect over placebo (ICH E10, FDA 2016).

  • Myth: Bioequivalence means the point estimate lies between 80% and 125%.

    The whole 90% confidence interval for the ratio of geometric means must lie within 80.00–125.00% (EMA 2010, FDA 2001).

Why this matters to you

Five consequences of getting equivalence and non-inferiority wrong

  1. Protocol sent back

    A protocol that aims to show a cheaper or safer drug is "as good" but has no margin, no rationale and no matching sample size will not pass a research committee.

  2. A thesis conclusion you cannot defend

    "No significant difference, therefore equivalent" is the first sentence an examiner will question.

  3. A sample size that is far too small

    Planning as a superiority trial and concluding equivalence leaves you with a confidence interval that crosses both margins.

  4. Misreading published trials

    A loose margin, a missing per-protocol analysis or a comparator never proven against placebo can make a less effective treatment look acceptable.

  5. Harm to patients

    Accepting small losses of effect trial after trial, or switching to a generic without understanding what bioequivalence covers, affects treatment choices for many patients.

History

History of equivalence and non-inferiority testing

  1. 1972

    W. J. Westlake

    Published "Use of confidence intervals in analysis of comparative bioavailability trials" in the Journal of Pharmaceutical Sciences.

  2. 1976

    W. J. Westlake

    Proposed confidence intervals symmetrical about zero for bioequivalence trials (Biometrics).

  3. 1982

    William C. Blackwelder

    In "Proving the null hypothesis" in clinical trials, argued that when a new therapy is to be shown as effective as a standard, the null hypothesis should be that the standard is more effective by at least a specified amount.

  4. 1987

    Donald J. Schuirmann

    Compared the two one-sided tests procedure with the "power approach" and showed that, at α 0.05, TOST had uniformly superior properties in most cases. TOST gives the same conclusion as Westlake's 1 − 2α confidence interval.

  5. 1992

    US FDA

    Bioequivalence guidance recommended that AUC and Cmax be analysed with the two one-sided tests procedure (as described in the FDA 2001 guidance).

  6. 1998

    ICH E9

    Statistical Principles for Clinical Trials set out equivalence and non-inferiority margins, confidence intervals and the role of analysis sets.

  7. 2000

    ICH E10

    Choice of Control Group linked the non-inferiority margin to historical evidence that the active control beats placebo (assay sensitivity).

  8. 2006

    Piaggio and colleagues

    Published the CONSORT extension for reporting non-inferiority and equivalence trials in JAMA. It was updated to match CONSORT 2010 in 2012.

  9. 2010

    EMA; Everson-Stewart and Emerson

    The EMA Guideline on the Investigation of Bioequivalence (Rev. 1) was adopted on 20 January 2010. The same year, a simulation study examined the conditions under which bio-creep occurs.

  10. 2016

    US FDA

    Issued the final guidance Non-Inferiority Clinical Trials to Establish Effectiveness (November 2016), defining M1 and M2.

Guidelines

Equivalence, non-inferiority and bioequivalence in guidelines

ICH E9 (1998), section 3.3.2

An equivalence margin “is the largest difference that can be judged as being clinically acceptable and should be smaller than differences observed in superiority trials of the active comparator”. “For equivalence trials, two-sided confidence intervals should be used” and “for non-inferiority trials a one-sided interval should be used.”

ICH E9 (1998), section 3.3.2, non-significant tests

Concluding equivalence or non-inferiority based on a non-significant test of no difference “is inappropriate”.

ICH E9 (1998), section 5.2.3

“In an equivalence or non-inferiority trial use of the full analysis set is generally not conservative and its role should be considered very carefully.”

ICH E10 (2000), section 1.5.1.1

“The margin chosen for a non-inferiority trial cannot be greater than the smallest effect size that the active drug would be reliably expected to have compared with placebo in the setting of the planned trial.”

FDA, Non-Inferiority Clinical Trials to Establish Effectiveness (2016)

M1 is “the entire effect of the active control assumed to be present in the NI study”. M2 is “the largest clinically acceptable difference (degree of inferiority) of the test drug compared to the active control”.

EMA, Guideline on the Investigation of Bioequivalence (2010), section 4.1.8

For AUC(0–t) and Cmax “the 90% confidence interval for the ratio of the test and reference products should be contained within the acceptance interval of 80.00-125.00%”.

FDA, Statistical Approaches to Establishing Bioequivalence (2001)

A 90% confidence interval contained in the equivalence limits is “equivalent to carrying out two one-sided tests of hypothesis at the 5% level of significance”.

Reading a paper

Five checks on any equivalence or non-inferiority trial

  • Was the margin set in the protocol, stated in the units of the outcome, and justified from the comparator's effect over placebo and from clinical judgement?
  • Does the confidence interval level match the α of the test (90% for TOST at 5% per side, 95% for one-sided 2.5%), and is the whole relevant limit compared with the margin?
  • Are both intention-to-treat and per-protocol results reported, and do they agree?
  • Has the comparator reliably beaten placebo in earlier trials with similar patients, dose and outcome?
  • For bioequivalence: log-transformed AUC and Cmax, a 90% CI for the ratio of geometric means, and the whole interval within 80.00–125.00% (or the tighter range for narrow therapeutic index drugs)?

Why is it called that?

Word surgery

“Equivalent”

In everyday speech

Identical, exactly the same.

In research

The difference is shown to lie within a margin chosen in advance, in both directions. Equivalent treatments are not identical.

“Non-inferior”

In everyday speech

Not worse.

In research

Not worse by the margin or more. The new treatment may be slightly worse than the comparator.

“Margin”

In everyday speech

The blank space at the edge of a page, or a little extra kept in reserve.

In research

The largest difference that is clinically acceptable, fixed before the trial. The whole relevant confidence limit must stay on the right side of it.

Memory trick

Equivalence: two one-sided tests, two margins, the 90% interval. Non-inferiority: one one-sided test, one margin, the lower limit of the 95% interval. Bioequivalence: the 90% interval of a ratio within 80.00–125.00%.

Equivalent

Late Latin aequivalentem, from aequus "equal" + valere "be worth"

Equal in value. In a trial, equal within a stated margin.

Inferior

Latin inferior: "lower, farther down"

A non-inferiority trial shows that the new treatment is not lower than the comparator by the margin or more.

Margin

Latin margo: "edge, brink, border"

The border that the confidence limit must not cross.

TOST

Two · One-Sided · Tests

One test for each margin. Equivalence is shown when both reject their null hypothesis.

GMR

Geometric · Mean · Ratio

Test geometric mean ÷ reference geometric mean, the quantity compared with 80.00–125.00% in bioequivalence.

Exam answers

Model answer outlines

Non-inferiority trials: statistical design

DM Neonatology 2021 · MCh Surgical Oncology 2012
  1. Definition: a trial that aims to show that a new treatment is not worse than an active comparator by more than a prespecified margin (Δ). Used when the new treatment has another advantage (oral, safer, cheaper, shorter) and a placebo control would be unethical.
  2. Hypotheses: H₀, new treatment is worse by Δ or more. H₁, it is worse by less than Δ, or better. The burden of proof is on non-inferiority.
  3. Active comparator: must have reliably beaten placebo in earlier trials (historical evidence of sensitivity, ICH E10). The new trial should keep their important design features: patients, dose, outcome (ICH E9). The effect is assumed to be the same in the new trial (constancy assumption).
  4. Margin: M1 = the whole effect of the comparator over placebo assumed in the new trial, from the conservative limit of earlier placebo-controlled trials. M2 = the largest clinically acceptable loss, often a fraction of M1 (50% of M1 is usual for cardiovascular outcome trials; 10–15% risk difference is common for antibiotics, FDA 2016). Fixed in the protocol and justified.
  5. Analysis: one-sided test at α 2.5%, read as the lower limit of the two-sided 95% CI. Non-inferiority if the lower limit lies above −M2. If the whole interval is also above 0, superiority can be claimed.
  6. Analysis sets: intention to treat and per protocol, both reported. ITT is not conservative here, because non-adherence makes groups look alike (ICH E9). Confidence is greater when both agree.
  7. Sample size: n per group ≈ 2 × SD² × (z1−α + z1−β)² ÷ (Δ − |δ|)² for means. Teaching example: SD 1.0, Δ 0.4, δ 0, one-sided α 2.5%, 90% power → 132 by formula, 133 exact. Assuming δ = 0 underestimates n if the new treatment is slightly worse (ICH E9).
  8. Pitfalls: concluding non-inferiority from p > 0.05; loose margins; biocreep when each new drug is compared with a slightly worse predecessor; poor adherence and crossovers.
  9. Reporting: CONSORT extension for non-inferiority and equivalence trials (Piaggio et al., JAMA 2012): margin with rationale (2b), sample size on the non-inferiority criterion (7a), one- or two-sided interval (12a), interpretation against the non-inferiority hypothesis (22). CONSORT 2025 item 9 asks for the framework.

Worked point: historical effect 20 points (95% CI 14 to 26), M1 = 14, M2 = 7. New trial difference −3 (95% CI −7.6 to 1.6): better than placebo, but non-inferiority on M2 is not shown.

Bioavailability and bioequivalence

MD Pharmacology 2015
  1. Bioavailability: the rate and extent of absorption of the drug from a product. In bioequivalence studies it is assessed from the plasma concentration-time curve (EMA 2010).
  2. Bioequivalence (EMA 2010): two products with the same active substance are bioequivalent if they are pharmaceutically equivalent or pharmaceutical alternatives and their bioavailabilities (rate and extent) after the same molar dose lie within acceptable predefined limits.
  3. Parameters: AUC reflects the extent of exposure. Cmax and tmax are influenced by the rate of absorption.
  4. Design: randomised, two-period, two-sequence, single-dose crossover in healthy volunteers. Washout sufficient to bring levels below the lower limit of quantification, normally at least 5 elimination half-lives.
  5. Analysis: log-transform AUC and Cmax, ANOVA, 90% CI for the difference on the log scale, back-transformed to a 90% CI for the ratio of geometric means. This equals two one-sided tests at 5% (Schuirmann 1987; FDA 2001).
  6. Acceptance: 90% CI within 80.00–125.00%. Narrow therapeutic index drugs: 90.00–111.11%. Highly variable drugs: Cmax up to 69.84–143.19% in a replicate design with reference within-subject CV above 30% (EMA).
  7. Why 80–125: the limits are symmetric on the log scale (ln 0.80 = −0.223, ln 1.25 = +0.223).
  8. Worked example: 24 subjects, GMR 94%, CV 25% → 90% CI 83.20% to 106.20%, bioequivalent.
  9. Sample size: from within-subject CV and expected ratio. CV 25%, ratio 95%, 80% power → 28 subjects.
  10. Purpose: generic and reference products are compared on exposure. EMA: the limits are set to ensure comparable in vivo performance, that is, similarity in terms of safety and efficacy.
FeatureTherapeutic equivalenceBioequivalence
OutcomeClinical outcomeAUC, Cmax
ParticipantsPatientsUsually healthy volunteers
DesignParallel groupsCrossover
MarginClinical, trial-specific80.00–125.00% for most drugs

The one thing to remember

Set the margin before the trial, then check that the whole confidence interval, at the level that matches your α, lies on the right side of it. A large p-value from a test of no difference shows nothing about equivalence.

All worked examples and interactive elements use made-up numbers for teaching. Numbers were computed in Python (SciPy 1.15, statsmodels 0.14).

Sources: ICH E9 Statistical Principles for Clinical Trials, Step 4, 5 February 1998. ICH E10 Choice of Control Group and Related Issues in Clinical Trials, Step 4, 20 July 2000. US FDA. Non-Inferiority Clinical Trials to Establish Effectiveness: Guidance for Industry. November 2016. US FDA. Statistical Approaches to Establishing Bioequivalence: Guidance for Industry. January 2001. EMA CHMP. Guideline on the Investigation of Bioequivalence. CPMP/EWP/QWP/1401/98 Rev. 1/Corr. 20 January 2010. Westlake WJ. J Pharm Sci 1972;61(8):1340–1 (doi:10.1002/jps.2600610845, PMID 5050398). Westlake WJ. Biometrics 1976;32(4):741–4 (PMID 1009222). Blackwelder WC. Control Clin Trials 1982;3(4):345–53 (doi:10.1016/0197-2456(82)90024-1, PMID 7160191). Schuirmann DJ. J Pharmacokinet Biopharm 1987;15(6):657–80 (doi:10.1007/BF01068419, PMID 3450848). Piaggio G et al. JAMA 2006;295(10):1152–60 (doi:10.1001/jama.295.10.1152, PMID 16522836). Piaggio G et al. JAMA 2012;308(24):2594–604 (doi:10.1001/jama.2012.87802, PMID 23268518). Hopewell S et al. CONSORT 2025 statement. BMJ 2025;389:e081123 (PMID 40228833). Fleming TR. Stat Med 2008;27(3):317–32 (doi:10.1002/sim.2855, PMID 17340597). Everson-Stewart S, Emerson SS. Stat Med 2010;29(27):2769–80 (doi:10.1002/sim.4053, PMID 20809482). Odem-Davis K, Fleming TR. Stat Biopharm Res 2015;7(1):12–24 (doi:10.1080/19466315.2014.1002627, PMID 26052374). Aberegg SK, Hersh AM, Samore MH. BMJ Open 2018;8(3):e019494 (doi:10.1136/bmjopen-2017-019494, PMID 29500210). Blancher M et al. PLoS Med 2019;16(7):e1002849 (doi:10.1371/journal.pmed.1002849, PMID 31310600). Zuo X et al. BMC Pharmacol Toxicol 2024;25(1):23 (doi:10.1186/s40360-024-00743-9, PMID 38414087). Software: TOSTER 0.8.6, PowerTOST 1.5-7 and equivalence 0.8.2 reference manuals (CRAN); IBM SPSS Statistics 30 documentation and IBM SPSS Statistics Base 21 manual; Lakens D, Equivalence testing in jamovi (blog, 2017).

Past papers

TNMGRMU questions on equivalence and non-inferiority tests

Questions from MD, MS, DM, MCh and Ph.D. papers that this chapter helps you answer. Tap a sitting to open the university's own question paper.

  1. ×1Non-inferiority trialsDM Neonatology · Aug 2021
  2. ×1Bioavailability and BioequivalenceMD Pharmacology · Apr 2015
  3. ×1Describe the statistical design of a Non inferiority trialsMCh Surgical Oncology · Aug 2012

Further reading

Related Stateazy articles