Tutorials › Biostatistics › Sample Size for Non-Inferiority Trials

Clinical Trial Design & Sample Size

Sample Size for Non-Inferiority Trials

A practical guide to non-inferiority sample size calculations, including non-inferiority margins, one-sided type I error, power, continuous and binary endpoints, dropout inflation, worked examples, and R implementation.

Intermediate 18 min read

What You'll Learn

  • What a non-inferiority trial is actually designed to demonstrate
  • How to define and interpret the non-inferiority margin
  • How one-sided alpha and power determine sample size
  • How to calculate sample size for continuous endpoints
  • How binary endpoint calculations differ from continuous endpoints
  • How to inflate sample size for dropout and implement the calculation in R

Introduction

A non-inferiority trial is designed to determine whether a new treatment is not unacceptably worse than an established active control. The new treatment does not necessarily need to be statistically superior. Instead, the objective is to demonstrate that any loss in efficacy is smaller than a prespecified and clinically acceptable amount.

Non-inferiority designs are common when the experimental treatment may offer advantages that are not captured by the primary efficacy endpoint. For example, a new treatment might be easier to administer, safer, less expensive, more convenient, or associated with fewer adverse effects while retaining sufficient efficacy.

The sample size calculation is therefore fundamentally different from an ordinary superiority calculation. The critical quantity is not simply the expected treatment effect. It is the relationship between the expected treatment difference and the non-inferiority margin.

Key idea: A non-inferiority trial asks whether the data are sufficiently precise to rule out a clinically unacceptable loss of efficacy. The smaller the acceptable margin, the more precise the treatment-effect estimate must be, and therefore the larger the required sample size generally becomes.

Superiority vs. Non-Inferiority

Consider a randomized trial comparing an experimental treatment \(T\) with an active control \(C\). Let the treatment effect be defined as:

\[ \delta=\mu_T-\mu_C \]

for a continuous endpoint where larger values are better.

A superiority trial might test:

\[ H_0:\delta=0 \qquad\text{vs.}\qquad H_A:\delta\ne0 \]

or, for a directional superiority hypothesis:

\[ H_0:\delta\le0 \qquad\text{vs.}\qquad H_A:\delta>0 \]

A non-inferiority trial instead specifies a negative margin \(\Delta>0\) representing the largest clinically acceptable loss:

\[ H_0:\delta\le-\Delta \qquad\text{vs.}\qquad H_A:\delta>-\Delta \]

The null hypothesis says that the experimental treatment is inferior by at least \(\Delta\). The alternative says that the treatment is sufficiently close to the control that an inferiority of \(\Delta\) or greater can be ruled out.

The Non-Inferiority Margin

The most important design parameter in a non-inferiority trial is often the non-inferiority margin.

The margin, commonly denoted by \(\Delta\), defines the largest loss of treatment effect that can still be considered clinically acceptable.

For a continuous endpoint where higher values are better:

\[ H_0:\mu_T-\mu_C\le-\Delta \]

For example, if:

\[ \Delta=5 \]

then a treatment difference greater than \(-5\) is considered compatible with non-inferiority.

The margin is not a convenient statistical parameter. It should be justified from clinical considerations and, where applicable, historical evidence about the active control's effect relative to an appropriate reference or placebo.

What Makes a Margin Difficult to Choose?

Suppose the active control historically improves a clinical outcome by approximately 10 units compared with placebo. An investigator might decide that preserving at least 50% of that established effect is necessary.

That could motivate a non-inferiority margin of:

\[ \Delta=5 \]

The statistical calculation can then determine how many patients are needed to estimate the treatment difference precisely enough to demonstrate non-inferiority.

But the statistical calculation itself does not determine whether 5 units is clinically appropriate.

One-Sided Type I Error

Non-inferiority trials generally use a one-sided type I error because the scientific question is directional.

The concern is whether the experimental treatment is unacceptably worse than the control.

A common choice is:

\[ \alpha=0.025 \]

The corresponding standard normal critical value is approximately:

\[ z_{1-\alpha}=z_{0.975}\approx1.96 \]
Do not automatically use 0.05 two-sided alpha. A one-sided 2.5% non-inferiority test corresponds to a 95% two-sided confidence interval. The exact convention should be specified in the protocol and aligned with the intended regulatory and statistical framework.

Power

Power is the probability of successfully demonstrating non-inferiority when the assumed true treatment effect is consistent with the planning alternative.

