size.ci.etasqr: Sample size for an eta-squared confidence interval

View source: R/statpsych1.R

size.ci.etasqrR Documentation

Sample size for an eta-squared confidence interval

Description

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.

For more details, see Section 3.24 of Bonett (2021, Volume 1)

Usage

size.ci.etasqr(alpha, etasqr, groups, w)

Arguments

alpha

alpha level for 1-alpha confidence

etasqr

planning value of eta-squared

groups

number of groups

w

desired confidence interval width

Value

Returns the required sample size for each group

References

\insertRef

Bonett2021statpsych

Examples

size.ci.etasqr(.05, .2, 3, .15)

# Should return:
# Sample size per group 
#                   103
 


statpsych documentation built on Jan. 13, 2026, 1:07 a.m.