power.fisher.test

0th

Percentile

Power of Fisher's Exact Test for Comparing Proportions

Calculate by simulation the power of Fisher's exact test for comparing two proportions given two margin counts.

Keywords
htest
Usage
power.fisher.test(p1, p2, n1, n2, alpha=0.05, nsim=100)
Arguments
p1
first proportion to be compared
p2
second proportion to be compared
n1
first sample size
n2
second sample size
alpha
significance level
nsim
number of simulated data sets
Details

Computes the power of Fisher's exact test for testing the null hypothesis that p1 equals p2 against the alternative that they are not equal.

Value

  • Estimated power of the test

See Also

fisher.test, power.t.test

Aliases
  • power.fisher.test
Examples
power.fisher.test(0.5,0.9,20,20) # 70% chance of detecting difference
Documentation reproduced from package statmod, version 1.2.0, License: LGPL version 2 or newer

Community examples

Looks like there are no examples yet.