Census data sets for the expected survival and person years functions.
data(survexp, package="survival")
total United States population, by age and sex, 1940 to 2012.
United States population, by age, sex and race, 1940 to 2014. Race is white, nonwhite, or black. For 1960 and 1970 the black population values were not reported separately, so the nonwhite values were used.
total Minnesota population, by age and sex, 1970 to 2013.
Each of these tables contains the daily hazard rate for a matched
subject from the population, defined as
Each table is stored as an array, with additional attributes, and
can be subset and manipulated as standard R arrays.
See the help page for ratetable
for details.
All numeric dimensions of a rate table must be in the same units.
The survexp.us
rate table contains daily hazard rates, the age
cutpoints are in days, and the calendar year cutpoints are a Date.
# NOT RUN {
survexp.uswhite <- survexp.usr[,,"white",]
# }
Run the code above in your browser using DataLab