expected | R Documentation |
Compute the internally indirect standardized expected numbers of disease.
expected(population, cases, n.strata)
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 |
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.
expected.cases |
a vector of the expected numbers of disease for each area |
Albert Y. Kim
Elliot, P. et al. (2000) Spatial Epidemiology: Methods and Applications. Oxford Medical Publications.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.