Skip to contents

EbGlobal: Marshall (1991) global estimator as spdep::EBest. EbLocal: local estimator as spdep::EBlocal (neighbourhoods include the unit; variance terms use each neighbour's local mean). ProbabilityMap: Choynowski (1959) Poisson tail probabilities as spdep::probmap.

Usage

EbGlobal(cases, population)

EbLocal(cases, population, neighbours)

ProbabilityMap(cases, population, alternative = "less")

Arguments

cases

Counts.

population

Populations at risk.

neighbours

List of 1-based neighbour indices (self excluded).

alternative

"less" or "greater".

Value

List.

References

Marshall, R. J. (1991). Mapping disease and mortality rates using empirical Bayes estimators. Journal of the Royal Statistical Society C 40, 283-294.

Choynowski, M. (1959). Maps based on probabilities. Journal of the American Statistical Association 54, 385-388.

Examples

EbGlobal(c(2, 10, 3), c(100, 200, 150))$estimate
#> [1] 0.03333333 0.03333333 0.03333333
EbLocal(c(2, 10, 3), c(100, 200, 150), list(2, c(1, 3), 2))$estimate
#> [1] 0.03770492 0.03909603 0.03326316
ProbabilityMap(c(2, 10, 3), c(100, 200, 150))$pmap
#> [1] 0.3527762 0.9234459 0.2650259