BinaryExactCI function

Exact Confidence interval for Binary Proportion

Exact Confidence interval for Binary Proportion

This function calculates the exact confidendence interval for a response rate presented by nn and rr.

BinaryExactCI(r, n, alpha = 0.05, drop = TRUE)

Arguments

  • r: Number of success or responder
  • n: Sample size
  • alpha: confidence level
  • drop: Determines if drop will be called on the result

Returns

100 (1-α\alpha)% exact confidence interval for given response rate

Details

Confidence intervals are obtained by a procedure first given in Clopper and Pearson (1934). This guarantees that the confidence level is at least (1-α\alpha).

Details can be found in the publication listed below.

Examples

BinaryExactCI(3, 20, 0.05)

References

Clopper, C. J. & Pearson, E. S. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika 1934.

  • Maintainer: Sebastian Weber
  • License: GPL (>= 3)
  • Last published: 2025-01-21