Learn R Programming

epitools (version 0.09)

pois.exact: Exact confidence interval for Poisson counts or rates

Description

Calculates exact confidence interval for Poisson counts or rates

Usage

pois.exact(x, pt = 1, conf.level = .95)

Arguments

x
count or vector of counts
pt
person-time at risk (default = 1)
conf.level
confidence level (default = 0.95)

Value

  • This function returns a n x 6 matrix with the following colnames:
  • xPoisson count
  • ptperson-time at risk
  • ratecrude rate = x/pt
  • conf.levelconfidence level
  • lcilower confidence limit
  • uciupper confidence limit

Details

By default, this function calculates an exact confidence interval for a Poisson count x (pt = 1). To calculate an exact confidence interval for a crude rate (count divided by person-time at risk), set pt equal to the person-time at risk. Both x and pt can be either a number or a vector of numbers.

References

none

See Also

See also binom.exact, binom.test

Examples

Run this code
pois.exact(1:10)

Run the code above in your browser using DataLab