{
  "name": "fisher.test arguments by table size, defaults and purpose",
  "description": "Compiled from the R-devel stats manual page for fisher.test: each argument, the table sizes it acts on, its default value and its documented purpose. Arrangement by table size is the editors' own grouping of the documented behaviour.",
  "page": "https://casrai.org/guides/fisher-test-in-r",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T23:48:17Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Argument",
      "unit": "",
      "description": ""
    },
    {
      "name": "Acts on",
      "unit": "",
      "description": ""
    },
    {
      "name": "Default",
      "unit": "",
      "description": ""
    },
    {
      "name": "Purpose (from the documentation)",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Argument": "x",
      "Acts on": "All tables",
      "Default": "none",
      "Purpose (from the documentation)": "2-d contingency table as a matrix of nonnegative integers, or a factor"
    },
    {
      "Argument": "y",
      "Acts on": "All tables (factor input)",
      "Default": "NULL",
      "Purpose (from the documentation)": "Factor; ignored when x is a matrix"
    },
    {
      "Argument": "alternative",
      "Acts on": "2x2 only",
      "Default": "two.sided",
      "Purpose (from the documentation)": "Accepts two.sided, greater or less"
    },
    {
      "Argument": "or",
      "Acts on": "2x2 only",
      "Default": "1",
      "Purpose (from the documentation)": "Odds ratio under the null hypothesis"
    },
    {
      "Argument": "conf.int",
      "Acts on": "2x2 only",
      "Default": "TRUE",
      "Purpose (from the documentation)": "Whether to return a confidence interval for the odds ratio"
    },
    {
      "Argument": "conf.level",
      "Acts on": "2x2 only",
      "Default": "0.95",
      "Purpose (from the documentation)": "Confidence level of the interval"
    },
    {
      "Argument": "workspace",
      "Acts on": "Larger than 2x2 (exact p)",
      "Default": "200000",
      "Purpose (from the documentation)": "Network-algorithm workspace in 4-byte units; larger allows bigger problems, may run long"
    },
    {
      "Argument": "hybrid",
      "Acts on": "Larger than 2x2",
      "Default": "FALSE",
      "Purpose (from the documentation)": "Use chi-squared approximation where the Cochran conditions in hybridPars hold, else exact"
    },
    {
      "Argument": "simulate.p.value",
      "Acts on": "Larger than 2x2",
      "Default": "FALSE",
      "Purpose (from the documentation)": "Monte Carlo p-value conditional on margins, which must be strictly positive"
    },
    {
      "Argument": "B",
      "Acts on": "Larger than 2x2 (simulation)",
      "Default": "2000",
      "Purpose (from the documentation)": "Number of Monte Carlo replicates; default gives a minimum p of about 0.0005"
    }
  ],
  "sources": [
    {
      "title": "R-devel stats manual: Fisher's Exact Test for Count Data",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/fisher.test.html",
      "accessed": "2026-11-16"
    }
  ]
}