Learn R Programming

FDRsamplesize2 (version 0.2.0)

average.power.oneway: 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)

Value

Average power estimate for multiple testing procedure

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

See Also

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

Examples

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

Run the code above in your browser using DataLab