Skip to content

exact2x2

1.7.0Package record

Exact Tests and Confidence Intervals for 2x2 Tables

3packages dependsuggested by 4
37.1Kdownloads / year
20.0%test coverage
13/13flavors OK

Overview

About

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

Install

Health

CRAN checks
13OK
Slowest check: 2.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.7.0
READMENoVignettesYes · 5 · dynamicNEWSNoCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
22 (9 internal)includes a package overview page
Examples that run
94%15 run in a plain check · 1 never run
Exported functions with examples
76%
Documented parameters
97%
Return-value docs
95%
Help pages citing references
100%

Downloads

37.1K
CRAN downloads in the past year
Rank #2,402 · ~102/day · ~3.1K/mo
Daily download trend is not available in this view yet.
2.8K30 days
6.8K90 days
37.1K1 year
Compare downloads with other packages →
Also on125 r2u8 autocran2.1K conda_forge

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing exact2x2 adds 26 packages (11 with compiled code, 6.7 MB of source tarballs). Heaviest: fs 1.4 MB, jsonlite 1.0 MB, testthat 814 KB.

Depends (4)
R >= 2.10statsexactcissanv
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
1indirect
Depends 2 · Imports 1
Suggested by 4
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (5)
Author, Maintainer · added in 1.2-0.0
Contributor · added in 1.6.2
Contributor · added in 1.5.2
Contributor · added in 1.6.4.1
Contributor · added in 1.6.2

Maintainer since 0.9-1 (2009)

Listed in earlier versions (3)
Show 3 peopleHide 3 people
M.P. Fay
no longer listed · 0.9-1 to 1.1-1.0
Fay
no longer listed · 1.7.0
Hunsberger
no longer listed · 1.7.0
Releases (21)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.7.0Latest
    record
    2025-08-20 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.6.9
    record
    2024-01-25 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.6.8
    record
    2023-02-09 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.6.6
    record
    2021-12-09 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.6.5
    record
    2020-08-03 · diff ↗
  • 1.6.4.1
    record
    2020-06-30 · diff ↗ ·
    added 3 exports
    powerPaired2x2, powerBorr, mcnemarExactDP
  • R
    R 4.0.0 released · 2020-04-24
  • 1.6.3.1
    record
    2019-10-16 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.6.3
    record
    2018-07-27 · diff ↗
Show 26 earlier eventsHide 26 earlier events
  • R
    R 3.5.0 released · 2018-04-23
  • 1.6.2
    record
    2018-02-26 · diff ↗ ·
    added 5 exports
    borrControl, borrTest, borrOrdering, borrPvals, borrPreCalc
  • R
    R 3.4.0 released · 2017-04-21
  • 1.5.2
    record
    2017-02-16 · diff ↗ ·
    added 27 exports
    uncondExact2x2, uncondExact2x2Pvals, fisherCalcMidp, boschloo, unirootGrid, power2gridRatio, power2gridDifference, calcTall, constrMLE.difference, constrMLE.ratio, constrMLE.oddsratio, getDeltaGrid, getPDQD, getPI, getPrange, pickTstat, power2grid, ucControl, createR, fillsquare, getColor, plotRankMat, plotT, orderMat, Power2x2, SS2x2, uncondPower2x2
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 1.4.1
    record
    2015-02-26 · diff ↗
  • 1.4.0
    record
    2014-08-25 · diff ↗
  • 1.3.0
    record
    2014-04-30 · diff ↗ ·
    added 3 exports
    power2x2, ss2x2, binomMeld.test
  • R
    R 3.1.0 released · 2014-04-10
  • 1.2-0.0
    record
    2014-03-05 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • 1.1-1.0
    record
    2011-04-24 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • 1.1-0.0
    record
    2010-10-06 · diff ↗
  • 1.0-1.1
    record
    2010-07-30 · diff ↗
  • 1.0-1
    record
    2010-05-27 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • 1.0-0
    record
    2010-01-27 · diff ↗ ·
    added 2 exports
    mcnemar.exact, mcnemar.exact.calc
  • R
    R 2.10.0 released · 2009-10-26
  • 0.9-3.1
    record
    2009-08-14 · diff ↗
  • 0.9-1
    record
    2009-07-22
  • R
    R 2.9.0 released · 2009-04-17

Package metadata

First published
2009-07-22
Total releases
21 / 17 yrs
License
GPL-3 OSI
Minimum R
≥ 2.10
Download size
844 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("exact2x2")

The package provides a citation file, so citation() returns the authors' own entry.

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 exact2x2 version 1.7.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, 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