confIntRate: Wald and Wilson confidence intervals for Poisson rates

View source: R/confIntRate.R

confIntRateR Documentation

Wald and Wilson confidence intervals for Poisson rates

Description

Compute a confidence interval for Poisson rates using the Wald and Wilson methods.

Usage

confIntRate(x, t, conf.level = 0.95)

confIntRateWald(x, t, conf.level = 0.95)

confIntRateWilson(x, t, conf.level = 0.95)

Arguments

x

Number of events.

t

Total observation time.

conf.level

Confidence level for confidence interval.

Value

confIntRate returns a data.frame with columns: x, t, type, rate, lower, upper.

confIntRateWaldreturns a matrix with columns rate, lower, and upper.

confIntRateWilson returns a matrix with columns rate, lower, and upper.

Author(s)

Leonhard Held

References

Held, L., Rufibach, K. and Seifert, B. (2013). Medizinische Statistik - Konzepte, Methoden, Anwendungen. Section 8.2.

See Also

confIntRateDiff, package Hmisc.

Examples


confIntRateWald(x = 1, t = 2.2)
confIntRateWilson(x = 1, t = 2.2)
confIntRate(x = 3:1, t = seq(from = 1, to = 2.2, length.out = 3))


felix-hof/biostatUZH documentation built on Sept. 27, 2024, 1:48 p.m.