Tutorials › Biostatistics › ANOVA for Comparing Multiple Treatment Groups

Biostatistics & Clinical Trial Analysis

ANOVA for Comparing Multiple Treatment Groups

A practical guide to one-way analysis of variance for comparing mean outcomes across three or more treatment groups, including the ANOVA decomposition, the F statistic, assumptions, a complete clinical-trial worked example, post hoc comparisons, effect sizes, and implementation in R and SAS.

Advanced 18 min read

What You'll Learn

  • Why ANOVA is used when more than two treatment means are compared
  • How total, between-group, and within-group variation are decomposed
  • How the F statistic and p-value answer the global null hypothesis
  • How to assess normality, homogeneity of variance, and independence
  • How to perform post hoc comparisons after a significant omnibus test
  • How to implement and report ANOVA in R and SAS

Introduction

Suppose a clinical trial compares several treatment groups on a continuous endpoint such as change from baseline in a laboratory measurement, pain score, biomarker concentration, or another approximately continuous outcome.

If there are only two groups, a two-sample comparison can often be framed as a t test. With three or more groups, however, performing a separate unadjusted t test for every pair of treatments inflates the probability of at least one false-positive finding.

One-way analysis of variance (ANOVA) provides a single omnibus test of whether the treatment-group means are all equal. If the omnibus test is significant, appropriately adjusted follow-up comparisons can then identify which groups differ.

Key idea: ANOVA does not ask whether every treatment mean is different from every other mean. It first asks one global question: is there evidence that at least one population mean differs from the others?

The Clinical Trial Setting

Consider a parallel-group randomized trial with three treatment arms: placebo, Treatment A, and Treatment B. Let \(Y_{ij}\) denote the continuous outcome for patient \(j\) in treatment group \(i\).

A basic one-way ANOVA model can be written as:

\[ Y_{ij}=\mu+\tau_i+\varepsilon_{ij}, \]

where \(\mu\) is the overall mean, \(\tau_i\) is the treatment effect for group \(i\), and \(\varepsilon_{ij}\) is the residual error.

For the classical one-way ANOVA, the residuals are assumed to be independent, normally distributed with mean zero, and to have a common variance \(\sigma^2\).

The Hypotheses

With \(k\) treatment groups and population means \(\mu_1,\mu_2,\ldots,\mu_k\), the global null hypothesis is:

\[ H_0:\mu_1=\mu_2=\cdots=\mu_k. \]

The alternative is:

\[ H_A:\text{at least one population mean differs}. \]

The alternative does not specify which means differ. That question is addressed only after a significant omnibus test, using planned contrasts or multiplicity-adjusted pairwise comparisons as appropriate.

Important: A significant ANOVA p-value means that the data provide evidence against equal treatment means. It does not by itself tell you which treatment is superior, which pairs differ, or whether a statistically significant difference is clinically important.

Why Not Run Several t Tests?

Suppose there are three treatment groups. There are three pairwise comparisons: A versus placebo, B versus placebo, and A versus B. If each comparison is tested at the 5% level without adjustment, the overall probability of making at least one type I error can exceed 5%.

For \(k\) groups, the number of pairwise comparisons is:

\[ \binom{k}{2}=\frac{k(k-1)}{2}. \]
Number of Groups Pairwise Comparisons
21
33
46
510
615

ANOVA solves the first problem by testing the global hypothesis with one omnibus F test. If follow-up comparisons are needed, multiplicity control can be incorporated into the post hoc procedure or the analysis plan.

The Core Idea: Decompose the Variation

ANOVA works by separating the observed variability in the outcome into components attributable to differences between treatment-group means and variability within treatment groups.

The total variation around the grand mean is:

\[ SS_{\mathrm{Total}} = \sum_{i=1}^{k}\sum_{j=1}^{n_i} \left(Y_{ij}-\bar Y_{\cdot\cdot}\right)^2. \]

The between-group component is:

\[ SS_{\mathrm{Between}} = \sum_{i=1}^{k} n_i\left(\bar Y_{i\cdot}-\bar Y_{\cdot\cdot}\right)^2. \]

The within-group component is:

