power.fisher {FDRsamplesize2}R Documentation

Compute power for Fisher's exact test

Description

Compute power for Fisher's exact test

Usage

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

Arguments

p1

probability in one group (scalar)

p2

probability in other group (scalar)

n

per-group sample size (scalar)

alpha

p-value threshold (scalar)

alternative

one- or two-sided test, must be one of "greater", "less", or "two.sided"

Value

Power estimate for one- or two-sided tests

Examples

power.fisher(p1 = 0.5, p2 = 0.9, n=20, alpha = 0.05, alternative = 'two.sided')

[Package FDRsamplesize2 version 0.2.0 Index]