average.power.oneway {FDRsamplesize2}R Documentation

Compute average power of many one-way ANOVA tests

Description

Compute average power of many one-way ANOVA tests

Usage

average.power.oneway(n, alpha, theta, k)

Arguments

n

per-group sample size (scalar)

alpha

p-value threshold (scalar)

theta

sum of ((group mean - overall mean)/stdev)^2 across all groups for each hypothesis test(vector)

k

the number of groups to be compared

Value

Average power estimate for multiple testing procedure

See Also

power.oneway for more details about power calculation of one-way ANOVA

Examples

theta=rep(c(2,0),c(100,900));
average.power.oneway(n = 50, alpha = 0.05, theta = theta, k = 2)

[Package FDRsamplesize2 version 0.2.0 Index]