If the assumed true difference is \(\delta_A\), then:

\[ \text{Power} = P(\text{declare non-inferiority}\mid\delta=\delta_A) \]

Common target values include:

  • 80% power
  • 85% power
  • 90% power
  • 95% power for especially important confirmatory settings

The Key Relationship Between Effect and Margin

Suppose the expected true treatment difference is:

\[ \delta_A=0 \]

and the non-inferiority margin is:

\[ \Delta=5 \]

The distance between the expected effect and the non-inferiority boundary is:

\[ \delta_A-(-\Delta) = 0-(-5) = 5 \]

This distance determines how easy or difficult it is to demonstrate non-inferiority.

If the expected treatment effect were instead \(-3\), the distance would be:

\[ -3-(-5)=2 \]

A much smaller distance means that substantially more information is needed.

Practical rule: The closer the expected treatment effect is to the non-inferiority margin, the larger the required sample size.

Sample Size for a Continuous Endpoint

Consider a parallel-group trial with equal allocation and a continuous primary endpoint. Assume:

  • Common standard deviation \(\sigma\)
  • Expected treatment difference \(\delta_A\)
  • Non-inferiority margin \(\Delta\)
  • One-sided type I error \(\alpha\)
  • Power \(1-\beta\)

For an approximate normal-theory calculation, the required sample size per treatment group is:

\[ n = \frac{ 2\sigma^2 \left( z_{1-\alpha}+z_{1-\beta} \right)^2 }{ (\delta_A+\Delta)^2 } \]

The denominator contains the distance between the assumed treatment effect and the non-inferiority boundary.

Because:

\[ \delta_A-(-\Delta)=\delta_A+\Delta \]

the quantity \(\delta_A+\Delta\) is the relevant effect-to-margin distance when the superiority direction is positive.

Worked Example: Continuous Endpoint

Suppose a randomized non-inferiority trial compares a new treatment with an established active control using a continuous clinical endpoint.

Parameter Planning Value
Expected treatment difference \(\delta_A\) 0 units
Non-inferiority margin \(\Delta\) 5 units
Standard deviation \(\sigma\) 10 units
One-sided alpha 0.025
Target power 90%
Allocation 1:1
Expected dropout 10%

Step 1: Identify the Non-Inferiority Boundary

The hypothesis is:

\[ H_0:\delta\le-5 \qquad\text{vs.}\qquad H_A:\delta>-5 \]

The planned true treatment difference is 0:

\[ \delta_A=0 \]

Therefore, the distance between the assumed effect and the boundary is:

\[ \delta_A+\Delta = 0+5 = 5 \]

Step 2: Obtain the Critical Values

For one-sided \(\alpha=0.025\):

\[ z_{1-\alpha} = z_{0.975} \approx1.96 \]

For 90% power:

\[ z_{1-\beta} = z_{0.90} \approx1.282 \]

Step 3: Calculate the Sample Size

Substitute the values into the continuous-endpoint formula:

\[ n = \frac{ 2(10^2)(1.96+1.282)^2 }{ 5^2 } \]

The result is approximately:

\[ n\approx171.2 \]

Because sample size must be an integer:

\[ \boxed{n=172\text{ per group}} \]

Therefore the required randomized sample size before dropout inflation is:

\[ N=2(172)=344 \]

Step 4: Inflate for Dropout

Suppose the anticipated dropout rate is 10%. The retention rate is:

\[ 1-0.10=0.90 \]

The inflation formula is:

\[ N_{\text{randomized}} = \frac{N_{\text{evaluable}}}{1-d} \]

Therefore:

\[ N_{\text{randomized}} = \frac{344}{0.90} = 382.22 \]

Rounding upward gives:

\[ \boxed{N_{\text{randomized}}=384} \]

Thus, a practical design would randomize 192 patients per treatment group.

Important distinction: The statistical calculation initially produces the number of evaluable patients required for the target power. Dropout inflation is then applied to determine how many patients should actually be randomized.

The Confidence-Interval Interpretation

A non-inferiority conclusion can also be expressed through a confidence interval.

Suppose the treatment effect is defined as:

\[ \delta=\mu_T-\mu_C \]

The trial demonstrates non-inferiority when the lower confidence limit is above the non-inferiority boundary:

\[ L>-\Delta \]

For a one-sided 2.5% test, this is commonly equivalent to examining the lower bound of a 95% two-sided confidence interval.

