confIntRateRatio: Compute confidence interval for a rate ratio

View source: R/confIntRateRatio.R

confIntRateRatioR Documentation

Compute confidence interval for a rate ratio

Description

A method to compute a confidence interval for a rate ratio is provided. The method is based on a Wald interval for the log rate ratio.

Usage

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

Arguments

x

A vector of length 2 containing the number of events in each group.

t

A numeric vector of length 2 containing the total observation time in each group.

conf.level

A numeric vector of length 1 containing the confidence level for the confidence interval.

Value

A named numeric vector of length 3 containing the rate ratio and the limits of the confidence interval.

Author(s)

Leonhard Held

References

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

See Also

link[biostatUZH]{confIntRateDiff}

Examples

    x <- c(30, 50)
    t <- c(100, 120)
    confIntRateRatio(x, t)


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