Skip to content

ratesci

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

v1.1.0 · Jul 2, 2026 · GPL (>= 3)

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) <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.

Downloads

CRAN

435

Last 30 days

9771st

1.1K

Last 90 days

4.4K

Last year

Trend: +39.9% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

27

Last 90 days

130

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

7

Last 7 days

14

Last 30 days

5

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

12,847

Files

88

Compiled share

0%

Has compiled src

No

Language breakdown

R 7,275 (56.6%)Tests 1,808 (14.1%)Docs 2,486 (19.4%)Vignettes 1,278 (9.9%)

API

Exported functions

18

Internal functions

17

Recent export changes

v1.1.0+8 moverpairci, orci, orpairci +5 more
v1.0.0+1 clusterpci

Testing & CI

Has tests

Yes

Test-to-code ratio

0.25

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.6.0

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

7

First release

2016-11-13

Latest release

2026-07-02

Avg cadence

339 days

Cold removal rate

Dep drift

2

LOC over versions

v0.1-0: 2,080 LOCv0.2-0: 2,615 LOCv0.3-0: 3,379 LOCv0.4-0: 4,568 LOCv0.5.0: 5,751 LOCv1.0.0: 8,677 LOCv1.1.0: 12,847 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies CIfinder ratesci

Version History

8 tracked
updated 1.1.0 ← 1.0.0 diff Jul 2, 2026
new 1.0.0 Mar 10, 2026
updated 1.0.0 ← 0.5.0 diff Jun 19, 2025
updated 0.5.0 ← 0.4-0 diff Jan 9, 2025
updated 0.4-0 ← 0.3-0 diff Dec 4, 2021
updated 0.3-0 ← 0.2-0 diff Feb 14, 2018
updated 0.2-0 ← 0.1-0 diff Apr 20, 2017
new 0.1-0 Nov 12, 2016