ratesci-package: ratesci: A package for computing confidence intervals for...

ratesci-packageR Documentation

ratesci: A package for computing confidence intervals for various comparisons of independent binomial and Poisson rates.

Description

Computes confidence intervals for the rate difference (RD), rate ratio (RR), or odds ratio (OR), or for the single rate (p), for independent binomial or Poisson rates. Includes score-based methods with (or without) skewness correction, developed from the Miettinen-Nurminen and Gart-Nam methods, and the "Method of Variance Estimates Recovery", originating from Newcombe. For the single-stratum case, the skewness-corrected asymptotic score (SCAS) method is recommended (Laud 2017), on the basis of superior equal-tailed coverage. Hypothesis tests (a corrected version of the Farrington-Manning test) follow naturally from the score-based methods, and are equivalent to the Cochran-Mantel-Haenszel (CMH) test if the skewness correction is omitted.

ratesci functions

  • scoreci: for score-based confidence intervals

  • scasci: wrapper function to compute SCAS interval

  • tdasci: wrapper function to compute TDAS stratified interval

  • moverci: for the MOVER method

  • moverbci: wrapper function to compute MOVER-B interval

  • jeffreysci: wrapper function to compute Jeffreys interval for a single rate

  • pairbinci: for paired binomial data

  • scaspci: non-iterative SCAS method for a single rate

  • rateci: wrapper function for SCAS, Jeffreys or 'exact' methods for a single rate

Author(s)

Pete Laud, p.j.laud@sheffield.ac.uk

References

Laud PJ. Equal-tailed confidence intervals for comparison of rates. Pharmaceutical Statistics 2017; 16:334-348.

Laud PJ. Corrigendum: Equal-tailed confidence intervals for comparison of rates. Pharmaceutical Statistics 2018; 17:290-293.

Tang Y. Score confidence intervals and sample sizes for stratified comparisons of binomial proportions. Statistics in Medicine 2020; 39:3427–3457.

Tang Y. Comments on “Equal-tailed confidence intervals for comparison of rates”. Pharmaceutical Statistics 2021; online ahead of print.

Laud PJ. Author's reply to the letter to the editor by Yongqiang Tang: Comments on “Equal-tailed confidence intervals for comparison of rates”. Pharmaceutical Statistics 2021; online ahead of print.

Miettinen OS, Nurminen M. Comparative analysis of two rates. Statistics in Medicine 1985; 4:213-226.

Gart JJ. Analysis of the common odds ratio: corrections for bias and skewness. Bulletin of the International Statistical Institute 1985, 45th session, book 1, 175-176.

Gart JJ, Nam JM. Approximate interval estimation of the ratio of binomial parameters: A review and corrections for skewness. Biometrics 1988; 44(2):323-338.

Gart JJ, Nam JM. Approximate interval estimation of the difference in binomial parameters: correction for skewness and extension to multiple tables. Biometrics 1990; 46(3):637-643.

Farrington CP, Manning G. Test statistics and sample size formulae for comparative binomial trials with null hypothesis of non-zero risk difference or non-unity relative risk. Statistics in Medicine 1990; 9(12):1447–1454.

Newcombe RG. Interval estimation for the difference between independent proportions: comparison of eleven methods. Statistics in Medicine 1998; 17(8):873-890.

Donner A, Zou G. Closed-form confidence intervals for functions of the normal mean and standard deviation. Statistical Methods in Medical Research 2012; 21(4):347-359.


PeteLaud/ratesci documentation built on July 22, 2023, 1:12 p.m.