\[ SS_{\mathrm{Within}} = \sum_{i=1}^{k}\sum_{j=1}^{n_i} \left(Y_{ij}-\bar Y_{i\cdot}\right)^2. \]

These components satisfy the fundamental ANOVA identity:

\[ SS_{\mathrm{Total}} = SS_{\mathrm{Between}} + SS_{\mathrm{Within}}. \]
Intuition: If treatment means are far apart relative to the ordinary variation among patients within each treatment, the between-group variation will be large relative to the within-group variation. That produces a larger F statistic.

An Interactive View of the ANOVA Decomposition

The relationship between treatment means, within-group variation, and the F statistic is easiest to see by moving observations and watching the decomposition change.

genui{"learning_viz":{"type_id":"ANOVA_DECOMPOSITION","initial_values":{"groupA1":32,"groupA2":36,"groupA3":38,"groupA4":40,"groupA5":43,"groupA6":45,"groupB1":44,"groupB2":47,"groupB3":49,"groupB4":51,"groupB5":53,"groupB6":56,"groupC1":55,"groupC2":58,"groupC3":60,"groupC4":62,"groupC5":65,"groupC6":66}}}

Mean Squares

Sums of squares depend on sample size. ANOVA therefore divides each variation component by its corresponding degrees of freedom.

For \(k\) groups and total sample size \(N\):

\[ df_{\mathrm{Between}}=k-1 \qquad\text{and}\qquad df_{\mathrm{Within}}=N-k. \]

The mean squares are:

\[ MS_{\mathrm{Between}} = \frac{SS_{\mathrm{Between}}}{k-1}, \]
\[ MS_{\mathrm{Within}} = \frac{SS_{\mathrm{Within}}}{N-k}. \]

The within-group mean square is the classical pooled estimate of the residual variance under the equal-variance model.

The F Statistic

The ANOVA test statistic is:

\[ F= \frac{MS_{\mathrm{Between}}} {MS_{\mathrm{Within}}}. \]

Under the null hypothesis and the classical ANOVA assumptions, the statistic follows an F distribution with \(k-1\) and \(N-k\) degrees of freedom.

\[ F\sim F_{k-1,N-k} \qquad\text{under }H_0. \]

A large F statistic indicates that the variation among treatment means is large relative to the residual variation within treatment groups.

ANOVA Table

The standard ANOVA table summarizes the decomposition:

Source Sum of Squares df Mean Square F p-value
Between groups \(SS_B\) \(k-1\) \(MS_B\) \(MS_B/MS_W\) Omnibus test
Within groups (Error) \(SS_W\) \(N-k\) \(MS_W\)
Total \(SS_T\) \(N-1\)

A Complete Worked Example

Suppose a randomized clinical trial compares three treatment groups on change from baseline in a continuous biomarker after 12 weeks. Positive values indicate a larger reduction in the clinically relevant direction. Assume, for illustration, that all 18 patients have complete observations.

Placebo Treatment A Treatment B
257
368
469
5710
388
489

Each treatment group has \(n_i=6\), giving \(N=18\). The group means are:

Group n Mean Interpretation
Placebo63.50Reference group
Treatment A66.67Higher mean response
Treatment B68.50Highest mean response

Step 1: Calculate the Grand Mean

The grand mean is the mean of all 18 observations:

\[ \bar Y_{\cdot\cdot} = \frac{\sum_{i=1}^{3}\sum_{j=1}^{6}Y_{ij}}{18} = 6.22. \]

The grand mean is the reference point for the between-group and total sums of squares.

Step 2: Calculate the Between-Group Sum of Squares

Using the three group means:

\[ SS_B = 6(3.50-6.22)^2 + 6(6.67-6.22)^2 + 6(8.50-6.22)^2. \]

This gives approximately:

\[ SS_B\approx40.78. \]

Step 3: Calculate the Within-Group Sum of Squares

For each treatment, calculate the squared deviations of individual observations from that treatment's mean. Summing those deviations across all three groups gives:

\[ SS_W\approx39.67. \]

Therefore:

\[ SS_T=SS_B+SS_W \approx40.78+39.67 =80.44. \]

