average.power.fisher: Compute average power of many Fisher's exact tests In FDRsamplesize2: Computing Power and Sample Size for the False Discovery Rate in Multiple Applications

 average.power.fisher 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

`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")
``````

FDRsamplesize2 documentation built on May 29, 2024, 7:12 a.m.