R: Colorectal Cancer Mortality Rate in Indiana Counties

ColoCan {gss} | R Documentation

## 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)

### Format

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.

### Details

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

### Source

Dr. Tonglin Zhang.

### 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

    ## 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)

[Package gss version 2.2-2 Index]