Step 4: Calculate Degrees of Freedom

There are \(k=3\) groups and \(N=18\) observations.

\[ df_B=k-1=2, \qquad df_W=N-k=15. \]

The total degrees of freedom are:

\[ df_T=N-1=17. \]

Step 5: Calculate Mean Squares

\[ MS_B=\frac{40.78}{2}\approx20.39 \]
\[ MS_W=\frac{39.67}{15}\approx2.64. \]

Step 6: Calculate the F Statistic

\[ F= \frac{20.39}{2.64} \approx7.71. \]

The resulting ANOVA table is approximately:

Source SS df MS F
Treatment40.78220.397.71
Error39.67152.64
Total80.4417

The corresponding omnibus p-value is approximately \(p=0.005\), indicating evidence that the three population means are not all equal.

Interpretation: The significant omnibus ANOVA tells us that at least one treatment mean differs from another. It does not establish that Treatment B differs from Treatment A, or that either active treatment differs from placebo. Those are separate questions.

Step 7: What Happens After a Significant ANOVA?

Once the omnibus test rejects \(H_0\), the next step depends on the scientific question and the multiplicity strategy specified in the protocol or analysis plan.

Common approaches include:

  • Tukey's honestly significant difference procedure: useful for all pairwise comparisons while controlling the family-wise error rate.
  • Dunnett's procedure: particularly useful when each active treatment is compared with a common placebo or control.
  • Bonferroni or Holm adjustment: general-purpose multiplicity procedures that can be applied to a prespecified family of comparisons.
  • Planned contrasts: useful when the scientific hypotheses are defined before examining the data.
Clinical-trial point: If the primary question is whether each active treatment beats placebo, a control-focused procedure such as Dunnett's may be more appropriate than performing every possible pairwise comparison.

ANOVA Is an Omnibus Test

The distinction between an omnibus test and individual comparisons is central. For three treatments, the null hypothesis:

\[ H_0:\mu_P=\mu_A=\mu_B \]

can be rejected even when only one pair differs substantially. ANOVA does not identify the source of the difference.

For example, if:

\[ \mu_P=3.5,\qquad\mu_A=6.7,\qquad\mu_B=6.8, \]

the overall test may be highly significant even though A and B are nearly identical. Conversely, two active treatments can have meaningfully different means even if the omnibus test is not sufficiently powerful in a small study.

Assumption 1: Independence

Independence is primarily a design assumption rather than something that can be repaired by a normality test.

For a parallel-group randomized trial, independence is often reasonable when each patient contributes one independent observation and there is no meaningful clustering.

Independence may fail when observations come from:

  • Repeated measurements from the same patient
  • Patients nested within sites or centers
  • Households or other clusters
  • Matched or paired observations
  • Longitudinal measurements with serial correlation

In these settings, a simple one-way ANOVA may not be the appropriate model. Repeated-measures ANOVA, mixed-effects models, generalized estimating equations, or other methods may be more suitable depending on the design.

Assumption 2: Normality of Residuals

Classical ANOVA assumes normally distributed residuals within groups. Importantly, the relevant assumption concerns the residuals, not whether every observed variable is perfectly normal.

With moderate or large samples, ANOVA can be reasonably robust to modest departures from normality, particularly when group sizes are balanced. Severe skewness, extreme outliers, or very small samples require more care.

Useful diagnostics include:

  • Residual histograms
  • Normal Q-Q plots
  • Residual-versus-fitted plots
  • Clinical inspection of extreme observations
Do not rely on one normality p-value. A formal normality test can be overly sensitive in large samples and underpowered in small samples. Graphical diagnostics and knowledge of the endpoint should be considered alongside formal tests.

Assumption 3: Homogeneity of Variance

The classical one-way ANOVA assumes that the treatment groups have a common residual variance:

\[ \sigma_1^2=\sigma_2^2=\cdots=\sigma_k^2. \]

This assumption matters particularly when group sizes are unequal. Large differences in variances combined with unequal sample sizes can distort the classical F test.

Useful diagnostics include residual-versus-fitted plots and comparisons of within-group variability. Levene-type tests can also be used, although they should not replace graphical and substantive assessment.

