SpatialEpi (version 1.1)

expected: 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

Value

  • expected.casesa vector of the expected numbers of disease for each area

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.

References

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

Examples

Run this code
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)

Run the code above in your browser using DataCamp Workspace