Introduction
Many clinical trials are designed to determine whether a new treatment is better than a comparator. An equivalence trial asks a fundamentally different question: Is the difference between the two treatments sufficiently small that they can be regarded as clinically equivalent?
This distinction has major consequences for sample-size planning. In a superiority trial, the investigator typically wants enough patients to detect a clinically important difference. In an equivalence trial, the investigator wants enough patients to demonstrate that the treatment difference lies inside a prespecified interval of clinically acceptable differences.
Superiority, Non-Inferiority, and Equivalence
It is important to distinguish three common objectives.
| Trial Objective | Basic Question |
|---|---|
| Superiority | Is the treatment better than the comparator? |
| Non-inferiority | Is the treatment not unacceptably worse than the comparator? |
| Equivalence | Is the treatment difference small enough in either direction to be clinically acceptable? |
For equivalence, both directions matter. A treatment that is substantially better than the comparator may fall outside the equivalence region just as a treatment that is substantially worse may do so.
Therefore, equivalence requires evidence that the treatment difference is neither too negative nor too positive.
The Equivalence Margin
The central quantity in an equivalence trial is the equivalence margin. Let the treatment effect be defined as:
where:
- \(\mu_T\) is the mean outcome under the test treatment.
- \(\mu_C\) is the mean outcome under the comparator.
- \(\Delta\) is the treatment difference.
Suppose the clinically acceptable difference is at most \(M\) in either direction. The equivalence region is then:
The value \(M\) is the equivalence margin.
The Equivalence Hypotheses
For a symmetric equivalence margin, the null hypothesis is:
The alternative hypothesis is:
This is fundamentally different from a conventional two-sided superiority test. For superiority, the null hypothesis is usually:
For equivalence, the null hypothesis represents non-equivalence.
The Two One-Sided Tests Procedure
The standard framework for testing equivalence is the two one-sided tests procedure, commonly abbreviated TOST. The two hypotheses are:
and:
Equivalence is concluded only when both one-sided null hypotheses are rejected.
The Confidence-Interval Interpretation
TOST has a particularly useful confidence-interval interpretation. For an overall type I error of \(\alpha=0.05\), equivalence is established when the corresponding 90% confidence interval for the treatment difference lies entirely inside the equivalence interval.
where \(L\) and \(U\) are the lower and upper confidence limits.
| Confidence Interval | Conclusion |
|---|---|
| Entirely inside \((-M,M)\) | Equivalence demonstrated |
| Crosses \(-M\) | Equivalence not demonstrated |
| Crosses \(M\) | Equivalence not demonstrated |
| Extends beyond both margins | Equivalence not demonstrated |
Why Equivalence Trials Can Require Large Samples
The central challenge is that demonstrating equivalence requires precision. Suppose the true treatment difference is actually zero. If the sample is small, the estimated difference may have a wide confidence interval:
If the equivalence margin is:
then the confidence interval extends outside the equivalence region even though the observed difference may be close to zero.
A larger sample reduces the standard error and narrows the confidence interval.
Therefore: equivalence trials are often precision-driven rather than effect-driven.
Key Inputs for Sample Size Calculation
For a continuous endpoint, the sample-size calculation typically requires:
- Equivalence margin \(M\)
- Expected treatment difference \(\Delta\)
- Standard deviation \(\sigma\)
- Type I error \(\alpha\)
- Desired power \(1-\beta\)
- Allocation ratio between treatment groups
- Expected dropout or non-evaluable rate
These quantities determine how precisely the treatment difference can be estimated.
Symmetric vs. Asymmetric Equivalence Margins
The simplest situation uses symmetric margins:
However, the acceptable difference need not be symmetric. Suppose the clinically acceptable limits are \(M_L\) and \(M_U\). Then the equivalence region becomes:
For example, an investigator might tolerate a slightly larger difference in one direction than the other.
| Margin Type | Equivalence Region |
|---|---|
| Symmetric | \(-M<\Delta |
| Asymmetric | \(-M_L<\Delta |
The sample-size calculation must reflect the actual margins used in the statistical analysis.
Continuous Endpoint Sample Size
Consider a parallel-group trial comparing two treatments using a continuous endpoint. Assume:
- Equal sample sizes in the two groups
- Common standard deviation \(\sigma\)
- Expected true difference \(\Delta\)
- Symmetric equivalence margin \(M\)
For planning purposes, a commonly used large-sample approximation for the required sample size per group is:
This formula assumes the expected treatment difference lies inside the equivalence region.
When the Expected Difference Is Zero
The most straightforward planning assumption is:
The sample-size formula simplifies to:
This is one of the most useful formulas for understanding equivalence-study sample size.
The sample size increases with the square of the standard deviation and decreases with the square of the equivalence margin.
What Does the Equivalence Margin Do to Sample Size?
Suppose everything else remains constant. If the margin is cut in half:
then the required sample size increases by approximately:
Therefore, halving the equivalence margin can approximately quadruple the sample size.
| Equivalence Margin | Relative Sample Size |
|---|---|
| \(M\) | 1.00 |
| \(0.75M\) | Approximately 1.78 |
| \(0.50M\) | Approximately 4.00 |
| \(0.25M\) | Approximately 16.00 |
What Does Variability Do to Sample Size?
Because the sample-size formula contains \(\sigma^2\), variability has a quadratic effect.
If the standard deviation increases by 20%, the sample size increases by approximately:
or 44%.
This is why reliable estimates of variability are important during trial planning. Potential sources include:
- Previous clinical trials
- Pilot studies
- Published studies
- Historical control data
- Relevant external datasets
What Does Power Do to Sample Size?
Higher power requires a larger sample. For example:
| Power | \(z_{1-\beta}\) | Relative Effect |
|---|---|---|
| 80% | 1.282 | Reference |
| 90% | 1.282?* | Larger than 80% |
| 95% | 1.645 | Still larger |
More precisely, the standard normal quantiles commonly used are:
| Power | \(z_{1-\beta}\) |
|---|---|
| 80% | 1.282 |
| 85% | 1.440 |
| 90% | 1.645 |
| 95% | 1.960 |
The higher the desired power, the more patients are needed to obtain the required precision.
Type I Error in Equivalence Trials
Suppose the overall significance level is:
The two one-sided tests are generally conducted at the same one-sided level:
The corresponding equivalence confidence interval is therefore:
Thus, a 5% TOST framework corresponds to a 90% confidence interval for equivalence.
A Complete Worked Example
Suppose a randomized, parallel-group equivalence trial compares a new treatment with an established comparator. The primary endpoint is a continuous measurement for which lower and higher values have the same clinical interpretation around the target difference. The investigator defines an equivalence margin of:
meaning that treatment differences between \(-5\) and \(+5\) are considered clinically acceptable.
The planning assumptions are:
| Parameter | Planning Value |
|---|---|
| Equivalence margin \(M\) | 5 units |
| Expected treatment difference \(\Delta\) | 0 units |
| Standard deviation \(\sigma\) | 10 units |
| One-sided TOST \(\alpha\) | 0.05 |
| Target power | 90% |
| Allocation | 1:1 |
| Expected dropout | 10% |
Step 1: Define the Equivalence Region
The equivalence margin is:
Therefore, the equivalence region is:
The null hypothesis represents non-equivalence:
The alternative is:
Step 2: Specify the Expected Difference
For planning purposes, assume the true treatment difference is:
The expected difference is therefore centered in the equivalence region.
Step 3: Specify the Standard Deviation
Suppose previous data suggest:
Thus:
Step 4: Specify Type I Error and Power
Use:
and:
Therefore:
The corresponding standard normal quantiles are approximately:
and:
Step 5: Apply the Sample-Size Formula
Because \(\Delta=0\), use:
Substituting the planning values:
First calculate the sum of the normal quantiles:
Then square it:
Therefore:
which gives approximately:
Because the sample size must be an integer, round upward:
Step 6: Inflate for Dropout
Suppose the investigator anticipates a 10% dropout or non-evaluable rate. The retained fraction is:
The inflation formula is:
where \(d\) is the anticipated dropout proportion. Thus:
Round upward:
Therefore the total randomized sample size becomes:
Step 7: Interpret the Result
The calculation does not mean that the treatment difference must be exactly zero. Instead, the design is powered to demonstrate that the treatment difference can be estimated precisely enough that the relevant confidence interval is likely to fit inside:
If the observed treatment difference is close to zero and the sample is large enough to provide adequate precision, the confidence interval may fall completely within the equivalence margins.
If the confidence interval extends beyond either margin, equivalence is not demonstrated.
Visualizing the Equivalence Decision
Suppose the equivalence margins are:
Consider several hypothetical 90% confidence intervals.
| 90% CI | Conclusion |
|---|---|
| \([-3.0,3.2]\) | Equivalence demonstrated |
| \([-4.7,4.8]\) | Equivalence demonstrated |
| \([-5.2,3.1]\) | Equivalence not demonstrated |
| \([-2.0,5.4]\) | Equivalence not demonstrated |
| \([-7.0,6.5]\) | Equivalence not demonstrated |
Why "No Significant Difference" Is Not Equivalence
This is one of the most common misunderstandings in equivalence studies. Suppose a conventional superiority test produces:
An investigator might incorrectly conclude: "The treatments are equivalent because there is no significant difference."
That conclusion is not justified. A nonsignificant result can occur because the study is too small to distinguish the treatments.
For example, a very wide confidence interval such as:
may contain zero but clearly does not establish that the treatment difference is within a clinically acceptable interval of \([-5,5]\).
Equivalence asks: "Can we estimate the difference precisely enough to rule out clinically important differences in either direction?"
Sample Size When the Expected Difference Is Not Zero
The expected treatment difference may not be exactly zero. Suppose:
while the equivalence margin remains:
The distance from the expected difference to the nearer boundary is:
The approximate sample-size formula becomes:
Compared with the zero-difference case, the denominator has decreased from \(5^2\) to \(3^2\). Therefore, substantially more patients are required.
Effect of the Expected Difference
| Expected Difference | Distance to Nearest Margin | Relative Difficulty |
|---|---|---|
| \(\Delta=0\) | \(M\) | Lowest sample size |
| \(\Delta=1\) | \(M-1\) | Higher |
| \(\Delta=2\) | \(M-2\) | Higher |
| \(\Delta=4\) | \(M-4\) | Much higher |
| \(\Delta\rightarrow M\) | \(\rightarrow0\) | Extremely difficult |
Unequal Allocation
The simplest formula assumes a 1:1 allocation ratio. Suppose the ratio of test to control patients is:
Unequal allocation generally reduces statistical efficiency compared with equal allocation when the per-patient variance is similar in the two groups. For a fixed total sample size, balanced allocation typically provides the smallest variance of the treatment-difference estimator.
Dropout Inflation
Dropout should be incorporated after determining the required number of evaluable patients. If:
then:
The resulting number should be rounded upward.
| Dropout Rate | Inflation Factor |
|---|---|
| 5% | 1.053 |
| 10% | 1.111 |
| 15% | 1.176 |
| 20% | 1.250 |
| 25% | 1.333 |
For example, if 100 evaluable patients are required and dropout is expected to be 20%:
Therefore, approximately 125 patients should be randomized.
Dropout Is Not Always the Same as Missingness
The sample-size inflation assumption should correspond to the actual analysis population and endpoint. For example, an investigator may need to distinguish:
- Permanent treatment discontinuation
- Loss to follow-up
- Missing endpoint measurements
- Protocol deviations
- Patients excluded from the primary analysis
The statistical analysis plan should clearly define how these situations are handled.
Sample Size for Binary Equivalence Endpoints
Equivalence trials can also use binary endpoints. Examples include:
- Clinical success rate
- Response rate
- Cure rate
- Event-free proportion
- Proportion achieving a predefined target
For a binary endpoint, the treatment effect may be expressed as a risk difference:
or using another effect measure such as a risk ratio or odds ratio.
For a risk-difference equivalence assessment, the equivalence region might be:
The sample-size calculation is more complicated than the continuous-endpoint case because the variance depends on the underlying event probabilities.
Approximate Variance for a Risk Difference
For independent groups, the variance of the estimated risk difference can be approximated by:
Under equal allocation:
so:
A normal-approximation sample-size calculation can then be constructed using the relevant equivalence margins and assumed event rates.
Ratio-Scale Endpoints
Many clinical endpoints are naturally analyzed on a ratio scale. Examples include:
- Pharmacokinetic exposure
- AUC
- Cmax
- Geometric mean ratios
- Log-transformed laboratory measures
Suppose the treatment effect is expressed as a ratio:
Equivalence might be defined by:
For ratio-scale endpoints, calculations are often performed on the logarithmic scale.
The equivalence limits become:
This converts a ratio-equivalence problem into a difference problem on the log scale.
Why Log Transformation Is Useful
Suppose the equivalence range is:
The corresponding log-scale limits are:
Because:
and:
the ratio-equivalence problem becomes approximately symmetric on the logarithmic scale.
Equivalence vs. Non-Inferiority Sample Size
The two designs are related but not identical. A non-inferiority trial generally has one critical direction. For example:
An equivalence trial requires both:
and:
Thus, equivalence requires adequate precision on both sides of the equivalence region.
| Feature | Non-Inferiority | Equivalence |
|---|---|---|
| Number of margins | Usually one | Two |
| Direction of concern | One direction | Both directions |
| Typical CI interpretation | One boundary must be excluded | Entire CI must fit inside both boundaries |
| TOST | No | Yes |
Sample Size and the Width of the Confidence Interval
A useful conceptual approximation is:
Therefore, quadrupling the sample size approximately halves the standard error.
This explains why relatively large studies may be necessary when the equivalence margin is narrow.
What Happens If the Margin Is Too Wide?
A very wide margin makes equivalence statistically easy to demonstrate. For example, suppose the true difference is zero and the margin is:
It may require relatively few patients to show that the confidence interval fits inside \([-20,20]\).
But statistical ease does not make the margin clinically appropriate.
What Happens If the Margin Is Too Narrow?
The opposite problem can occur when the margin is extremely narrow. Suppose:
while the standard deviation remains:
The sample-size requirement can become very large because the study must estimate the treatment difference with extremely high precision.
The investigator should therefore ask whether the proposed margin is both:
- Clinically meaningful
- Statistically feasible
Power as a Function of the True Difference
Equivalence power is not necessarily the same for every true treatment difference inside the equivalence region. If the true difference is exactly zero, it is centrally located. If the true difference is close to one of the equivalence boundaries, the study has less statistical distance to that boundary.
For example, with:
the most favorable location is often near:
while power decreases as the true difference approaches either boundary.
Sample Size Sensitivity Analysis
A robust sample-size assessment should examine how the required sample changes under different assumptions. For example:
| Scenario | Margin | SD | Power | Expected Impact |
|---|---|---|---|---|
| Base case | 5 | 10 | 90% | Reference |
| Narrower margin | 4 | 10 | 90% | Much larger N |
| Higher variability | 5 | 12 | 90% | Higher N |
| Higher power | 5 | 10 | 95% | Higher N |
| Lower power | 5 | 10 | 80% | Lower N |
This type of sensitivity analysis can reveal which planning assumptions dominate the study size.
R Implementation for the Worked Example
The approximate continuous-endpoint calculation can be implemented directly in R.
alpha <- 0.05 power <- 0.90 sigma <- 10 margin <- 5 delta <- 0 z_alpha <- qnorm(1 - alpha) z_beta <- qnorm(power) n_per_group <- 2 * sigma^2 * (z_alpha + z_beta)^2 / (margin - abs(delta))^2 ceiling(n_per_group)
The resulting sample size is approximately:
# 69
Thus approximately 69 evaluable patients are required per group.
Inflating the Sample Size for Dropout in R
dropout <- 0.10 n_randomized_per_group <- ceiling(n_per_group / (1 - dropout)) n_randomized_total <- 2 * n_randomized_per_group n_randomized_per_group n_randomized_total
The result is:
# 77 patients per group # 154 patients total
Writing a Reusable R Function
A reusable function makes it easier to perform sensitivity analyses.
equiv_n <- function(
margin,
sigma,
delta = 0,
alpha = 0.05,
power = 0.90,
dropout = 0
) {
effective_margin <-
margin - abs(delta)
if (effective_margin <= 0) {
stop(
"Expected difference must lie inside the equivalence region."
)
}
z_alpha <- qnorm(1 - alpha)
z_beta <- qnorm(power)
n_evaluable <-
2 * sigma^2 *
(z_alpha + z_beta)^2 /
effective_margin^2
n_randomized <-
ceiling(
n_evaluable / (1 - dropout)
)
list(
n_evaluable_per_group =
ceiling(n_evaluable),
n_randomized_per_group =
n_randomized,
n_randomized_total =
2 * n_randomized
)
}
For the worked example:
equiv_n( margin = 5, sigma = 10, delta = 0, alpha = 0.05, power = 0.90, dropout = 0.10 )
This returns approximately:
$n_evaluable_per_group # 69 $n_randomized_per_group # 77 $n_randomized_total # 154
Performing a Margin Sensitivity Analysis
The effect of the equivalence margin can be examined by evaluating several candidate margins.
margins <- c(3, 4, 5, 6, 7)
sample_sizes <- sapply(
margins,
function(m) {
ceiling(
2 * sigma^2 *
(qnorm(1 - alpha) + qnorm(power))^2 /
m^2
)
}
)
data.frame(
margin = margins,
n_per_group = sample_sizes
)
This produces a simple sensitivity table showing how dramatically the required sample can change as the margin changes.
Evaluating Different Power Levels
powers <- c(0.80, 0.85, 0.90, 0.95)
sample_sizes <- sapply(
powers,
function(pow) {
ceiling(
2 * sigma^2 *
(
qnorm(1 - alpha) +
qnorm(pow)
)^2 /
margin^2
)
}
)
data.frame(
power = powers,
n_per_group = sample_sizes
)
This allows the design team to see the cost of increasing the target power.
Evaluating Different Standard Deviations
sds <- c(8, 9, 10, 11, 12)
sample_sizes <- sapply(
sds,
function(s) {
ceiling(
2 * s^2 *
(
qnorm(1 - alpha) +
qnorm(power)
)^2 /
margin^2
)
}
)
data.frame(
standard_deviation = sds,
n_per_group = sample_sizes
)
This is particularly useful when historical studies provide a range rather than a single reliable estimate of variability.
Exact vs. Approximate Sample Size Calculations
The formula presented for the continuous endpoint is an approximate normal-theory calculation. For many planning situations, this is a useful starting point. However, exact sample-size calculations may account for:
- Finite-sample t distributions
- Unknown variance
- Unequal variances
- Unequal allocation
- Non-normal endpoints
- Binary outcomes
- Ratio-scale outcomes
- Specific analysis models
When the final analysis uses a particular statistical model, the sample-size calculation should be aligned with that analysis.
Repeated Measures and Covariate Adjustment
Some equivalence trials analyze repeated measurements or adjust for baseline covariates. Covariate adjustment can improve precision when the covariate explains a substantial proportion of outcome variability.
For example, if an ANCOVA model reduces the residual variance relative to an unadjusted analysis, the required sample size may decrease.
However, this should not be assumed automatically. The planning calculation should reflect the anticipated residual variability under the prespecified analysis.
Clustered or Multicenter Designs
If participants are clustered within centers or other units, observations may not be independent. The effective sample size can be reduced by within-cluster correlation. A design effect may be approximated by:
where:
- \(m\) is the average cluster size.
- \(\rho\) is the intracluster correlation coefficient.
A rough inflation is then:
The appropriate approach depends on the actual analysis model and trial structure.
Equivalence Margin Selection
The most important non-statistical decision in an equivalence study is often the choice of the margin. A defensible process should consider:
- Clinical relevance
- Historical treatment effects
- Measurement variability
- Patient perspective
- Risk-benefit considerations
- Regulatory expectations
- The intended interpretation of the endpoint
The margin should be established before the study begins.
Preserving the Comparator Effect
In some equivalence settings, the scientific justification for the margin depends on historical evidence concerning the comparator. This is particularly important when the goal is to establish that a new treatment retains clinically important properties of an established treatment.
The equivalence margin should therefore be justified in relation to the clinical effect that would be considered acceptable to lose.
Sample Size and Study Credibility
A study can be statistically valid but clinically unconvincing if its equivalence margin is poorly justified. Conversely, a clinically reasonable margin may require a large sample.
This creates an important design tradeoff:
Common Sample-Size Mistakes
- Using a superiority sample-size formula. Equivalence has a different hypothesis structure and requires an equivalence margin.
- Defining equivalence as "p > 0.05." A nonsignificant superiority test does not establish equivalence.
- Choosing the margin for convenience. The equivalence margin should be clinically justified.
- Using the wrong confidence level. A 5% TOST framework corresponds to a 90% two-sided confidence interval.
- Ignoring the expected treatment difference. If the expected difference is close to an equivalence boundary, the required sample size can increase substantially.
- Underestimating variability. Because sample size is proportional to \(\sigma^2\), modest changes in variability can materially affect the required N.
- Forgetting dropout inflation. The calculated number of evaluable patients is not necessarily the number that should be randomized.
- Ignoring the analysis scale. Ratio-based endpoints often require calculations on the log scale.
- Using a continuous-endpoint formula for a binary endpoint. Binary endpoints require their own variance and effect-measure assumptions.
- Failing to match the sample-size calculation to the primary analysis. The design, estimand, endpoint, and analysis model should be internally consistent.
A Practical Equivalence Trial Workflow
What Should Be Reported in the Protocol?
The sample-size section should allow another statistician to reproduce the calculation. At minimum, document:
- Primary endpoint
- Effect measure
- Equivalence margins
- Clinical rationale for the margins
- Expected treatment difference
- Standard deviation or event-rate assumptions
- Type I error
- Target power
- Allocation ratio
- Required evaluable sample size
- Expected dropout rate
- Final randomized sample size
- Sample-size calculation method
- Software used
- Relevant assumptions
Worked Example Summary
| Component | Value |
|---|---|
| Design | Two-arm parallel equivalence trial |
| Endpoint | Continuous |
| Equivalence margin | ±5 units |
| Expected difference | 0 units |
| Standard deviation | 10 units |
| TOST one-sided \(\alpha\) | 0.05 |
| Corresponding CI | 90% |
| Target power | 90% |
| Allocation | 1:1 |
| Evaluable N per group | 69 |
| Expected dropout | 10% |
| Randomized N per group | 77 |
| Total randomized N | 154 |
The Most Important Concept
The most important idea in equivalence-trial sample-size planning is that the study must be precise enough to rule out clinically important differences.
The calculation therefore depends heavily on the relationship between:
- The equivalence margin
- The expected treatment difference
- The variability of the endpoint
- The desired power
- The sample size
For a continuous endpoint with a symmetric margin and expected difference of zero, the central relationship is:
This immediately shows why:
- Higher variability requires more patients.
- Higher power requires more patients.
- A narrower equivalence margin requires substantially more patients.
- A treatment difference closer to an equivalence boundary requires more patients.
- Dropout requires additional randomized patients.
References
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.
Westlake, W.J. (1976).
Symmetrical confidence intervals for bioequivalence trials.
Biometrics, 32, 741–744.
Chow, S.-C., Shao, J. & Wang, H.
Sample Size Calculations in Clinical Research.
Chapman & Hall/CRC.
Chow, S.-C. & Liu, J.-P.
Design and Analysis of Bioavailability and Bioequivalence Studies.
Marcel Dekker.
Blackwelder, W.C. (1982).
Proving the null hypothesis in clinical trials.
Controlled Clinical Trials, 3, 345–353.
Diletti, E., Hauschke, D. & Steinijans, V.W. (1991).
Sample size determination for bioequivalence assessment by means of
confidence intervals.
International Journal of Clinical Pharmacology, Therapy and Toxicology.
Hauschke, D., Pigeot, I. & Tamhane, A.C.
Statistical Principles for Clinical Trials.
Wiley.