Learn R Programming

gss (version 2.2-8)

ColoCan: Colorectal Cancer Mortality Rate in Indiana Counties

Description

County-wise death counts of colorectal cancer patients in Indiana during years 2000 through 2004.

Usage

data(ColoCan)

Arguments

Format

A data frame containing 184 observations on the following variables.

eventDeath counts.
popPopulation from Census 2000.
sexGender of population.
wrtProportion of Whites.
brtProportion of Blacks.
ortProportion of other minorities.
latLatitude.
lonLongitude.
geogGeographic location, derived from lat and lon.
scrnColorectal cancer screening rate.
nameCounty name.

Details

geog was generated from lat and lon using the code given in the example section.

References

Zhang, T. and Lin, G. (2009), Cluster detection based on spatial associations and iterated residuals in generalized linear mixed models. Biometrics, 65, 353--360.

Examples

Run this code
## Converting latitude and longitude to x-y coordinates
## The 49th county is Marion, where Indianapolis is located.
if (FALSE) 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)

Run the code above in your browser using DataLab