{
  "_id": "6a1ef86bb401979e73417c8a",
  "Package": "exact2x2",
  "Type": "Package",
  "Title": "Exact Tests and Confidence Intervals for 2x2 Tables",
  "Version": "1.7.0",
  "Date": "2025-08-20",
  "Authors@R": "c(person(given = c(\"Michael\", \"P.\"),\nfamily = \"Fay\",\nrole = c(\"aut\", \"cre\"),\nemail = \"mfay@niaid.nih.gov\"),\nperson(given = c(\"Sally\", \"A.\"),\nfamily = \"Hunsberger\",\nrole = \"ctb\"),\nperson(given = \"Martha\",\nfamily = \"Nason\",\nrole = \"ctb\"),\nperson(given = \"Erin\",\nfamily = \"Gabriel\",\nrole = \"ctb\"),\nperson(given = \"Keith\",\nfamily = \"Lumbard\",\nrole = \"ctb\"))",
  "Description": "Calculates conditional exact tests (Fisher's exact test,\nBlaker's exact test, or exact McNemar's test) and unconditional\nexact tests (including score-based tests on differences in\nproportions, ratios of proportions, and odds ratios, and\nBoshcloo's test) with appropriate matching confidence\nintervals, and provides power and sample size calculations.\nGives melded confidence intervals for the binomial case (Fay,\net al, 2015, <DOI:10.1111/biom.12231>). Gives\nboundary-optimized rejection region test (Gabriel, et al, 2018,\n<DOI:10.1002/sim.7579>), an unconditional exact test for the\nsituation where the controls are all expected to fail. Gives\nconfidence intervals compatible with exact McNemar's or sign\ntests (Fay and Lumbard, 2021, <DOI:10.1002/sim.8829>). For\nreview of these kinds of exact tests see Fay and Hunsberger\n(2021, <DOI:10.1214/21-SS131>).",
  "License": "GPL-3",
  "LazyLoad": "yes",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-19 06:03:21 UTC",
    "User": "root"
  },
  "Author": "Michael P. Fay [aut, cre], Sally A. Hunsberger [ctb], Martha\nNason [ctb], Erin Gabriel [ctb], Keith Lumbard [ctb]",
  "Maintainer": "Michael P. Fay <mfay@niaid.nih.gov>",
  "Config/pak/sysreqs": "cmake make libuv1-dev",
  "Repository": "https://michaelfay-niaid.r-universe.dev",
  "Date/Publication": "2025-08-20 19:40:13 UTC",
  "RemoteUrl": "https://github.com/cran/exact2x2",
  "RemoteRef": "HEAD",
  "RemoteSha": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
  "MD5sum": "dcf617f8dcb457963f400e0e6418fd65",
  "_user": "michaelfay-niaid",
  "_type": "src",
  "_file": "exact2x2_1.7.0.tar.gz",
  "_fileid": "8c4c747892e7a103e79fdd473b55e0d8b73c4315bdc44e3c0de80a9bb67814c0",
  "_filesize": 1053653,
  "_sha256": "8c4c747892e7a103e79fdd473b55e0d8b73c4315bdc44e3c0de80a9bb67814c0",
  "_created": "2026-05-19T06:03:21.000Z",
  "_published": "2026-06-02T15:36:11.164Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79109728383,
      "time": 148,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7076038137"
    },
    {
      "job": 79109728726,
      "time": 132,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076034677"
    },
    {
      "job": 79109728762,
      "time": 116,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7076031024"
    },
    {
      "job": 79109728198,
      "time": 122,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076032171"
    },
    {
      "job": 79109727165,
      "time": 192,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076003881"
    },
    {
      "job": 79109727067,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7362453433"
    },
    {
      "job": 79109727878,
      "time": 111,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7076029685"
    },
    {
      "job": 79109728331,
      "time": 88,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7076024540"
    },
    {
      "job": 79109728514,
      "time": 105,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076029301"
    }
  ],
  "_buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/26079293155",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/exact2x2",
  "_commit": {
    "id": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
    "author": "Michael P. Fay <mfay@niaid.nih.gov>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.7.0\n",
    "time": 1755718813
  },
  "_maintainer": {
    "name": "Michael P. Fay",
    "email": "mfay@niaid.nih.gov",
    "login": "michaelfay-niaid",
    "description": "I am a biostatistician and maintain several R packages,",
    "uuid": 212777592
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "stats",
      "version": ">= 3.1.1",
      "role": "Depends"
    },
    {
      "package": "exactci",
      "role": "Depends"
    },
    {
      "package": "ssanv",
      "role": "Depends"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "Exact",
      "version": ">= 2.0",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "grid",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 4,
  "_updates": [
    {
      "week": "2025-34",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.7.0",
      "date": "2025-08-20"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "michaelfay-niaid",
      "count": 21,
      "uuid": 212777592
    }
  ],
  "_userbio": {
    "uuid": 212777592,
    "type": "user",
    "name": "Michael P Fay",
    "description": "I am a biostatistician and maintain several R packages,"
  },
  "_downloads": {
    "count": 3923,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/exact2x2"
  },
  "_mentions": 16,
  "_searchresults": 339,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/exact2x2.html",
    "manual.pdf"
  ],
  "_realowner": "michaelfay-niaid",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.9-1",
      "date": "2009-07-22"
    },
    {
      "version": "0.9-3.1",
      "date": "2009-08-14"
    },
    {
      "version": "1.0-0",
      "date": "2010-01-27"
    },
    {
      "version": "1.0-1",
      "date": "2010-05-27"
    },
    {
      "version": "1.0-1.1",
      "date": "2010-07-30"
    },
    {
      "version": "1.1-0.0",
      "date": "2010-10-06"
    },
    {
      "version": "1.1-1.0",
      "date": "2011-04-24"
    },
    {
      "version": "1.2-0.0",
      "date": "2014-03-05"
    },
    {
      "version": "1.3.0",
      "date": "2014-04-30"
    },
    {
      "version": "1.4.0",
      "date": "2014-08-25"
    },
    {
      "version": "1.4.1",
      "date": "2015-02-26"
    },
    {
      "version": "1.5.2",
      "date": "2017-02-16"
    },
    {
      "version": "1.6.2",
      "date": "2018-02-26"
    },
    {
      "version": "1.6.3",
      "date": "2018-07-27"
    },
    {
      "version": "1.6.3.1",
      "date": "2019-10-16"
    },
    {
      "version": "1.6.4.1",
      "date": "2020-06-30"
    },
    {
      "version": "1.6.5",
      "date": "2020-08-03"
    },
    {
      "version": "1.6.6",
      "date": "2021-12-09"
    },
    {
      "version": "1.6.8",
      "date": "2023-02-09"
    },
    {
      "version": "1.6.9",
      "date": "2024-01-25"
    },
    {
      "version": "1.7.0",
      "date": "2025-08-20"
    }
  ],
  "_exports": [
    "binomMeld.test",
    "blaker.exact",
    "borrControl",
    "borrOrdering",
    "borrPreCalc",
    "borrPvals",
    "borrTest",
    "boschloo",
    "calcTall",
    "constrMLE.difference",
    "constrMLE.oddsratio",
    "constrMLE.ratio",
    "createR",
    "exact2x2",
    "exact2x2CI",
    "exact2x2Plot",
    "exact2x2Pvals",
    "fillsquare",
    "fisher.exact",
    "fisherCalcMidp",
    "getColor",
    "getDeltaGrid",
    "getPDQD",
    "getPI",
    "getPrange",
    "mcnemar.exact",
    "mcnemar.exact.calc",
    "mcnemarExactDP",
    "orderMat",
    "pickTstat",
    "plotRankMat",
    "plotT",
    "power2grid",
    "power2gridDifference",
    "power2gridRatio",
    "power2x2",
    "Power2x2",
    "powerBorr",
    "powerPaired2x2",
    "ss2x2",
    "SS2x2",
    "ucControl",
    "uncondExact2x2",
    "uncondExact2x2Pvals",
    "uncondPower2x2",
    "unirootGrid"
  ],
  "_help": [
    {
      "page": "exact2x2-package",
      "title": "Exact Tests and Confidence Intervals for 2x2 Tables",
      "topics": [
        "exact2x2-package"
      ]
    },
    {
      "page": "binomMeldtest",
      "title": "Melded Binomial Confidence Intervals and Tests",
      "topics": [
        "binomMeld.test"
      ]
    },
    {
      "page": "borrTest",
      "title": "Boundary-Optimized Rejection Region Test",
      "topics": [
        "borrOrdering",
        "borrPvals",
        "borrTest",
        "powerBorr"
      ]
    },
    {
      "page": "boschloo",
      "title": "Boschloo's test for 2x2 Tables",
      "topics": [
        "boschloo"
      ]
    },
    {
      "page": "exact2x2",
      "title": "Exact Conditional Tests for 2 by 2 Tables of Count Data",
      "topics": [
        "blaker.exact",
        "exact2x2",
        "fisher.exact",
        "mcnemar.exact"
      ]
    },
    {
      "page": "exact2x2Plot",
      "title": "Plot p-value function for one 2 by 2 table.",
      "topics": [
        "exact2x2Plot"
      ]
    },
    {
      "page": "mcnemarExactDP",
      "title": "Exact McNemar (Paired Binary) Test with Difference in Proportions",
      "topics": [
        "mcnemarExactDP"
      ]
    },
    {
      "page": "plotT",
      "title": "Plot or Print ordering function for unconditional exact test",
      "topics": [
        "orderMat",
        "orderMat.function",
        "orderMat.numeric",
        "plotT",
        "plotT.function",
        "plotT.numeric"
      ]
    },
    {
      "page": "power2x2",
      "title": "Calculate exact power or sample size for conditional tests for two independent binomials.",
      "topics": [
        "power2x2",
        "ss2x2"
      ]
    },
    {
      "page": "powerPaired2x2",
      "title": "Power for exact McNemar's test",
      "topics": [
        "powerPaired2x2"
      ]
    },
    {
      "page": "uncondExact2x2",
      "title": "Unconditional exact tests for 2x2 tables",
      "topics": [
        "uncondExact2x2",
        "uncondExact2x2Pvals"
      ]
    },
    {
      "page": "uncondPower2x2",
      "title": "Calculate power or sample size for any 2x2 test.",
      "topics": [
        "Power2x2",
        "SS2x2",
        "uncondPower2x2"
      ]
    },
    {
      "page": "unirootGrid",
      "title": "Function to find a root by grid search.",
      "topics": [
        "unirootGrid"
      ]
    }
  ],
  "_rundeps": [
    "brio",
    "callr",
    "cli",
    "crayon",
    "desc",
    "diffobj",
    "evaluate",
    "exactci",
    "fs",
    "glue",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "pkgbuild",
    "pkgload",
    "praise",
    "processx",
    "ps",
    "R6",
    "rlang",
    "rprojroot",
    "ssanv",
    "testthat",
    "waldo",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "exactMcNemar.Rnw",
      "filename": "exactMcNemar.pdf",
      "title": "Exact McNemar's Test",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2014-03-05 00:00:00",
      "modified": "2020-06-30 19:20:08",
      "commits": 4
    },
    {
      "source": "midpAdjustment.Rnw",
      "filename": "midpAdjustment.pdf",
      "title": "exact2x2: mid-p adjustment",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-02-16 21:40:11",
      "modified": "2018-02-26 21:11:12",
      "commits": 2
    },
    {
      "source": "exact2x2.Rnw",
      "filename": "exact2x2.pdf",
      "title": "exact2x2: Overview",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2014-03-05 00:00:00",
      "modified": "2017-02-16 21:40:11",
      "commits": 2
    },
    {
      "source": "unconditionalExact2x2Tests.Rnw",
      "filename": "unconditionalExact2x2Tests.pdf",
      "title": "exact2x2: Unconditional Exact Tests",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-02-16 21:40:11",
      "modified": "2017-02-16 21:40:11",
      "commits": 1
    },
    {
      "source": "exact2x2Validation.Rnw",
      "filename": "exact2x2Validation.pdf",
      "title": "exact2x2: Validation of Unconditional Exact Tests",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-02-16 21:40:11",
      "modified": "2017-02-16 21:40:11",
      "commits": 1
    }
  ],
  "_score": 7.379090511435924,
  "_indexed": true,
  "_nocasepkg": "exact2x2",
  "_universes": [
    "michaelfay-niaid"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.7.0",
      "date": "2026-05-19T06:05:37.000Z",
      "distro": "noble",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "c82853ba8a764c505cd973d701a2ecdb5d362e3600a52bec510057a11daaf598",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/26079293155"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.7.0",
      "date": "2026-05-19T06:05:25.000Z",
      "distro": "noble",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "467ff0ea695c42510f7690b0109e60ea93107699b4de01bb84bdd4043168ed10",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/26079293155"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.7.0",
      "date": "2026-05-19T06:05:11.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "c9fe40c87a1e912eb49e27124f6b8975e368b3887045859784b410524c850464",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/26079293155"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.7.0",
      "date": "2026-05-19T06:05:16.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "25c000a6cab69c203ce651779ac2a9fbef218fce0475a9dba184a6887acdd061",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/26079293155"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.7.0",
      "date": "2026-05-19T06:04:51.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "888a0110c35a2329d0565cb8b411a143fc1be29332496e2f749a2fe9979d0bc5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/26079293155"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.7.0",
      "date": "2026-05-19T06:04:31.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "37cae7d99a839c9ea58b4f95498600ce2a31687c8c3a14a1b50e0e49ec2dcc94",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/26079293155"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.7.0",
      "date": "2026-05-19T06:04:53.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "515411182c90e564aa254be4df7a412d3815a0821b943b0c22fa8ad002c346ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/26079293155"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.7.0",
      "date": "2026-06-02T15:35:45.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "671bcdec9371c738d31429867048ccd5130b8cf4bd774a4db7cf46b116c88be1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/26079293155"
    }
  ]
}