average.power.fisher {FDRsamplesize2}R Documentation

Compute average power of many Fisher's exact tests

Description

Compute average power of many Fisher's exact tests

Usage

average.power.fisher(p1, p2, n, alpha, alternative)

Arguments

p1

probability in one group (vector)

p2

probability in other group (vector)

n

per-group sample size

alpha

p-value threshold

alternative

one- or two-sided test

Value

Average power estimate for multiple testing procedure

See Also

power.fisher for more details about power calculation of Fisher's exact test

Examples

set.seed(1234);
p1 = sample(seq(0,0.5,0.1),5,replace = TRUE);
p2 = sample(seq(0.5,1,0.1),5,replace = TRUE);
average.power.fisher(p1 = p1,p2 = p2,n = 20,alpha = 0.05,alternative = "two.sided")

[Package FDRsamplesize2 version 0.2.0 Index]