confIntRateDiff: Wald and Wilson confidence intervals for Poisson rates...

View source: R/confIntRate.R

confIntRateDiffR Documentation

Wald and Wilson confidence intervals for Poisson rates differences

Description

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

Usage

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

Arguments

x

vector of length 2, number of events in each group.

t

vector of length 2, total observation time in each group.

conf.level

Confidence level for confidence interval.

Value

A list with the entries:

rd

Estimated rate difference.

CIs

Data.frame containing confidence intervals for the rate difference.

Author(s)

Leonhard Held

References

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

See Also

confIntRateWilson, confIntRateWald

Examples


confIntRateDiff(x = c(30, 50), t = c(100, 120.1))


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