epitools (version 0.09)

binom.exact: Exact confidence intervals for binomial counts or proportions

Description

Calculates exact confidence intervals for binomial counts or proportions

Usage

binom.exact(x, n, conf.level = .95)

Arguments

x
number of successes in n trials
n
number of Bernoulli trials
conf.level
confidence level (default = 0.95)

Value

  • This function returns a n x 6 matrix with the following colnames:
  • xnumber of successes in n trials
  • nnumber of Bernoulli trials
  • proportionproportion = x/n
  • conf.levelconfidence level
  • lcilower confidence interval limit
  • uciupper confidence interval limit

Details

Calculates exact confidence intervals for binomial counts or proportions.

References

none

See Also

See also binom.test, pois.exact

Examples

Run this code
binom.exact(1:10, seq(10, 100, 10))

Run the code above in your browser using DataCamp Workspace