Skip to content

Unconditional Exact Test

1packages dependsuggested by 4
517.4Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 3.3
  • Fixed an error where the p-value was sometimes incorrect for imbalanced designs. Only occurred when the p-value would be large, but exact test gave a much higher p-value. Thanks to Andrea Smith for pointing out the issue

From inst/NEWS.Rd in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.0 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 3.3
READMENoVignettesNoNEWSYes · mentions 3.3Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
7includes a package overview page
Examples that run
100%6 run in a plain check
Exported functions with examples
100%
Documented parameters
98%
Return-value docs
100%
Help pages citing references
86%

Downloads

517.4K
CRAN downloads in the past year
Rank #559 · ~1.4K/day · ~43.1K/mo
Daily download trend is not available in this view yet.
45.7K30 days
120.3K90 days
517.4K1 year
Compare downloads with other packages →
Also on7.1K r2u8 autocran65.4K conda_forge401 c2d4u

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing Exact adds 1 package (1 with compiled code, 492 KB of source tarballs). Heaviest: rootSolve 492 KB.

Depends (1)
R >= 3.5.0
Imports (4)
graphicsstatsutilsrootSolve
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
1direct
114indirect
Imports 1
Suggested by 4
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 1.0 (2012)
Releases (14)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 3.3Latest
    record
    2024-07-21 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 3.2
    record
    2022-09-26 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 3.1
    record
    2021-11-26 · diff ↗
  • 3.0
    record
    2021-09-02 · diff ↗ ·
    added 3 exports
    paired.exact.test, paired.reject.region, power.paired.test
  • R
    R 4.1.0 released · 2021-05-18
  • 2.1
    record
    2020-10-03 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2.0
    record
    2019-10-14 · diff ↗ ·
    added 1 export
    exact.reject.region
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
Show 14 earlier eventsHide 14 earlier events

Package metadata

First published
2012-03-22
Total releases
14 / 14 yrs
License
GPL-2 OSI
Additional repositories
pcalhoun1.github.io
Minimum R
≥ 3.5.0
Download size
44 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("Exact")
Calhoun, P. (2024). Exact: Unconditional Exact Test (Version 3.3) [Computer software]. https://doi.org/10.32614/CRAN.package.Exact

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for Exact version 3.3 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy