indicates the alternative hypothesis and must be one of "two.sided", "greater" or "less".
Author
Gordon Smyth
Details
Estimates the power of Fisher's exact test for testing the null hypothesis that p1 equals p2 against the alternative that they are not equal.
The power is estimated by simulation.
The function generates nsim pairs of binomial deviates and calls fisher.test to obtain nsim p-values.
The required power is tnen the proportion of the simulated p-values that are less than alpha.