Description Details Author(s) Examples
This package contains functions to read cancer data from SEER (http://seer.cancer.gov/) and IARC (http://www.iarc.fr) to create datasets at the county level based on US census information.
Package: | UScancer |
Type: | Package |
Version: | 0.1-1 |
Date: | 2013-08-21 |
License: | GPL-2 |
Due to size constraints, US census and cancer data are not included in this package, but are necessary for the package to run. This data is freely available for download on the internet.
SEER cancer data can be downloaded (after completing a signed SEER Research Data Agreement form) at http://seer.cancer.gov/data/access.html.
The 2010 US Census Demographic Profile data in Shapefile format can be downloaded from http://www2.census.gov/geo/tiger/TIGER2010DP1/County_2010Census_DP1.zip.
Conversion from FIPS codes to county names is done through a lookup table included in this package – see the fipslookup
dataset.
Conversion from demographic profile data element to its full name is done through a lookup table included in this package – see the dplookup
dataset.
Conversion from cancer sites (types) to ICD-9 cancer codes are done through the siteLookup
.
Jonathan Lee
Maintainer: Jonathan Lee <jonathan@utstat.utoronto.ca>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(fipslookup)
data(dplookup)
## Not run:
censusData <- readCensus(state="Kentucky",fips=fipslookup,codes=dplookup)
seerData <- readSEER(year=2005,state="Kentucky",cancer="Larynx",fips=fipslookup)
library(diseasemapping)
larynxRates <- cancerRates("USA", year=1998:2002,site="Larynx")
kentucky <- getSMR(censusData,larynxRates,seerData,regoinCode="County")
breaks = c(0,1,seq(2, ceiling(max(kentucky$SMR)),by=2))
thecol = terrain.colors(length(breaks)-1)
plot(kentucky, col = thecol[cut(kentucky$SMR, breaks,include.lowest=TRUE)] )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.