{
  "_id": "6ad1ea920edca5be250227b6",
  "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-10-16 08:11:07 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",
  "_user": "michaelfay-niaid",
  "_type": "src",
  "_file": "exact2x2_1.7.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/1609dd2bdaa167a204f5ae22c317cdad27aa22f49960e5244ebacaa9db815a12",
  "_filesize": 1056565,
  "_sha256": "1609dd2bdaa167a204f5ae22c317cdad27aa22f49960e5244ebacaa9db815a12",
  "_expires": "2027-01-24T09:12:48.000Z",
  "_created": "2026-10-16T08:11:07.000Z",
  "_published": "2026-10-16T09:12:50.370Z",
  "_buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/38871686320",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116878172341,
      "time": 126,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12033434357"
    },
    {
      "job": 116878172771,
      "time": 123,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12032884386"
    },
    {
      "job": 116878172400,
      "time": 123,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12035949456"
    },
    {
      "job": 116878172512,
      "time": 121,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12036940774"
    },
    {
      "job": 116877130836,
      "time": 171,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12033284904"
    },
    {
      "job": 116878172306,
      "time": 89,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12033870599"
    },
    {
      "job": 116878172593,
      "time": 88,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12034065022"
    },
    {
      "job": 116878172425,
      "time": 71,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12033691449"
    },
    {
      "job": 116878172506,
      "time": 90,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12032734556"
    }
  ],
  "_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
  },
  "_distro": "resolute",
  "_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": [],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "michaelfay-niaid",
      "count": 21,
      "uuid": 212777592
    }
  ],
  "_userbio": {
    "uuid": 212777592,
    "type": "user",
    "name": "Michael P Fay",
    "followers": 0,
    "description": "I am a biostatistician and maintain several R packages,"
  },
  "_downloads": {
    "count": 2610,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/exact2x2"
  },
  "_mentions": 16,
  "_searchresults": 383,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/exact2x2.html",
    "extra/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",
    "otel",
    "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.255111786410209,
  "_indexed": true,
  "_nocasepkg": "exact2x2",
  "_universes": [
    "michaelfay-niaid"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.7.0",
      "date": "2026-10-16T08:13:02.000Z",
      "distro": "resolute",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "https://r2.ropensci.org/e0f949fba7031ce0c9537a2c70010f1b97cfacb05718f3694516af29735ddf85",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/38871686320"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.7.0",
      "date": "2026-10-16T08:13:00.000Z",
      "distro": "resolute",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "https://r2.ropensci.org/ea30991f6f7d95807d06bb3a40ff112d1ddca63e57c423174fa7d606bbffc0ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/38871686320"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.7.0",
      "date": "2026-10-16T09:08:09.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "https://r2.ropensci.org/8c8cfa65ef45efbdb43465af24ac7bbeb22b83294d439cef2902c1fe66c9a35c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/38871686320"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.7.0",
      "date": "2026-10-16T09:12:04.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "https://r2.ropensci.org/3bc023ff84ca26f57f9a34fdd32c72e56b42615afcfe981a532259f844323ba7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/38871686320"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.7.0",
      "date": "2026-10-16T08:12:56.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "https://r2.ropensci.org/4269f5efd46e78c640e59806a286b83d5bcb4ef0e2e6a45aa29581b496be5262",
      "status": "success",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/38871686320"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.7.0",
      "date": "2026-10-16T08:12:13.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "https://r2.ropensci.org/6170108224bafedef550b14db67347346cee8597a5a69d59b261fdb3d5490641",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/38871686320"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.7.0",
      "date": "2026-10-16T08:12:08.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "https://r2.ropensci.org/98a4b8a34ee2cae6217254fa879589dcf2b7de2f0b73894f00d45882918ed030",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/38871686320"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.7.0",
      "date": "2026-10-16T08:12:25.000Z",
      "commit": "7e5a06dd4816cff7b9b65986bd826c582873c02a",
      "fileid": "https://r2.ropensci.org/02d4671810d7aec4fd67e34d58c05256b051bd2a6c4ecb2721560904f1d221ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/michaelfay-niaid/actions/runs/38871686320"
    }
  ]
}