Learn R Programming

ratesci (version 0.5.0)

Confidence Intervals for Comparisons of Binomial or Poisson Rates

Description

Computes confidence intervals for the rate (or risk) difference ('RD') or rate ratio (or relative risk, 'RR') for binomial proportions or Poisson rates, or for odds ratio ('OR', binomial only). Also confidence intervals for a single binomial or Poisson rate, and intervals for matched pairs. Includes skewness-corrected asymptotic score ('SCAS') methods, which have been developed in Laud (2017) from Miettinen & Nurminen (1985) and Gart & Nam (1988) . The same score produces hypothesis tests analogous to the test for binomial RD and RR by Farrington & Manning (1990) , or 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 corrections, and the amount of correction can be selected to avoid over-conservative coverage. Also includes methods for stratified calculations (e.g. meta-analysis), either assuming fixed effects (matching the CMH test) or incorporating stratum heterogeneity.

Copy Link

Version

Install

install.packages('ratesci')

Monthly Downloads

379

Version

0.5.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Pete Laud

Last Published

January 10th, 2025

Functions in ratesci (0.5.0)

ratesci-package

ratesci: Confidence Intervals for Comparisons of Binomial or Poisson Rates
moverbci

Approximate Bayesian ("MOVER-B") confidence intervals for comparisons of independent binomial or Poisson rates.
pairbinci

Confidence intervals for comparisons of paired binomial rates.
scasci

Skewness-corrected asymptotic score ("SCAS") confidence intervals for comparisons of independent binomial or Poisson rates.
scoreci

Score confidence intervals for comparisons of independent binomial or Poisson rates.
rateci

Selected confidence intervals for the single binomial or Poisson rate.
moverci

MOVER confidence intervals for comparisons of independent binomial or Poisson rates.
scaspci

Skewness-corrected asymptotic score ("SCAS") confidence intervals for single binomial or Poisson rate using closed-form calculations. This function is vectorised in x, n.
tdasci

t-distribution asymptotic score ("TDAS") confidence intervals for comparisons of independent binomial or Poisson rates.
jeffreysci

Jeffreys and other approximate Bayesian confidence intervals for a single binomial or Poisson rate.