Visual interpretation: If the entire confidence interval lies above the non-inferiority margin, non-inferiority is demonstrated. If the interval crosses the margin, non-inferiority has not been demonstrated.

Sample Size and Confidence-Interval Precision

The reason non-inferiority trials can require large sample sizes is easy to see from the confidence interval.

A narrow confidence interval requires a large amount of information.

If the non-inferiority margin is narrow, the confidence interval must be even more precise to remain entirely above that boundary.

For example, changing the margin from 5 units to 3 units changes the effect distance from:

\[ 5 \]

to:

\[ 3 \]

Since sample size is proportional to the inverse square of this distance:

\[ n\propto\frac{1}{(\delta_A+\Delta)^2} \]

the required sample size can increase dramatically.

Effect of the Non-Inferiority Margin

Margin Effect Distance Relative Sample Size
\(\Delta=7\) 7 units Smaller
\(\Delta=5\) 5 units Reference
\(\Delta=3\) 3 units Much larger
\(\Delta=2\) 2 units Very large

This illustrates why a scientifically justified margin is so important. A smaller margin is not automatically "better" if it is not supported by the clinical context, and it can have major consequences for trial feasibility.

Binary Endpoints

Many non-inferiority trials use binary endpoints such as:

  • Clinical response
  • Remission
  • Event-free status
  • Composite success/failure
  • Occurrence of an adverse outcome

For a binary endpoint, let:

\[ p_T=P(\text{success under treatment}) \]

and:

\[ p_C=P(\text{success under control}) \]

A risk-difference treatment effect can be defined as:

\[ \delta=p_T-p_C \]

For a higher-is-better endpoint, the non-inferiority hypothesis becomes:

\[ H_0:p_T-p_C\le-\Delta \qquad\text{vs.}\qquad H_A:p_T-p_C>-\Delta \]

Approximate Binary Sample Size Formula

For equal allocation, a commonly used normal-approximation framework can be expressed as:

\[ n = \frac{ \left[ z_{1-\alpha} \sqrt{ p_{T,0}(1-p_{T,0}) + p_C(1-p_C) } + z_{1-\beta} \sqrt{ p_T(1-p_T) + p_C(1-p_C) } \right]^2 }{ (p_T-p_C+\Delta)^2 } \]

where \(n\) is the approximate sample size per group, and the null-boundary treatment rate is:

\[ p_{T,0}=p_C-\Delta \]

This is an approximation. For confirmatory clinical trials with binary endpoints, investigators often use more specialized methods such as score-based approaches, including Farrington–Manning-type calculations, rather than relying on a simple Wald approximation.

Method matters: Binary non-inferiority sample size calculations are sensitive to the endpoint scale, event rates, allocation ratio, and statistical method. The final protocol calculation should use the same method intended for the primary analysis whenever possible.

Worked Example: Binary Endpoint

Suppose a randomized trial evaluates a new treatment against an active control using a binary success endpoint.

Parameter Planning Value
Expected control success rate \(p_C\) 80%
Expected treatment success rate \(p_T\) 80%
Non-inferiority margin \(\Delta\) 10 percentage points
One-sided alpha 2.5%
Target power 90%
Allocation 1:1

Step 1: Define the Hypotheses

The treatment difference is:

\[ \delta=p_T-p_C \]

The non-inferiority margin is 10 percentage points:

\[ \Delta=0.10 \]

Therefore:

\[ H_0:p_T-p_C\le-0.10 \qquad\text{vs.}\qquad H_A:p_T-p_C>-0.10 \]

The planned treatment difference is:

\[ p_T-p_C=0.80-0.80=0 \]

The distance between the assumed effect and the non-inferiority boundary is:

\[ 0-(-0.10)=0.10 \]

Step 2: Null-Boundary Event Rate

Under the null boundary:

\[ p_{T,0}=p_C-\Delta \]

Therefore:

\[ p_{T,0}=0.80-0.10=0.70 \]

This represents the treatment response rate at the non-inferiority boundary when the control rate is 80%.

Step 3: Approximate Sample Size

Using the normal approximation:

\[ n = \frac{ \left[ 1.96\sqrt{0.70(0.30)+0.80(0.20)} + 1.282\sqrt{0.80(0.20)+0.80(0.20)} \right]^2 }{ 0.10^2 } \]

This gives approximately:

\[ \boxed{n\approx330\text{ per group}} \]

