{
  "name": "R routes for a z-test: function, package version and population-SD argument",
  "description": "Compares the three ways to run a z-test in R, compiled from the CRAN package pages and reference manuals for BSDA and DescTools and from the R stats documentation, checked 2026-11-20. Shows the call, the package version checked, the name of the population standard deviation argument, whether a paired argument exists and the default confidence level.",
  "page": "https://casrai.org/guides/z-test-in-r",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-20T05:23:59Z",
  "temporalCoverage": "2023/2025",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Route",
      "unit": "",
      "description": ""
    },
    {
      "name": "Package",
      "unit": "",
      "description": ""
    },
    {
      "name": "Version checked",
      "unit": "",
      "description": ""
    },
    {
      "name": "Population SD argument",
      "unit": "",
      "description": ""
    },
    {
      "name": "Has paired argument",
      "unit": "",
      "description": ""
    },
    {
      "name": "Default confidence level",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Route": "BSDA::z.test()",
      "Package": "BSDA",
      "Version checked": "1.2.2",
      "Population SD argument": "sigma.x (and sigma.y for a second sample)",
      "Has paired argument": "No",
      "Default confidence level": "0.95"
    },
    {
      "Route": "DescTools::ZTest()",
      "Package": "DescTools",
      "Version checked": "0.99.60",
      "Population SD argument": "sd_pop",
      "Has paired argument": "Yes (default FALSE)",
      "Default confidence level": "0.95"
    },
    {
      "Route": "pnorm() with manual z",
      "Package": "stats (ships with R)",
      "Version checked": "R documentation (R-devel)",
      "Population SD argument": "You supply sigma in your own formula",
      "Has paired argument": "Not applicable",
      "Default confidence level": "Not applicable (you use qnorm(0.975))"
    }
  ],
  "sources": [
    {
      "title": "CRAN: BSDA package page",
      "url": "https://cran.r-project.org/web/packages/BSDA/index.html",
      "accessed": "2026-11-20"
    },
    {
      "title": "CRAN: BSDA reference manual",
      "url": "https://cran.r-project.org/web/packages/BSDA/BSDA.pdf",
      "accessed": "2026-11-20"
    },
    {
      "title": "CRAN: DescTools package page",
      "url": "https://cran.r-project.org/web/packages/DescTools/index.html",
      "accessed": "2026-11-20"
    },
    {
      "title": "CRAN: DescTools reference manual",
      "url": "https://cran.r-project.org/web/packages/DescTools/DescTools.pdf",
      "accessed": "2026-11-20"
    },
    {
      "title": "R documentation: The Normal Distribution",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/Normal.html",
      "accessed": "2026-11-20"
    }
  ]
}