expected: Compute Expected Numbers of Disease

Description Usage Arguments Details Value Author(s) References Examples

View source: R/expected.R

Description

Compute the internally indirect standardized expected numbers of disease.

Usage

1
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

1
2
3
4
5
6
7
8
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 May 30, 2017, 5:23 a.m.

Search within the SpatialEpi package
Search all R packages, documentation and source code