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.1-2.123>),
  using Fisher's p-value referred to as Boschloo's test (1970) <doi:10.1111/j.1467-9574.1970.tb00104.x>,
  or using a Z-statistic (Suissa and Shuster, 1985, <doi:10.2307/2981892>).
  For comparing two binary proportions, performs unconditional exact test using McNemar's
  Z-statistic (Berger and Sidik, 2003, <doi:10.1191/0962280203sm312ra>),
  using McNemar's conditional p-value, using McNemar's Z-statistic with continuity correction,
  or using CSM test.  Calculates confidence intervals for the difference in proportion.
  This package interacts with pre-computed 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.

Allows the user to determine minimum sample sizes that achieve target size and power at a specified alternative. For more information, see “Exact samples sizes for clinical trials subject to size and power constraints” by Lloyd, C.J. (2022) Preprint <doi:10.13140/RG.2.2.11828.94085>.

Calculates conditional exact tests (Fisher's exact test, Blaker's exact test, or  exact McNemar's test) and unconditional exact tests (including score-based tests on differences in proportions, ratios of proportions, and odds ratios, and Boshcloo's test) with appropriate matching confidence intervals, and provides power and sample size calculations. Gives melded confidence intervals for the binomial case (Fay, et al, 2015, <DOI:10.1111/biom.12231>). Gives boundary-optimized rejection region test (Gabriel, et al, 2018, <DOI:10.1002/sim.7579>), an unconditional exact test for the situation where the controls are all expected to fail. Gives confidence intervals compatible with exact McNemar's or sign tests (Fay and Lumbard, 2021, <DOI:10.1002/sim.8829>). For review of these kinds of exact tests see Fay and Hunsberger (2021, <DOI:10.1214/21-SS131>).