Learn R Programming

SEERaBomb (version 2015.2)

stdUS: The standard population of the US in 2000

Description

The US population in 2000 for ages up to 100 years. Sexes are pooled.

Usage

stdUS

Arguments

Details

This population data can be used to map age specific incidence rate vectors into summarizing scalars. It allows cancer incidence rates across different SEER registries to be compared without concerns of differences in age distributions of the populations.

References

http://seer.cancer.gov/stdpopulations/

Examples

Run this code
library(SEERaBomb)
with(stdUS,plot(age,pop/1e6,type="l",xlab="Age",
     ylab="People (Millions)",main="US Population in 2000"))
library(dplyr)
stdUS%>%filter(age>=85)%>%summarize(weighted.mean(age,w=pop)) 
### so ave age >=85.0 is 89.4

Run the code above in your browser using DataLab