mortalityTable.ageShift-class: Class mortalityTable.ageShift - Cohort life tables generated...

Description Slots Examples

Description

A cohort life table, obtained by age-shifting from a given base table (death probabilities

Slots

ageShifts

A data.frame with columns YOB and shifts giving the age shifts for each birth year

Examples

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))

kainhofer/r-mortality-tables documentation built on Dec. 17, 2020, 3:53 a.m.