or approximately:

\[ \boxed{N\approx660\text{ total evaluable patients}} \]

This is an illustrative normal-approximation calculation. A production clinical-trial calculation should generally be verified using the exact analysis method planned for the binary endpoint.

Why Binary Sample Size Can Be Large

At first glance, 660 patients may seem surprisingly large for a 10-percentage point non-inferiority margin.

The reason is that the trial must distinguish an expected difference of 0 from a clinically unacceptable difference of \(-0.10\), while maintaining a stringent one-sided type I error and high power.

Binary outcomes also contain less information per patient than a highly precise continuous measurement under some circumstances.

Different Effect Scales

Non-inferiority margins can be specified on different scales. Common choices include:

  • Risk difference
  • Risk ratio
  • Odds ratio
  • Difference in means
  • Difference in transformed means
  • Hazard ratio

The direction of the hypothesis depends on how the treatment effect is defined.

Always define the effect measure first. A margin such as 0.10 has very different meaning on a risk-difference scale than on a relative-risk or odds-ratio scale.

Hazard Ratios and Time-to-Event Endpoints

For time-to-event outcomes, the treatment effect may be expressed as a hazard ratio:

\[ HR=\frac{\lambda_T}{\lambda_C} \]

When lower hazard is better, a non-inferiority trial might define:

\[ H_0:HR\ge\Delta_{HR} \qquad\text{vs.}\qquad H_A:HR<\Delta_{HR} \]

For example, a margin of:

\[ \Delta_{HR}=1.25 \]

would mean that hazard ratios at or above 1.25 are considered unacceptably inferior under this particular definition.

For time-to-event trials, sample size is often expressed in terms of the required number of events first, followed by the number of patients needed to generate those events.

Event-Based Sample Size

A useful conceptual distinction is:

1
Determine the required number of events based on the non-inferiority margin, alpha, power, and assumed hazard ratio.
2
Determine the total number of patients required to produce those events.
3
Account for follow-up, accrual, censoring, and dropout when converting events into a randomized sample size.

This is one reason that a simple two-group continuous-endpoint formula should not be applied indiscriminately to time-to-event non-inferiority trials.

Allocation Ratio

The examples above assume equal allocation:

\[ n_T=n_C \]

Equal allocation is often statistically efficient when the two groups have similar costs and variances.

However, non-equal allocation can be useful when:

  • The control treatment is scarce or expensive.
  • The experimental treatment is easier to recruit.
  • Safety information requires more exposure to one treatment.
  • There are ethical or operational reasons for unequal allocation.

Unequal allocation changes the variance and therefore changes the required sample size.

Sample Size With Unequal Allocation

For a continuous endpoint with allocation ratio:

\[ k=\frac{n_T}{n_C} \]

the variance of the treatment difference becomes:

\[ \operatorname{Var}(\bar X_T-\bar X_C) = \frac{\sigma_T^2}{n_T} + \frac{\sigma_C^2}{n_C} \]

The design should therefore solve for the treatment and control group sizes simultaneously rather than simply multiplying an equal-allocation result.

Dropout Inflation

Dropout is particularly important in non-inferiority trials because missing data can affect both the precision of the treatment-effect estimate and the interpretation of the trial.

If the required evaluable sample size is \(N_E\) and the anticipated dropout proportion is \(d\), then:

\[ N_R=\frac{N_E}{1-d} \]

where \(N_R\) is the number to randomize.

For example, with 15% anticipated dropout:

\[ N_R=\frac{N_E}{0.85} \]

The result should always be rounded upward.

Why Dropout Is Especially Important in Non-Inferiority Trials

In a superiority trial, missing outcomes can sometimes make the treatment groups appear more similar simply because information is lost.

In a non-inferiority trial, this can be particularly problematic because similarity between treatments is part of the desired conclusion.

Consequently, a high dropout rate can make it easier to observe apparent similarity while simultaneously weakening the evidence needed to establish non-inferiority.

Important: "Failure to show superiority" is not the same as "demonstration of non-inferiority." A non-inferiority trial requires sufficient precision to exclude an unacceptable loss.

Assay Sensitivity

A non-inferiority trial generally depends on the active control having the ability to demonstrate its expected effect under the conditions of the trial. This is often described as assay sensitivity.

If the active control performs poorly because of changes in population, adherence, endpoint assessment, treatment implementation, or other factors, the experimental treatment and control may appear similar even when both are less effective than expected.