What If Variances Are Unequal?

If the equal-variance assumption is questionable, Welch's one-way ANOVA is often a better choice than simply abandoning the analysis. Welch's method modifies the test to allow group-specific variances.

A nonparametric alternative is the Kruskal-Wallis test, which tests for distributional differences using ranks. However, it should not automatically be described as a direct test of equal means.

Situation Potential Approach
Approximately normal, similar variancesClassical one-way ANOVA
Unequal variancesWelch ANOVA
Strongly non-normal / ordinal outcomeKruskal-Wallis or another appropriate model
Repeated measurementsRepeated-measures or mixed-effects model
Covariate adjustment neededANCOVA / linear model

Effect Size: Statistical Significance Is Not Enough

An ANOVA p-value addresses evidence against the global null hypothesis. It does not quantify how large the overall treatment effect is.

One common effect-size measure is eta-squared:

\[ \eta^2= \frac{SS_B}{SS_T}. \]

For the worked example:

\[ \eta^2 = \frac{40.78}{80.44} \approx0.507. \]

Thus, about 50.7% of the observed total sum of squares is attributable to between-treatment differences in this illustrative dataset.

Another commonly reported measure is partial eta-squared, especially in more general linear-model settings:

\[ \eta_p^2 = \frac{SS_{\mathrm{Effect}}} {SS_{\mathrm{Effect}}+SS_{\mathrm{Error}}}. \]

For a simple one-way ANOVA with one treatment factor, eta-squared and partial eta-squared coincide algebraically because the treatment effect and error terms exhaust the relevant decomposition.

Clinical interpretation: Effect size should be considered alongside confidence intervals, the actual estimated treatment differences, endpoint variability, and the prespecified minimal clinically important difference. A small p-value does not automatically mean the treatment difference is clinically meaningful.

Confidence Intervals for Treatment Differences

After the omnibus test, confidence intervals for prespecified treatment contrasts are often more informative than reporting only a p-value.

For example, a placebo-adjusted treatment contrast can be written as:

\[ \Delta_A=\mu_A-\mu_P. \]

A confidence interval provides a range of plausible values for that contrast. If the interval excludes zero, the corresponding two-sided comparison is statistically significant at the matching confidence level, subject to the multiplicity procedure used.

In a clinical trial, the interval also helps answer a more useful question: how large could the treatment benefit reasonably be, and how large could it reasonably fail to be?

Planned Contrasts

ANOVA does not require all comparisons to be discovered after the data are seen. If scientific hypotheses are known in advance, contrasts can be specified before unblinding.

For three groups, a placebo-versus-average-active contrast might be:

\[ L_1 = -\mu_P+\frac{1}{2}\mu_A+\frac{1}{2}\mu_B. \]

A direct active-treatment comparison is:

\[ L_2=\mu_A-\mu_B. \]

The coefficients of a contrast sum to zero. Prespecified contrasts can provide greater interpretability and efficiency than testing every possible pair.

ANOVA and the General Linear Model

One-way ANOVA is a special case of the general linear model. Instead of thinking of ANOVA as a separate collection of formulas, it is often useful to view the treatment factor as a categorical predictor in a linear model.

With placebo as the reference group:

\[ Y_j = \beta_0 + \beta_1 I(\text{Treatment A}) + \beta_2 I(\text{Treatment B}) + \varepsilon_j. \]

Here, \(\beta_1\) represents the mean difference between Treatment A and placebo, while \(\beta_2\) represents the mean difference between Treatment B and placebo.

This perspective becomes particularly important in clinical trials because covariate adjustment, baseline adjustment, interactions, and other model extensions can be handled within the same linear-model framework.

ANOVA Versus ANCOVA

If a continuous baseline measurement or another prognostic covariate should be adjusted for, a simple one-way ANOVA may be replaced by an ANCOVA model.

A typical ANCOVA structure is:

\[ Y_i = \beta_0 + \beta_1\text{Treatment}_i + \beta_2\text{Baseline}_i + \varepsilon_i. \]

