zones | R Documentation |
Based on the population counts and centroid coordinates of each of n
areas, output the set of n.zones
single zones as defined by Kulldorff and other geographical information.
zones(geo, population, pop.upper.bound)
geo |
|
population |
a vector of population counts of each area |
pop.upper.bound |
maximum proportion of study region each zone can contain |
A list containing
nearest.neighbors |
list of |
cluster.coords |
|
dist |
|
Albert Y. Kim
Kulldorff, M. (1997) A spatial scan statistic. Communications in Statistics: Theory and Methods, 26, 1481–1496. Kulldorff M. and Nagarwalla N. (1995) Spatial disease clusters: Detection and Inference. Statistics in Medicine, 14, 799–810.
data(pennLC) geo <- pennLC$geo[,2:3] geo <- latlong2grid(geo) population <- tapply(pennLC$data$population, pennLC$data$county, sum) pop.upper.bound <- 0.5 geo.info <- zones(geo, population, pop.upper.bound)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.