pwr.1way {pwr2}R Documentation

Power calculation for balanced one-way ANOVA models

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

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.

Value

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

Author(s)

Pengcheng Lu, Junhao Liu, and Devin Koestler.

References

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

Examples

## 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)

[Package pwr2 version 1.0 Index]