generateAgeShift {MortalityTables}R Documentation

Generate data.frame containing age shifts for each birth year

Description

Generate a dataframe suitable to be passed to the mortalityTable.ageShift class.

Usage

generateAgeShift(initial = 0, YOBs = c(1900, 2100), step = -1)

Arguments

initial

Age shift for the first birth year given in the YOBs vector

YOBs

Vector of birth years in which the age shift changes by step. The last entry gives the first birth year that does not have any shift defined any more.

step

How much the age shift changes in each year given in the YOBs vector

Examples

generateAgeShift(initial = 1, YOBs = c(1922, 1944, 1958, 1973, 1989, 2006, 2023, 2041, 2056))


[Package MortalityTables version 2.0.5 Index]