Performs unconditional exact tests and power calculations for 2x2 contingency tables. For comparing two independent proportions, performs Barnard's test (1945) <doi:10.1038/156177a0> using the original CSM test (Barnard, 1947 <doi:10.1093/biomet/34.12.123>), using Fisher's pvalue referred to as Boschloo's test (1970) <doi:10.1111/j.14679574.1970.tb00104.x>, or using a Zstatistic (Suissa and Shuster, 1985, <doi:10.2307/2981892>). For comparing two binary proportions, performs unconditional exact test using McNemar's Zstatistic (Berger and Sidik, 2003, <doi:10.1191/0962280203sm312ra>), using McNemar's conditional pvalue, using McNemar's Zstatistic with continuity correction, or using CSM test. Calculates confidence intervals for the difference in proportion. This package interacts with precomputed data available through the ExactData R package, which is available in a 'drat' repository. Install the ExactData R package from GitHub at <https://pcalhoun1.github.io/drat/>. The ExactData R package is approximately 85 MB.
Package details 


Author  Peter Calhoun [aut, cre] 
Maintainer  Peter Calhoun <calhoun.peter@gmail.com> 
License  GPL2 
Version  3.2 
Package repository  View on CRAN 
Installation 
Install the latest version of this package by entering the following in R:

Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.