expected: Compute Expected Numbers of Disease

View source: R/expected.R

expectedR Documentation

Compute Expected Numbers of Disease

Description

Compute the internally indirect standardized expected numbers of disease.

Usage

expected(population, cases, n.strata)

Arguments

population

a vector of population counts for each strata in each area

cases

a vector of the corresponding number of cases

n.strata

number of strata considered

Details

The population and cases vectors must be balanced: all counts are sorted by area first, and then within each area the counts for all strata are listed (even if 0 count) in the same order.

Value

expected.cases

a vector of the expected numbers of disease for each area

Author(s)

Albert Y. Kim

References

Elliot, P. et al. (2000) Spatial Epidemiology: Methods and Applications. Oxford Medical Publications.

Examples

data(pennLC)
population <- pennLC$data$population
cases <- pennLC$data$cases
## In each county in Pennsylvania, there are 2 races, gender and 4 age bands 
## considered = 16 strata levels
pennLC$data[1:16,]
expected(population, cases, 16)



SpatialEpi documentation built on March 7, 2023, 8 p.m.