An object of class ratetable for the expected mortality of the United States population. It is an array with three dimensions: age, sex and year.
data(usa.ratetable)
The format is "ratetable". The attributes are:
dim |
A numeric vector with the length of each dimension. |
dimnames |
A vector with the names of each variable of the three dimensions. |
dimid |
A character vector with the identification of the dimensions: age , year and sex . |
factor |
A vector of indicators equals to 1 if the corresponding dimension does not vary |
according to the time. Only the dimension related to sex is associated to 1. |
|
cutpoints |
A list of the thresholds to identify the changes in mortality rates according to |
the time-dependent dimensions (NULL for sex ). |
|
class |
The class of the object: ratetable . |
The organization of a ratetable object is described in details by Therneau (1999) and Pohar (2006). The original data and updates can be downloaded from the Human Life-Table Database (HMD, The Human Mortality Database).
T. Therneau, J. Offord. Expected Survival Based on Hazard Rates (Update), Technical Report, Section of Biostatistics, Mayo Clinic 63, 1999.
Pohar M, Stare J. Relative survival analysis in R. Computer Methods and Programs in Biomedicine 2016; 81: 272-278. <DOI: 10.1016/j.cmpb.2006.01.004>
# NOT RUN {
data(usa.ratetable)
is.ratetable(usa.ratetable)
# }
Run the code above in your browser using DataLab