Skip to content

exact2x2

Exact Tests and Confidence Intervals for 2x2 Tables

v1.7.0 · Aug 20, 2025 · GPL-3

Description

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>).

Downloads

3.6K

Last 30 days

2100th

11K

Last 90 days

41.6K

Last year

Trend: -4.6% (30d vs prior 30d)

CRAN Check Status

14 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 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
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 History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (7)

depends

imports

suggests

Dependency Network

Dependencies Reverse dependencies exactci ssanv asht pCalibrate vvdoctor bbssr bpcp exactci jmv exact2x2

Version History

new 1.7.0 Mar 10, 2026
updated 1.7.0 ← 1.6.9 diff Aug 19, 2025
updated 1.6.9 ← 1.6.8 diff Jan 24, 2024
updated 1.6.8 ← 1.6.6 diff Feb 8, 2023
updated 1.6.6 ← 1.6.5 diff Dec 8, 2021
updated 1.6.5 ← 1.6.4.1 diff Aug 2, 2020
updated 1.6.4.1 ← 1.6.3.1 diff Jun 29, 2020
updated 1.6.3.1 ← 1.6.3 diff Oct 15, 2019
updated 1.6.3 ← 1.6.2 diff Jul 26, 2018
updated 1.6.2 ← 1.5.2 diff Feb 25, 2018
updated 1.5.2 ← 1.4.1 diff Feb 15, 2017
updated 1.4.1 ← 1.4.0 diff Feb 25, 2015
updated 1.4.0 ← 1.3.0 diff Aug 24, 2014
updated 1.3.0 ← 1.2-0.0 diff Apr 29, 2014
updated 1.2-0.0 ← 1.1-1.0 diff Mar 4, 2014
updated 1.1-1.0 ← 1.1-0.0 diff Apr 23, 2011
updated 1.1-0.0 ← 1.0-1.1 diff Oct 5, 2010
updated 1.0-1.1 ← 1.0-1 diff Jul 29, 2010
updated 1.0-1 ← 1.0-0 diff May 26, 2010
updated 1.0-0 ← 0.9-3.1 diff Jan 26, 2010