This creates an important distinction:

1
The experimental treatment is genuinely close to the active control.
2
Both treatments perform poorly and therefore look similar.
3
The study is unable to distinguish these situations adequately.

This is one reason non-inferiority design requires more than simply selecting a sample size formula.

Preserving the Control Effect

The non-inferiority margin should generally be connected to the historical effect of the active control.

Conceptually, suppose historical evidence indicates that the control has an effect of \(M_1\) relative to placebo. The non-inferiority margin should preserve a clinically justified fraction of that effect.

For example, if the historical control effect is 10 units and investigators wish to preserve at least 50%:

\[ \Delta\le5 \]

The precise derivation depends on the endpoint, estimand, historical evidence, and regulatory framework.

Analysis Population Considerations

Non-inferiority trials commonly place substantial emphasis on both:

  • The intention-to-treat population
  • The per-protocol population

This is related to the concern that deviations from treatment, nonadherence, and protocol violations can make treatments appear artificially similar.

The exact analysis strategy should be prespecified.

Do not design the trial around one population and then make the non-inferiority conclusion using an entirely different post hoc population. The primary estimand, analysis population, handling of intercurrent events, and missing-data strategy should be aligned from the beginning.

Non-Inferiority Margin vs. Effect Size

It is useful to distinguish three quantities:

Quantity Meaning
\(\Delta\) Largest clinically acceptable loss
\(\delta_A\) Expected true treatment difference
\(\delta_A+\Delta\) Distance between expected effect and NI boundary for the higher-is-better continuous scale

The sample size depends strongly on the third quantity.

For example:

\[ \delta_A=0,\quad \Delta=5 \]

gives an effect distance of 5.

But:

\[ \delta_A=-3,\quad \Delta=5 \]

gives:

\[ \delta_A+\Delta=2 \]

and therefore a much larger sample size.

Effect of Power

Increasing power increases sample size because the study must have greater ability to distinguish the assumed alternative from the non-inferiority boundary.

For the continuous endpoint:

\[ n \propto (z_{1-\alpha}+z_{1-\beta})^2 \]

For example, moving from 80% to 90% power increases \(z_{1-\beta}\) from approximately 0.842 to 1.282.

Power \(z_{1-\beta}\)
80% 0.842
85% 1.036
90% 1.282
95% 1.645

Effect of Alpha

Reducing alpha makes the statistical criterion more stringent and generally increases the required sample size.

For one-sided tests:

One-Sided Alpha Critical Value
0.05 1.645
0.025 1.960
0.01 2.326

This is one reason confirmatory non-inferiority trials often require substantial sample sizes.

Effect of Variability

For a continuous endpoint:

\[ n\propto\sigma^2 \]

Therefore, if the standard deviation doubles, the required sample size increases by approximately a factor of four, assuming all other parameters remain fixed.

This makes a reliable estimate of the standard deviation especially important during planning.

Sample Size Sensitivity Analysis

A robust sample size section should not rely on one optimistic assumption. Investigators should evaluate the effect of changing:

  • Expected treatment effect
  • Non-inferiority margin
  • Standard deviation
  • Control event rate
  • Power
  • Alpha
  • Dropout rate
  • Allocation ratio

For example, a continuous-endpoint sensitivity analysis might look like:

Scenario Margin SD Power Approx. N / Group
Base case 5 10 90% 172
Higher variability 5 11 90% 208
Narrower margin 4 10 90% 268
Higher power 5 10 95% 220

These values are illustrative and demonstrate the direction of sensitivity; the final design should use the exact calculation method specified in the protocol.

R Implementation: Continuous Endpoint

The basic continuous-endpoint calculation can be implemented directly in R.

alpha <- 0.025
power <- 0.90

sigma <- 10
delta <- 0
margin <- 5

z_alpha <- qnorm(1 - alpha)
z_beta  <- qnorm(power)

n_per_group <-
  2 * sigma^2 *
  (z_alpha + z_beta)^2 /
  (delta + margin)^2

ceiling(n_per_group)

The result is:

# 172

Inflating the R Calculation for Dropout

dropout <- 0.10

n_randomized_per_group <-
  ceiling(
    n_per_group / (1 - dropout)
  )

n_randomized_per_group

This gives:

# 192

Thus the planned randomized sample size is:

\[ 192+192=384 \]

A Reusable R Function

