Computes confidence intervals for binomial or Poisson rates and their differences or ratios. Including the rate (or risk) difference ('RD') or rate ratio (or relative risk, 'RR') for binomial proportions or Poisson rates, and odds ratio ('OR', binomial only). Also confidence intervals for RD, RR or OR for paired binomial data, and estimation of a proportion from clustered binomial data. Includes skewness-corrected asymptotic score ('SCAS') methods, which have been developed in Laud (2017) <doi:10.1002/pst.1813> from Miettinen and Nurminen (1985) <doi:10.1002/sim.4780040211> and Gart and Nam (1988) <doi:10.2307/2531848>, and in Laud (2025, under review) for paired proportions. The same score produces hypothesis tests that are improved versions of the non-inferiority test for binomial RD and RR by Farrington and Manning (1990) <doi:10.1002/sim.4780091208>, or a generalisation of the McNemar test for paired data. The package also includes MOVER methods (Method Of Variance Estimates Recovery) for all contrasts, derived from the Newcombe method but with options to use equal-tailed intervals in place of the Wilson score method, and generalised for Bayesian applications incorporating prior information. So-called 'exact' methods for strictly conservative coverage are approximated using continuity adjustments, and the amount of adjustment can be selected to avoid over-conservative coverage. Also includes methods for stratified calculations (e.g. meta-analysis), either with fixed effect assumption (matching the CMH test) or incorporating stratum heterogeneity.
Version: | 1.0.0 |
Depends: | R (≥ 3.6.0) |
Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0) |
Published: | 2025-06-20 |
DOI: | 10.32614/CRAN.package.ratesci |
Author: | Pete Laud |
Maintainer: | Pete Laud <p.j.laud at sheffield.ac.uk> |
BugReports: | https://github.com/petelaud/ratesci/issues |
License: | GPL (≥ 3) |
URL: | https://github.com/petelaud/ratesci, https://petelaud.github.io/ratesci/ |
NeedsCompilation: | no |
Materials: | NEWS |
In views: | MetaAnalysis |
CRAN checks: | ratesci results |
Reference manual: | ratesci.pdf |
Vignettes: |
2: Basic contrasts (single stratum) (source, R code) 4: Paired contrasts (source, R code) 1: Single rate (source, R code) 3: Stratified contrasts (source, R code) 5: Hypothesis tests (source, R code) |
Package source: | ratesci_1.0.0.tar.gz |
Windows binaries: | r-devel: ratesci_0.5.0.zip, r-release: ratesci_1.0.0.zip, r-oldrel: ratesci_1.0.0.zip |
macOS binaries: | r-release (arm64): ratesci_1.0.0.tgz, r-oldrel (arm64): ratesci_1.0.0.tgz, r-release (x86_64): ratesci_1.0.0.tgz, r-oldrel (x86_64): ratesci_1.0.0.tgz |
Old sources: | ratesci archive |
Reverse imports: | CIfinder |
Please use the canonical form https://CRAN.R-project.org/package=ratesci to link to this page.