Learn R Programming

pwr2 (version 1.0)

pwr.1way:

Description

Calculate power for one-way ANOVA models.

Usage

pwr.1way(k=k, n=n, alpha=alpha, f=NULL, delta=delta, sigma=sigma)

Arguments

k
Number of groups
n
Sample size per group
f
Effect size
alpha
Significant level (Type I error probability)
delta
The smallest difference among k groups
sigma
Standard deviation, i.e. square root of variance

Value

Object of class "power.htest", a list of the arguments (including the computed one) augmented with "method" and "note" elements.

Details

If effect size f is known, plug it in to the function; If delta and sigma are known instead of effect size, put NULL to f.

References

Angela Dean & Daniel Voss (1999). Design and Analysis of Experiments. Springer.

Examples

Run this code
## Example 1
pwr.1way(k=5, n=15, alpha=0.05, delta=1.5, sigma=1)
pwr.1way(k=5, n=15, f=NULL, alpha=0.05, delta=1.5, sigma=1)

## Example 2
pwr.1way(k=5, n=15, f=0.4, alpha=0.05)

Run the code above in your browser using DataLab