Package: ratesci 1.1.0.9000

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

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 (2026, under review) for paired proportions. In each case, 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.

Authors:Pete Laud [aut, cre]

ratesci_1.1.0.9000.tar.gz
ratesci_1.1.0.9000.zip(r-4.7)ratesci_1.1.0.9000.zip(r-4.6)ratesci_1.1.0.9000.zip(r-4.5)
ratesci_1.1.0.9000.tgz(r-4.6-any)ratesci_1.1.0.9000.tgz(r-4.5-any)
ratesci_1.1.0.9000.tar.gz(r-4.7-any)ratesci_1.1.0.9000.tar.gz(r-4.6-any)
ratesci_1.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
ratesci/json (API)

# Install 'ratesci' in R:
install.packages('ratesci', repos = c('https://petelaud.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/petelaud/ratesci/issues

Pkgdown/docs site:https://petelaud.github.io

Datasets:
  • cisapride - Meta-analysis of the effect of cisapride for treatment of non-ulcer dyspepsia
  • compress - Systematic review of the effect of graduated compression stockings for prevention of DVT
  • crash - Corticosteroids in acute traumatic brain injury: updated systematic review of randomised controlled trials

On CRAN:

Conda:

7.11 score 3 stars 1 packages 57 scripts 430 downloads 18 exports 0 dependencies

Last updated from:9aa09f9bf7. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK247
source / vignettesOK187
linux-release-x86_64OK252
macos-release-arm64OK155
macos-oldrel-arm64OK177
windows-develOK206
windows-releaseOK240
windows-oldrelOK233
wasm-releaseOK108

Exports:clusterpcijeffreyscimoverbcimovercimoverpairciorciorpaircipairbinciratecirdcirdpaircirrcirrpairciscasciscaspciscoreciscorepaircitdasci

Dependencies:

4: Paired contrasts
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 | Other methods | References

Last update: 2026-06-26
Started: 2025-03-31

1: Single rate
Estimation of a single binomial or Poisson rate | Stratified datasets | Clustered datasets | Technical details | References

Last update: 2026-06-24
Started: 2025-03-18

2: Basic contrasts (single stratum)
Confidence intervals for comparisons of independent binomial or Poisson rates | SCAS and other asymptotic score methods | MOVER methods | Other methods | Technical details | References

Last update: 2026-06-24
Started: 2025-03-27

3: Stratified contrasts
Confidence intervals for stratified comparisons of independent binomial or Poisson rates | Random effects | References

Last update: 2026-06-24
Started: 2025-04-07

5: Hypothesis tests
Test for association and equivalence test produced by scoreci() and scorepairci() | 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

Last update: 2026-06-24
Started: 2025-04-07

Readme and manuals

Help Manual

Help pageTopics
Meta-analysis of the effect of cisapride for treatment of non-ulcer dyspepsiacisapride
Score confidence intervals for a single binomial rate from clustered data.clusterpci
Systematic review of the effect of graduated compression stockings for prevention of DVTcompress
Corticosteroids in acute traumatic brain injury: updated systematic review of randomised controlled trialscrash
Jeffreys and other approximate Bayesian confidence intervals for a single binomial or Poisson rate.jeffreysci
Approximate Bayesian ("MOVER-B") confidence intervals for comparisons of independent binomial or Poisson rates.moverbci
Method of Variance Estimates Recovery ("MOVER") confidence intervals for comparisons of independent binomial or Poisson rates.moverci
MOVER confidence intervals for comparisons of paired binomial rates.moverpairci
Confidence intervals for odds ratio with independent binomial proportions.orci
Confidence intervals for conditional odds ratio (OR) with paired binomial rates.orpairci
Confidence intervals and tests for comparisons of paired binomial rates.pairbinci
Selected confidence intervals for the single binomial or Poisson rate.rateci
Confidence intervals for rate difference (RD) with independent binomial or Poisson rates.rdci
Confidence intervals for rate difference (RD) with paired binomial rates.rdpairci
Confidence intervals for rate ratio (RR) with independent binomial or Poisson rates.rrci
Confidence intervals for rate ratio (RR) with paired binomial rates.rrpairci
Skewness-corrected asymptotic score ("SCAS") confidence intervals for comparisons of independent binomial or Poisson rates.scasci
Skewness-corrected asymptotic score ("SCAS") confidence intervals for single binomial or Poisson rate using closed-form calculations.scaspci
Score confidence intervals and tests for a single binomial or Poisson rate, or for comparisons of independent rates, with or without stratification.scoreci
Score confidence intervals and tests for comparisons of paired binomial rates.scorepairci
t-distribution asymptotic score ("TDAS") confidence intervals for random effects stratified comparisons of independent binomial or Poisson rates.tdasci