{
  "_id": "6a10162aacfb0bcc41c844e7",
  "Type": "Package",
  "Package": "ratesci",
  "Title": "Confidence Intervals and Tests for Comparisons of Binomial\nProportions or Poisson Rates",
  "Version": "1.0.0.9000",
  "Authors@R": "person(\"Pete\", \"Laud\", , \"p.j.laud@sheffield.ac.uk\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-3766-7090\"))",
  "Description": "Computes confidence intervals for binomial or Poisson\nrates and their differences or ratios. Including the rate (or\nrisk) difference ('RD') or rate ratio (or relative risk, 'RR')\nfor binomial proportions or Poisson rates, and odds ratio\n('OR', binomial only). Also confidence intervals for RD, RR or\nOR for paired binomial data, and estimation of a proportion\nfrom clustered binomial data. Includes skewness-corrected\nasymptotic score ('SCAS') methods, which have been developed in\nLaud (2017) <doi:10.1002/pst.1813> from Miettinen and Nurminen\n(1985) <doi:10.1002/sim.4780040211> and Gart and Nam (1988)\n<doi:10.2307/2531848>, and in Laud (2025, under review) for\npaired proportions. The same score produces hypothesis tests\nthat are improved versions of the non-inferiority test for\nbinomial RD and RR by Farrington and Manning (1990)\n<doi:10.1002/sim.4780091208>, or a generalisation of the\nMcNemar test for paired data. The package also includes MOVER\nmethods (Method Of Variance Estimates Recovery) for all\ncontrasts, derived from the Newcombe method but with options to\nuse equal-tailed intervals in place of the Wilson score method,\nand generalised for Bayesian applications incorporating prior\ninformation. So-called 'exact' methods for strictly\nconservative coverage are approximated using continuity\nadjustments, and the amount of adjustment can be selected to\navoid over-conservative coverage.  Also includes methods for\nstratified calculations (e.g. meta-analysis), either with fixed\neffect assumption (matching the CMH test) or incorporating\nstratum heterogeneity.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/petelaud/ratesci,\nhttps://petelaud.github.io/ratesci/",
  "BugReports": "https://github.com/petelaud/ratesci/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Repository": "https://petelaud.r-universe.dev",
  "Date/Publication": "2026-03-23 09:50:33 UTC",
  "RemoteUrl": "https://github.com/petelaud/ratesci",
  "RemoteRef": "HEAD",
  "RemoteSha": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 08:34:30 UTC",
    "User": "root"
  },
  "Author": "Pete Laud [aut, cre] (ORCID: <https://orcid.org/0000-0002-3766-7090>)",
  "Maintainer": "Pete Laud <p.j.laud@sheffield.ac.uk>",
  "MD5sum": "ec9b712a142a08167da28cbb2e727e91",
  "_user": "petelaud",
  "_type": "src",
  "_file": "ratesci_1.0.0.9000.tar.gz",
  "_fileid": "f2a430ddf4c4894b2c7bd6767abe3e798e51b2a90c97920baf27b60769dd26cd",
  "_filesize": 1807675,
  "_sha256": "f2a430ddf4c4894b2c7bd6767abe3e798e51b2a90c97920baf27b60769dd26cd",
  "_created": "2026-05-22T08:34:30.000Z",
  "_published": "2026-05-22T08:39:06.707Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77344974478,
      "time": 204,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156329080"
    },
    {
      "job": 77344974546,
      "time": 240,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156339756"
    },
    {
      "job": 77344974477,
      "time": 236,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156331832"
    },
    {
      "job": 77344974467,
      "time": 193,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156319083"
    },
    {
      "job": 77344596915,
      "time": 149,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156267965"
    },
    {
      "job": 77344974544,
      "time": 90,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156295498"
    },
    {
      "job": 77344974526,
      "time": 180,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156321774"
    },
    {
      "job": 77344974535,
      "time": 188,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156324520"
    },
    {
      "job": 77344974503,
      "time": 181,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156322197"
    }
  ],
  "_buildurl": "https://github.com/r-universe/petelaud/actions/runs/26277292929",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/petelaud/ratesci",
  "_commit": {
    "id": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
    "author": "Pete Laud <p.j.laud@shef.ac.uk>",
    "committer": "Pete Laud <p.j.laud@shef.ac.uk>",
    "message": "forgot to build README\n",
    "time": 1774259433
  },
  "_maintainer": {
    "name": "Pete Laud",
    "email": "p.j.laud@sheffield.ac.uk",
    "orcid": "0000-0002-3766-7090"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "petelaud",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-23",
      "n": 2
    },
    {
      "week": "2025-24",
      "n": 6
    },
    {
      "week": "2025-25",
      "n": 9
    },
    {
      "week": "2026-05",
      "n": 10
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 6
    },
    {
      "week": "2026-12",
      "n": 15
    },
    {
      "week": "2026-13",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v1.0.0",
      "date": "2025-06-20"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "petelaud",
      "count": 515,
      "uuid": 23017925
    }
  ],
  "_userbio": {
    "uuid": 23017925,
    "type": "user",
    "name": "Pete Laud"
  },
  "_downloads": {
    "count": 381,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ratesci"
  },
  "_devurl": "https://github.com/petelaud/ratesci",
  "_pkgdown": "https://petelaud.github.io/ratesci/",
  "_searchresults": 43,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/ratesci.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/petelaud/ratesci",
  "_realowner": "petelaud",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1-0",
      "date": "2016-11-13"
    },
    {
      "version": "0.2-0",
      "date": "2017-04-21"
    },
    {
      "version": "0.3-0",
      "date": "2018-02-15"
    },
    {
      "version": "0.4-0",
      "date": "2021-12-05"
    },
    {
      "version": "0.5.0",
      "date": "2025-01-10"
    },
    {
      "version": "1.0.0",
      "date": "2025-06-20"
    }
  ],
  "_exports": [
    "clusterpci",
    "jeffreysci",
    "moverbci",
    "moverci",
    "orci",
    "pairbinci",
    "rateci",
    "rdci",
    "rrci",
    "scasci",
    "scaspci",
    "scoreci",
    "tdasci"
  ],
  "_datasets": [
    {
      "name": "cisapride",
      "title": "Meta-analysis of the effect of cisapride for treatment of non-ulcer dyspepsia",
      "object": "cisapride",
      "class": [
        "data.frame"
      ],
      "fields": [
        "study",
        "event.cisa",
        "n.cisa",
        "event.plac",
        "n.plac"
      ],
      "rows": 13,
      "table": true,
      "tojson": true
    },
    {
      "name": "compress",
      "title": "Systematic review of the effect of graduated compression stockings for prevention of DVT",
      "object": "compress",
      "class": [
        "data.frame"
      ],
      "fields": [
        "study",
        "event.gcs",
        "n.gcs",
        "event.control",
        "n.control"
      ],
      "rows": 9,
      "table": true,
      "tojson": true
    },
    {
      "name": "crash",
      "title": "Corticosteroids in acute traumatic brain injury: updated systematic review of randomised controlled trials",
      "object": "crash",
      "class": [
        "data.frame"
      ],
      "fields": [
        "study",
        "event.steroid",
        "n.steroid",
        "event.control",
        "n.control"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cisapride",
      "title": "Meta-analysis of the effect of cisapride for treatment of non-ulcer dyspepsia",
      "topics": [
        "cisapride"
      ]
    },
    {
      "page": "clusterpci",
      "title": "Score confidence intervals for a single binomial rate from clustered data.",
      "topics": [
        "clusterpci"
      ]
    },
    {
      "page": "compress",
      "title": "Systematic review of the effect of graduated compression stockings for prevention of DVT",
      "topics": [
        "compress"
      ]
    },
    {
      "page": "crash",
      "title": "Corticosteroids in acute traumatic brain injury: updated systematic review of randomised controlled trials",
      "topics": [
        "crash"
      ]
    },
    {
      "page": "jeffreysci",
      "title": "Jeffreys and other approximate Bayesian confidence intervals for a single binomial or Poisson rate.",
      "topics": [
        "jeffreysci"
      ]
    },
    {
      "page": "moverbci",
      "title": "Approximate Bayesian (\"MOVER-B\") confidence intervals for comparisons of independent binomial or Poisson rates.",
      "topics": [
        "moverbci"
      ]
    },
    {
      "page": "moverci",
      "title": "Method of Variance Estimates Recovery (\"MOVER\") confidence intervals for comparisons of independent binomial or Poisson rates.",
      "topics": [
        "moverci"
      ]
    },
    {
      "page": "orci",
      "title": "Confidence intervals for odds ratio.",
      "topics": [
        "orci"
      ]
    },
    {
      "page": "pairbinci",
      "title": "Confidence intervals for comparisons of paired binomial rates.",
      "topics": [
        "pairbinci"
      ]
    },
    {
      "page": "rateci",
      "title": "Selected confidence intervals for the single binomial or Poisson rate.",
      "topics": [
        "rateci"
      ]
    },
    {
      "page": "rdci",
      "title": "Confidence intervals for rate difference (RD) with independent rates.",
      "topics": [
        "rdci"
      ]
    },
    {
      "page": "rrci",
      "title": "Confidence intervals for rate ratio (RR) with independent binomial rates.",
      "topics": [
        "rrci"
      ]
    },
    {
      "page": "scasci",
      "title": "Skewness-corrected asymptotic score (\"SCAS\") confidence intervals for comparisons of independent binomial or Poisson rates.",
      "topics": [
        "scasci"
      ]
    },
    {
      "page": "scaspci",
      "title": "Skewness-corrected asymptotic score (\"SCAS\") confidence intervals for single binomial or Poisson rate using closed-form calculations.",
      "topics": [
        "scaspci"
      ]
    },
    {
      "page": "scoreci",
      "title": "Score confidence intervals and tests for a single binomial or Poisson rate, or for comparisons of independent rates, with or without stratification.",
      "topics": [
        "scoreci"
      ]
    },
    {
      "page": "tdasci",
      "title": "t-distribution asymptotic score (\"TDAS\") confidence intervals for random effects stratified comparisons of independent binomial or Poisson rates.",
      "topics": [
        "tdasci"
      ]
    }
  ],
  "_pkglogo": "https://github.com/petelaud/ratesci/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/petelaud/ratesci/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "single_rate.Rmd",
      "filename": "single_rate.html",
      "title": "1: Single rate",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Estimation of a single binomial or Poisson rate",
        "Stratified datasets",
        "Clustered datasets",
        "Technical details",
        "References"
      ],
      "created": "2025-03-18 01:44:41",
      "modified": "2025-05-13 16:34:55",
      "commits": 11
    },
    {
      "source": "basic_contrasts.Rmd",
      "filename": "basic_contrasts.html",
      "title": "2: Basic contrasts (single stratum)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Confidence intervals for comparisons of independent binomial or Poisson rates",
        "SCAS and other asymptotic score methods",
        "MOVER methods",
        "Technical details",
        "References"
      ],
      "created": "2025-03-27 17:45:09",
      "modified": "2025-06-18 23:55:15",
      "commits": 13
    },
    {
      "source": "stratified.Rmd",
      "filename": "stratified.html",
      "title": "3: Stratified contrasts",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Confidence intervals for stratified comparisons of independent binomial or Poisson rates",
        "Random effects",
        "References"
      ],
      "created": "2025-04-07 13:59:43",
      "modified": "2025-06-17 11:15:06",
      "commits": 4
    },
    {
      "source": "paired_contrasts.Rmd",
      "filename": "paired_contrasts.html",
      "title": "4: Paired contrasts",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Confidence intervals and tests for paired comparisons of binomial proportions",
        "SCAS and other asymptotic score methods for RD and RR",
        "MOVER methods",
        "Conditional odds ratio",
        "References"
      ],
      "created": "2025-03-31 14:45:50",
      "modified": "2025-05-13 16:34:55",
      "commits": 5
    },
    {
      "source": "tests.Rmd",
      "filename": "tests.html",
      "title": "5: Hypothesis tests",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Test for association and equivalence test produced by scoreci() and pairbinci()",
        "Unstratified superiority test (2x2 test for association)",
        "Unstratified non-inferiority test",
        "Stratified test",
        "Weights for an optimal test",
        "Tests for paired binomial proportions",
        "Test for a single proportion",
        "References"
      ],
      "created": "2025-04-07 00:05:00",
      "modified": "2025-06-17 11:15:06",
      "commits": 6
    }
  ],
  "_score": 6.939893483130274,
  "_indexed": true,
  "_nocasepkg": "ratesci",
  "_universes": [
    "petelaud"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0.9000",
      "date": "2026-05-22T08:36:30.000Z",
      "distro": "noble",
      "commit": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
      "fileid": "aa6e9c42aa12f2c74f53fdbab5427d6c1a6e7fc91e1613b6b7a335f4a353bdc6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/petelaud/actions/runs/26277292929"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0.9000",
      "date": "2026-05-22T08:36:59.000Z",
      "distro": "noble",
      "commit": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
      "fileid": "0d4d239c566d3b243ff9ba4cf9aac8b16ad463e745be9e1184705390418fe00f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/petelaud/actions/runs/26277292929"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0.9000",
      "date": "2026-05-22T08:37:04.000Z",
      "commit": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
      "fileid": "b490f2f35c7ff1ade4bf323d16e79204a688215cce77c509b9356a5a9b61a67b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/petelaud/actions/runs/26277292929"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0.9000",
      "date": "2026-05-22T08:36:28.000Z",
      "commit": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
      "fileid": "9ecf525589861188d558b67fecc708656456e3b34b6042f017688e1ecdcafd72",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/petelaud/actions/runs/26277292929"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0.9000",
      "date": "2026-05-22T08:36:19.000Z",
      "commit": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
      "fileid": "3b35dd09352c14714bb013c27899892b23ec7b0c0ea0e033e527732ac3b0d2f5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/petelaud/actions/runs/26277292929"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0.9000",
      "date": "2026-05-22T08:35:49.000Z",
      "commit": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
      "fileid": "c293202d047950e68961effaa6dc36ec7f5c4719512df3cdc8110fa34f8296f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/petelaud/actions/runs/26277292929"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0.9000",
      "date": "2026-05-22T08:35:43.000Z",
      "commit": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
      "fileid": "bd9dad3efeaadfc04bac0306adb30e1b70beedeb49630bf9d94913253cf351a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/petelaud/actions/runs/26277292929"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0.9000",
      "date": "2026-05-22T08:35:42.000Z",
      "commit": "c7427c07fc8fa2d8a14a0a5fedd20294d0d4e2b8",
      "fileid": "0849e69eb640b50adc7422b02da88e72d73ba514cd524e5e7bace1ad291898ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/petelaud/actions/runs/26277292929"
    }
  ]
}