powered by
Generate a dataframe suitable to be passed to the mortalityTable.ageShift class.
generateAgeShift(initial = 0, YOBs = c(1900, 2100), step = -1)
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
generateAgeShift(initial = 1, YOBs = c(1922, 1944, 1958, 1973, 1989, 2006, 2023, 2041, 2056))
Run the code above in your browser using DataLab