ni_sample_size_continuous <- function(
  sigma,
  delta,
  margin,
  alpha = 0.025,
  power = 0.90,
  dropout = 0
) {

  z_alpha <- qnorm(1 - alpha)
  z_beta  <- qnorm(power)

  n_evaluable <-
    2 * sigma^2 *
    (z_alpha + z_beta)^2 /
    (delta + margin)^2

  n_randomized <-
    ceiling(
      n_evaluable / (1 - dropout)
    )

  list(
    evaluable_per_group =
      ceiling(n_evaluable),
    evaluable_total =
      2 * ceiling(n_evaluable),
    randomized_total =
      2 * n_randomized
  )
}

ni_sample_size_continuous(
  sigma = 10,
  delta = 0,
  margin = 5,
  alpha = 0.025,
  power = 0.90,
  dropout = 0.10
)

Checking the Assumptions

The sample size is only as reliable as its planning assumptions. For a continuous endpoint, investigators should examine whether:

  • The assumed standard deviation is realistic.
  • The expected treatment difference is clinically plausible.
  • The endpoint has approximately the assumed distribution.
  • The allocation ratio is correct.
  • The dropout assumption is realistic.
  • The non-inferiority margin is clinically justified.

Historical studies, pilot data, previous trials, and blinded sample-size re-estimation strategies may be relevant depending on the protocol.

Sample Size Re-Estimation

In some settings, the assumed variance may be uncertain. A blinded sample-size review can sometimes be considered to evaluate whether the observed variability is consistent with the planning assumption.

Any such procedure must be designed carefully so that it does not compromise the trial's type I error or introduce operational bias.

Do not simply change the sample size because the interim treatment difference looks unfavorable. Sample-size re-estimation and treatment-effect-driven adaptation are different concepts and have different statistical implications.

What Happens If the Expected Effect Is Negative?

Suppose the experimental treatment is expected to be slightly worse than the control, with:

\[ \delta_A=-2 \]

and:

\[ \Delta=5 \]

The distance from the non-inferiority boundary is:

\[ -2+5=3 \]

The sample size therefore increases relative to the scenario where the expected treatment difference is 0.

This is an important planning principle: the closer the anticipated treatment effect is to the margin, the larger the sample size becomes.

What If the Experimental Treatment Is Expected to Be Better?

Suppose:

\[ \delta_A=2 \]

with the same margin:

\[ \Delta=5 \]

Then:

\[ \delta_A+\Delta=7 \]

The expected effect is farther from the non-inferiority boundary, so fewer patients are required for the same alpha and power under the simple normal-theory calculation.

Non-Inferiority Is Not Equivalence

These concepts are closely related but not identical.

Design Objective
Superiority Show the experimental treatment is better
Non-inferiority Show the experimental treatment is not unacceptably worse
Equivalence Show the treatment difference lies within two prespecified margins

For equivalence, the hypotheses are typically:

\[ H_0:\delta\le-\Delta \quad\text{or}\quad \delta\ge\Delta \]

versus:

\[ H_A:-\Delta<\delta<\Delta \]

Equivalence therefore requires ruling out both clinically meaningful benefit and clinically meaningful harm.

Non-Inferiority Does Not Mean "No Difference"

This is one of the most important concepts in the entire topic.

Suppose the 95% confidence interval for the treatment difference is:

\[ (-3,\;2) \]

and the non-inferiority margin is:

\[ -\Delta=-5 \]

Because:

\[ -3>-5 \]

the confidence interval does not include the unacceptable inferiority region. Non-inferiority can therefore be demonstrated even though the confidence interval includes zero.

Key distinction: A treatment can be non-inferior without being statistically superior. The trial is asking whether unacceptable inferiority can be ruled out, not whether the treatments are identical.

Common Sample Size Mistakes

  1. Using a superiority formula without changing the hypothesis. Non-inferiority calculations must incorporate the non-inferiority margin.
  2. Choosing the margin after calculating sample size. The margin should be clinically justified before the statistical calculation.
  3. Using two-sided alpha automatically. The planned one-sided type I error must be clearly specified.
  4. Confusing the margin with the expected treatment effect. They are separate design quantities.
  5. Ignoring the direction of the endpoint. The sign of the treatment effect and margin depends on how the endpoint is defined.
  6. Ignoring dropout. The number required for analysis is not necessarily the number that must be randomized.
  7. Using a simple Wald formula for every binary endpoint. More appropriate score-based or exact methods may be needed.
  8. Ignoring the control event-rate assumption. Binary endpoint sample size can change substantially when the expected event rates change.
  9. Assuming non-inferiority is equivalent to no significant difference. Failure to reject superiority does not establish non-inferiority.
  10. Failing to consider assay sensitivity. Poor performance of the active control can undermine the interpretation.

