Learn R Programming

FDRsamplesize2 (version 0.2.0)

power.fisher: Compute power for Fisher's exact test

Description

Compute power for Fisher's exact test

Usage

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

Value

Power estimate for one- or two-sided tests

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"

Examples

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

Run the code above in your browser using DataLab