The treatment comparison is then made after accounting for the prespecified covariate. In many randomized clinical trials, covariate-adjusted analyses can increase precision when the covariate is strongly prognostic.

Practical rule: Use one-way ANOVA when the scientific question is simply to compare group means without additional model structure. If baseline adjustment or other covariates are prespecified, formulate the analysis as a general linear model or ANCOVA rather than forcing the problem into a basic ANOVA table.

R Implementation

In R, a one-way ANOVA can be fitted with aov(). For the worked example:

y <- c(
  2, 3, 4, 5, 3, 4,
  5, 6, 6, 7, 8, 8,
  7, 8, 9, 10, 8, 9
)

trt <- factor(rep(
  c("Placebo", "Treatment A", "Treatment B"),
  each = 6
))

dat <- data.frame(y, trt)

fit <- aov(y ~ trt, data = dat)

summary(fit)

The summary() output provides the treatment sum of squares, residual sum of squares, degrees of freedom, F statistic, and omnibus p-value.

Extracting Group Means in R

aggregate(
  y ~ trt,
  data = dat,
  FUN = mean
)

For clinical reporting, you would usually also calculate standard deviations, sample sizes, confidence intervals, and treatment contrasts rather than reporting only the raw ANOVA table.

Checking Residuals in R

par(mfrow = c(2, 2))
plot(fit)

The standard diagnostic plots can help identify non-normal residual behavior, outliers, heteroscedasticity, and other model problems.

Tukey Pairwise Comparisons in R

TukeyHSD(fit)

Tukey's procedure is useful when the scientific goal is to examine all pairwise treatment differences while controlling the family-wise error rate.

Welch ANOVA in R

When equal variances are questionable, R can perform a Welch-style one-way test using:

oneway.test(
  y ~ trt,
  data = dat,
  var.equal = FALSE
)

This should be accompanied by appropriate follow-up comparisons that also account for unequal variances rather than mixing incompatible procedures.

SAS Implementation

In SAS, PROC GLM provides a standard implementation of one-way ANOVA and can also perform multiple-comparison procedures.

proc glm data=trial;
    class treatment;
    model change = treatment;
    means treatment / hovtest=levene tukey;
run;
quit;

The CLASS statement identifies treatment as a categorical factor. The MODEL statement specifies the outcome and treatment effect, while the MEANS statement requests group comparisons and a variance-homogeneity assessment.

SAS with Dunnett Comparisons

When the primary clinical question is whether each active treatment differs from placebo, Dunnett's adjustment is often more directly aligned with the scientific objective:

proc glm data=trial;
    class treatment;
    model change = treatment;
    lsmeans treatment / pdiff=control('Placebo')
                         adjust=dunnett;
run;
quit;

In a real analysis, the exact syntax and reference category should match the coding of the treatment variable and the prespecified statistical analysis plan.

What a Clinical Trial Report Should Show

A complete presentation should generally include more than the statement "ANOVA was significant."

Component What to Report
Descriptive statisticsn, mean, SD, and appropriate summaries by treatment
Omnibus testF statistic, degrees of freedom, and p-value
Follow-up comparisonsPrespecified contrasts or adjusted pairwise comparisons
Effect estimatesTreatment differences with confidence intervals
MultiplicityMethod and family of hypotheses controlled
AssumptionsRelevant residual and variance diagnostics
Clinical relevanceInterpretation relative to the clinically meaningful effect

A Practical Reporting Example

A concise results statement might read:

Example: The mean change from baseline differed among treatment groups (\(F_{2,15}=7.71\), \(p\approx0.005\)). Prespecified multiplicity-adjusted comparisons were subsequently performed to determine which treatment groups differed. Estimated treatment differences and corresponding confidence intervals were reported for the clinically relevant contrasts.

The exact wording should be adapted to the study's prespecified estimand, analysis population, multiplicity strategy, and reporting conventions.

