ColoCan | R Documentation |
County-wise death counts of colorectal cancer patients in Indiana during years 2000 through 2004.
data(ColoCan)
A data frame containing 184 observations on the following variables.
event | Death counts. |
pop | Population from Census 2000. |
sex | Gender of population. |
wrt | Proportion of Whites. |
brt | Proportion of Blacks. |
ort | Proportion of other minorities. |
lat | Latitude. |
lon | Longitude. |
geog | Geographic location, derived from lat
and lon . |
scrn | Colorectal cancer screening rate. |
name | County name. |
geog
was generated from lat
and lon
using the
code given in the example section.
Dr. Tonglin Zhang.
Zhang, T. and Lin, G. (2009), Cluster detection based on spatial associations and iterated residuals in generalized linear mixed models. Biometrics, 65, 353–360.
## Converting latitude and longitude to x-y coordinates
## The 49th county is Marion, where Indianapolis is located.
## Not run: ltln2xy <- function(latlon,latlon0) {
lat <- latlon[,1]*pi/180; lon <- latlon[,2]*pi/180
lt0 <- latlon0[1]*pi/180; ln0 <- latlon0[2]*pi/180
x <- cos(lt0)*sin(lon-ln0); y <- sin(lat-lt0)
cbind(x,y)
}
data(ColoCan)
latlon <- as.matrix(ColoCan[,c("lat","lon")])
ltln2xy(latlon,latlon[49,])
## Clean up
rm(ltln2xy,ColoCan,latlon)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.