Learn R Programming

statpsych (version 1.7.0)

size.ci.etasqr: 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.

Usage

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

Value

Returns the required sample size for each group

Arguments

alpha

alpha level for 1-alpha confidence

etasqr

planning value of eta-squared

groups

number of groups

w

desired confidence interval width

Examples

Run this code
size.ci.etasqr(.05, .333, 3, .2)

# Should return:
# Sample size per group 
#                    63
 

Run the code above in your browser using DataLab