Sample Size for One-Way ANOVA

Sample size planning for one-way ANOVA asks how many observations per treatment are needed to achieve a target power for detecting a specified pattern of treatment means.

In balanced designs, the required sample size depends on the number of groups, the significance level, the desired power, and the ANOVA effect size $f$.

R

library(pwr)
pwr.anova.test(k = k, n = NULL, f = f,
               sig.level = 0.05, power = 0.80)