incrates: Calculate incidence rates with CI

Description Usage Arguments Value Examples

View source: R/stats.R

Description

Calculate incidence rates with CI

Usage

1
incrates(count, denom, data, per = 1e+05, conflvl = 0.95)

Arguments

count

variable to be used as countfor calculating the incidence

denom

denominator to use for incidence rates

data

Optionnal data.frame containing the data

per

integer to use as unit per

conflvl

The confidence level, usualy 0.95

Value

a table of result

Examples

1
2
3
dat <- data.frame("lab"=c("A","B","C"),"nb"=c(5,10,20),"den"=c(100,120,150))
setdata(dat)
incrates(nb,den, dat)

gdesve/epifield documentation built on Jan. 23, 2022, 10:03 a.m.