Common Mistakes

  1. Running many unadjusted t tests. Testing every pair at the nominal 5% level can inflate the family-wise type I error rate.
  2. Interpreting a significant omnibus test as proof that every group differs. ANOVA establishes only that the means are not all equal.
  3. Ignoring multiplicity after ANOVA. Post hoc comparisons require an appropriate multiplicity strategy.
  4. Checking only the outcome distribution. Model assumptions concern the residuals and the variance structure.
  5. Ignoring unequal variances. Classical ANOVA can be problematic when variances differ substantially, especially with unequal group sizes.
  6. Using ANOVA for repeated measurements. Repeated observations from the same patient are not independent.
  7. Reporting only a p-value. Treatment differences, confidence intervals, and clinically meaningful effect sizes are often more informative.
  8. Choosing the post hoc method after looking at the results. The comparison strategy should be driven by the scientific question and prespecified analysis plan.
  9. Confusing statistical significance with clinical importance. A very small p-value can occur for a small effect in a sufficiently large study.
  10. Forcing a simple ANOVA onto a more complex design. Covariates, repeated measurements, clustering, stratification, and interactions may require a general linear model or mixed-effects model.

ANOVA Decision Workflow

1
Define the endpoint. Confirm that a comparison of means for a continuous outcome is scientifically appropriate.
2
Define the treatment factor. Identify the groups and the target population means.
3
Specify the global hypothesis. Test whether all treatment means are equal.
4
Fit the appropriate model. Use one-way ANOVA when the design supports the classical model.
5
Assess residual behavior. Examine normality, outliers, and variance structure.
6
Perform the omnibus F test. Evaluate the evidence against equal treatment means.
7
Perform follow-up comparisons when justified. Use planned contrasts or an appropriate multiplicity-adjusted procedure.
8
Estimate treatment differences. Report contrasts, confidence intervals, and effect sizes.
9
Interpret clinically. Compare the magnitude and uncertainty of effects with the clinical decision threshold.
10
Document the analysis. State the model, assumptions, multiplicity method, analysis population, and reporting rules.

When ANOVA Is the Right Tool

Question / Design Typical Method
One continuous endpoint, 3+ independent groupsOne-way ANOVA
Independent groups with unequal variancesWelch ANOVA
Three+ groups with a categorical endpointChi-square / logistic methods, depending on design
Repeated continuous measurementsMixed-effects / repeated-measures methods
Continuous outcome adjusted for baselineANCOVA / linear model
Clustered continuous outcomesMixed-effects or other clustered-data methods
Ordinal or strongly non-normal outcomeRank-based or other appropriate methods

ANOVA and Multiple Treatment Arms in Clinical Trials

The classical one-way ANOVA framework is most natural when treatment is the main explanatory factor and observations are independent. Modern clinical trials often require additional structure.

Examples include:

  • Baseline covariate adjustment
  • Stratification factors
  • Repeated assessments over time
  • Site effects or clustering
  • Treatment-by-subgroup interactions
  • Missing outcome data
  • Estimand-specific intercurrent-event strategies

In such settings, the one-way ANOVA is best understood as the simplest member of the broader linear-model family rather than as a standalone method that must be used unchanged.

ANOVA and Missing Data

The simple formulas above assume a complete dataset. Clinical trials frequently have missing endpoint observations, withdrawals, and intercurrent events.

A complete-case ANOVA can be biased when missingness is informative or when the analysis population changes the estimand. Missing-data handling therefore needs to be aligned with the estimand and prespecified statistical analysis strategy.

For longitudinal or covariate-adjusted endpoints, mixed models or multiple imputation may be more appropriate than simply excluding patients with missing observations.

Important: Do not treat "ANOVA" as a complete missing-data strategy. The model for the outcome and the strategy for missing observations are separate components of the statistical analysis.

Power and Sample Size for ANOVA

The sample size for a one-way ANOVA depends on the number of treatment groups, the allocation across groups, the significance level, the desired power, and the magnitude of the treatment differences.

A common effect-size parameter is Cohen's \(f\):

\[ f = \sqrt{ \frac{\sum_{i=1}^{k}w_i(\mu_i-\mu)^2} {\sigma^2} }, \]

where \(w_i\) represents the allocation proportion for group \(i\), \(\mu\) is the weighted overall mean, and \(\sigma^2\) is the common within-group variance under the planning model.

