A cohort life table, obtained by age-shifting from a given base table (death probabilities
ageShifts
A data.frame
with columns YOB
and shifts
giving the age shifts for each birth year
1 2 3 4 5 6 7 | mortalityTables.load("Austria_Annuities_AVOe2005R")
tb = mortalityTable.ageShift(
ages = ages(AVOe2005R.male),
deathProbs = deathProbabilities(AVOe2005R.male, YOB = 1992),
ageShifts = generateAgeShift(1, c(1962, 1985, 2000, 2015, 2040, 2070)))
# The cohort tables for different birth years are just the base probabilities with modified ages
plot(getCohortTable(tb, YOB = 1963), getCohortTable(tb, YOB = 2017))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.