A Practical Sample Size Workflow

1
Define the primary endpoint and its direction.
2
Define the treatment effect measure: mean difference, risk difference, risk ratio, odds ratio, hazard ratio, or another prespecified measure.
3
Justify the non-inferiority margin clinically.
4
Specify the expected treatment effect.
5
Specify the one-sided type I error.
6
Specify the desired power.
7
Specify the allocation ratio.
8
Estimate the variance, event rate, or other information parameter needed by the chosen sample-size method.
9
Calculate the required evaluable sample size.
10
Inflate for dropout, missing data, or other expected losses.
11
Perform sensitivity analyses over plausible assumptions.
12
Document the final assumptions and statistical method in the protocol and statistical analysis plan.

What Should Be Reported in the Protocol?

A reproducible non-inferiority sample size section should include:

  • Primary endpoint
  • Definition and direction of the treatment effect
  • Non-inferiority margin
  • Clinical justification for the margin
  • Expected treatment effect
  • Control mean, standard deviation, or event rate as applicable
  • One-sided type I error
  • Target power
  • Allocation ratio
  • Statistical method used for the sample size calculation
  • Expected dropout or non-evaluable rate
  • Required evaluable sample size
  • Number to randomize
  • Any inflation for interim analyses or other design features
  • Sensitivity analyses

Worked Example Summary

Component Continuous Example
Endpoint Continuous
Expected treatment difference 0 units
Standard deviation 10 units
Non-inferiority margin 5 units
One-sided alpha 0.025
Power 90%
Allocation 1:1
Evaluable N per group 172
Evaluable total N 344
Dropout assumption 10%
Randomized N per group 192
Randomized total N 384

The Most Important Concept

The most important idea in non-inferiority sample size planning is that the trial is designed around the distance between the expected treatment effect and the non-inferiority boundary.

For the continuous endpoint:

\[ n = \frac{ 2\sigma^2 (z_{1-\alpha}+z_{1-\beta})^2 }{ (\delta_A+\Delta)^2 } \]

Every major design parameter has an intuitive interpretation:

  • Larger variability → larger sample size.
  • Smaller non-inferiority margin → larger sample size.
  • Expected effect closer to the margin → larger sample size.
  • Higher power → larger sample size.
  • Smaller alpha → larger sample size.
  • More dropout → more patients randomized.
Bottom line: A non-inferiority sample size calculation is not simply a modified superiority calculation. It begins with a clinically justified non-inferiority margin, defines the expected treatment effect relative to that margin, specifies a one-sided type I error and target power, and then determines how much information is required to rule out an unacceptable loss. For continuous endpoints, a normal-theory formula provides a useful foundation. For binary and time-to-event endpoints, the statistical scale and analysis method matter substantially, and specialized methods may be required. Finally, the calculated evaluable sample size must be translated into a realistic randomized sample size after accounting for dropout and other sources of missing information.

References

ICH E9. Statistical Principles for Clinical Trials. International Council for Harmonisation.

ICH E9(R1). Addendum on Estimands and Sensitivity Analysis in Clinical Trials. International Council for Harmonisation.

ICH E10. Choice of Control Group and Related Issues in Clinical Trials. International Council for Harmonisation.

Piaggio, G., Elbourne, D.R., Altman, D.G., Pocock, S.J. & Evans, S.J.W. (2006). Reporting of noninferiority and equivalence randomized trials: extension of the CONSORT statement. JAMA, 295(10), 1152–1160.

Schuirmann, D.J. (1987). A comparison of the two one-sided tests procedure and the power approach for assessing the equivalence of average bioavailability. Journal of Pharmacokinetics and Biopharmaceutics, 15, 657–680.

Blackwelder, W.C. (1982). Proving the null hypothesis in clinical trials. Controlled Clinical Trials, 3(4), 345–353.

Farrington, C.P. & Manning, G. (1990). Test statistics and sample size formulae for comparative binomial trials with null hypothesis of non-zero risk difference. Statistics in Medicine, 9(12), 1447–1454.