Power calculations should be based on clinically plausible mean differences and variability rather than an arbitrary effect size chosen only to produce a convenient sample size.

Why the F Test Can Be Powerful

The F statistic compares signal to noise:

\[ F= \frac{\text{between-group variation per degree of freedom}} {\text{within-group variation per degree of freedom}}. \]

If treatment means are widely separated and individual patient variability is small, the numerator becomes large relative to the denominator. If treatment means are close together relative to patient-to-patient variation, the F statistic tends to be small.

This is why both the treatment effect and endpoint precision matter for power.

Balanced Versus Unbalanced Designs

ANOVA can accommodate unequal sample sizes, but balanced designs are often statistically and operationally attractive.

Feature Balanced Groups Unequal Groups
Sample sizeSimilar in each armDifferent across arms
EfficiencyOften efficient for a fixed total NCan be less efficient
Variance robustnessOften more robustMore sensitive to variance differences
Operational planningSimple allocationMay reflect control/treatment allocation goals

A clinically motivated unequal allocation can still be entirely appropriate. The key is to incorporate the planned allocation into the sample-size and power calculations.

The Most Important Distinction

The most important conceptual distinction is between the omnibus question and the specific treatment questions.

The omnibus ANOVA asks:

\[ H_0:\mu_1=\mu_2=\cdots=\mu_k. \]

A follow-up comparison asks something more specific, such as:

\[ H_0:\mu_A-\mu_P=0. \]

These are different hypotheses and should be treated as different parts of the analysis strategy.

Bottom line: One-way ANOVA provides a principled global test for differences among three or more treatment means. It decomposes variability into between-group and within-group components, forms an F statistic from their mean squares, and provides an omnibus p-value. A significant result should be followed by scientifically appropriate, multiplicity-controlled comparisons and by estimation of treatment differences with confidence intervals. In clinical trials, the simple ANOVA framework is often extended to ANCOVA or other general linear or mixed-effects models when baseline covariates, repeated measurements, clustering, or other design features require them.

References

Montgomery, D.C. Design and Analysis of Experiments. Wiley.
Kutner, M.H., Nachtsheim, C.J., Neter, J. & Li, W. Applied Linear Statistical Models. McGraw-Hill.
Maxwell, S.E., Delaney, H.D. & Kelley, K. Designing Experiments and Analyzing Data: A Model Comparison Perspective. Routledge.
SAS Institute Inc. SAS/STAT User's Guide: The GLM Procedure.
R Core Team. R: A Language and Environment for Statistical Computing.

Clinical Trials

See ANOVA in real clinical trials

See the method applied to published trial results, with the estimates, confidence intervals and interpretation explained.

ACCELERATE
Complete statistical analysis of ACCELERATE (NCT01687998), a randomized phase 3 study of evacetrapib versus placebo in high-risk vascular disease, including trial design,…
Phase 3 · n = 12,092
DISCOVER
Independent statistical analysis of the DISCOVER phase 3 trial evaluating F/TAF versus F/TDF for HIV-1 pre-exposure prophylaxis, including non-inferiority testing, rate-ratio analysis,…
Phase 3 · n = 5,399
GS-US-292-0109
Independent statistical analysis of GS-US-292-0109 (NCT01815736), a randomized phase 3 trial evaluating switching from a TDF-containing regimen to E/C/F/TAF in virologically suppressed…
Phase 3 · n = 1,443
LUME-Lung 1
Complete statistical analysis of LUME-Lung 1, the phase 3 randomized trial of BIBF 1120 plus docetaxel versus placebo plus docetaxel in second-line…
Phase 3 · n = 1,314
LUME-Lung 2
Independent statistical analysis of LUME-Lung 2, a randomized phase 3 trial of nintedanib plus pemetrexed versus placebo plus pemetrexed in second-line nonsquamous…
Phase 3 · n = 718
Ad26.COV2.S
Independent statistical analysis of the phase 3 Ad26.COV2.S trial in healthy adults for COVID-19 prevention, including randomized design, influenza and SARS-CoV-2 immunogenicity…
Phase 3 · n = 861
See all 7 trials using ANOVA →