binomSamSize-package {binomSamSize}R Documentation

Confidence intervals and sample size determination for a binomial proportion under simple random sampling and pooled sampling


A suite of functions to compute confidence intervals and necessary sample sizes for the parameter p of the Bernoulli B(p) distribution under simple random sampling or under pooled sampling. Such computations are e.g. of interest when investigating the incidence or prevalence in populations.

The package contains functions to compute coverage probabilities and coverage coefficients of the provided confidence intervals procedures. Sample size calculations are based on expected length and coverage probabilities of the resulting confidence intervals.


Package: binomSamSize
Type: Package
Version: 0.1-3
Date: 2013-12-10
License: GPL-3
LazyLoad: yes

The packages relies heavily on the functions in the package binom by Sundar Dorai-Raj.

Other R packages containing similar functionality for calculating sample sizes for pooled sampling is the binGroup package. Also the epiR has further functionality for computing sample sizes for tests with sensitivity and specificity different from 1.

Functionality for pooled prevalence calculations with a nice web interface can also be found at

Note that the package is still in a development stage. As a consequence, use the results of the package with care because bugs, inconsistencies and errors might exist. In case you find bugs please do not hesitate to report them to the package maintainer.


Michael Höhle with contributions by Wei Liu

Maintainer: Michael Höhle <>


Piegorsch, W. W. (2004), Sample sizes for improved binomial confidence intervals, Computational Statistics and Data Analysis, 46:309–316.

See Also

Package binom.confint{binom::binom.confint}

[Package binomSamSize version 0.1-5 Index]