calcPoisExact: Calculate crude incidence rates using the Poisson exact...

View source: R/getIncidence.R

calcPoisExactR Documentation

Calculate crude incidence rates using the Poisson exact method.

Description

Calculate crude incidence rates using the Poisson exact method.

Usage

calcPoisExact(dat, byVar = "Year", fmt = TRUE)

Arguments

dat

A dataset from AggByYear or AggByAge.

byVar

Either "AgeCat" or "Year".

fmt

If TRUE, format by 100 person-years and round off to three decimal places.

Value

data.frame

Examples

Args <- setArgs(imputeMethod = imputeMidPoint)
rtdat <- getRTData(getHIV())
idat <- getIncData(rtdat, Args = Args)
idat_yr <- AggByYear(idat)
calcPoisExact(idat_yr, byVar="Year")

vando026/ahri documentation built on Aug. 10, 2024, 3:20 p.m.