sirCI: Exact CI (and estimate) for SIR/SMR

Description Usage Arguments See Also Examples

View source: R/sirCI.R

Description

Exact CI (and estimate) for SIR/SMR

Usage

1
sirCI(O, E, conf.level = 0.95)

Arguments

O

observed cases

E

expected cases

conf.level

confidence level for the returned confidence interval (two sided)

See Also

Guidelines for Using confidence intervals for public healt assessment" - Washington State Department of Health, July 13, 2012

Examples

1
2
3
4
## FDK Liddel, "Simple exact analysis of the standardised mortality
## ratio", Journal of Epidemiology and Community Health 1984, 38, 85-88
x <- data.frame(D = c(8,23,210), E=c(3.59,17.83,180), cl = c(0.9,0.95,0.95))
t(apply(x, 1, function(x) sirCI(x[1], x[2], x[3])))

lbraglia/yapomif documentation built on May 20, 2019, 11:26 p.m.