Learn R Programming

ratesci (version 1.0.0)

Confidence Intervals and Tests for Comparisons of Binomial Proportions or Poisson Rates

Description

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) from Miettinen and Nurminen (1985) and Gart and Nam (1988) , 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) , 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.

Copy Link

Version

Install

install.packages('ratesci')

Monthly Downloads

492

Version

1.0.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Pete Laud

Last Published

June 20th, 2025

Functions in ratesci (1.0.0)

tdasci

t-distribution asymptotic score ("TDAS") confidence intervals for random effects stratified 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.
scasci

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

Score confidence intervals and tests for a single binomial or Poisson rate, or for comparisons of independent rates, with or without stratification.
rateci

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

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

Corticosteroids in acute traumatic brain injury: updated systematic review of randomised controlled trials
pairbinci

Confidence intervals for comparisons of paired binomial rates.
moverci

Method of Variance Estimates Recovery ("MOVER") 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.
clusterpci

Score confidence intervals for a single binomial rate from clustered data.
compress

Systematic review of the effect of graduated compression stockings for prevention of DVT
ratesci-package

ratesci: Confidence Intervals and Tests for Comparisons of Binomial Proportions or Poisson Rates
cisapride

Meta-analysis of the effect of cisapride for treatment of non-ulcer dyspepsia