Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

Methods and Data for Spatial Epidemiology

v1.2.3
GPL-2
Authors
Cici Chen [ctb], Albert Y. Kim [aut, cre], Michelle Ross [ctb], Jon Wakefield [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.