Computes the sample size required to estimate an eta-squared coefficient in a one-way ANOVA with desired confidence interval precision. Set the planning value of eta-squared to about 1/3 for a conservatively large sample size.
size.ci.etasqr(alpha, etasqr, groups, w)
alpha level for 1-alpha confidence
planning value of eta-squared
number of groups
desired confidence interval width
Returns the required sample size for each group
size.ci.etasqr(.05, .333, 3, .2)
#> Sample size per group
#> 63
# Should return:
# Sample size per group
# 63