Blyth-Still-Casella Confidence Interval

Provides a fast calculation of the Blyth-Still-Casella confidence interval. The implementation follows the 'StatXact' 9 manual (Cytel 2010) and "Refining Binomial Confidence Intervals" by George Casella (1986) .


rbscCI

This package is an R wrapper of the C++ implementaton of the Blyth-Still-Casella confidence interval https://github.com/keithw/biostat.

It requires C++11 and the boost C++ library: https://www.boost.org/. The original C++ code is wrapped with an R interface using Rcpp and the boost library depedency is handled by the BH R package.

Installation

You can install the released version of rbscCI from CRAN with:

install.packages("rbscCI")

Example

This is a basic example to find the 95% confidence interval of the probability of success when there are 25 success out of 100 coin flips:

library(rbscCI)
bscCI(100, 25, 0.95, digits = 3)
#> [1] 0.171 0.341

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rbscCI")

0.1.1 by Shimeng Huang, 3 years ago


Browse source code at https://github.com/cran/rbscCI


Authors: Shimeng Huang [aut, cre] , Keith Winstein [aut]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports Rcpp

Suggests testthat

Linking to Rcpp, BH


See at CRAN