Skip to content

Exact

Unconditional Exact Test

v3.3 · Jul 20, 2024 · GPL-2

Description

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.

Downloads

46K

Last 30 days

538th

127.7K

Last 90 days

520.3K

Last year

Trend: +7.9% (30d vs prior 30d)

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (3 non-OK)
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘ExactData’
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘ExactData’
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'ExactData'

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘ExactData’
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘ExactData’
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'ExactData'

Reverse Dependencies (4)

imports

suggests

Dependency Network

Dependencies Reverse dependencies rootSolve DescTools bbssr exact2x2 kyotil Exact

Version History

new 3.3 Mar 10, 2026
updated 3.3 ← 3.2 diff Jul 20, 2024
updated 3.2 ← 3.1 diff Sep 25, 2022
updated 3.1 ← 3.0 diff Nov 25, 2021
updated 3.0 ← 2.1 diff Sep 1, 2021
updated 2.1 ← 2.0 diff Oct 2, 2020
updated 2.0 ← 1.7 diff Oct 13, 2019
updated 1.7 ← 1.6 diff Oct 21, 2016
updated 1.6 ← 1.5 diff May 25, 2015
updated 1.5 ← 1.4 diff Mar 27, 2015
updated 1.4 ← 1.3 diff Jul 21, 2013
updated 1.2 ← 1.1 diff Feb 22, 2013
updated 1.3 ← 1.2 diff Feb 22, 2013
updated 1.1 ← 1.0 diff Aug 18, 2012
new 1.0 Mar 21, 2012