ageShift: Return the age shift of the age-shifted life table given the...

ageShiftR Documentation

Return the age shift of the age-shifted life table given the birth year

Description

Return the age shift of the age-shifted life table given the birth year

Usage

ageShift(object, YOB = 1975, ...)

## S4 method for signature 'mortalityTable'
ageShift(object, YOB = 1975, ...)

## S4 method for signature 'mortalityTable.ageShift'
ageShift(object, YOB = 1975, ...)

Arguments

object

The life table object (class inherited from mortalityTable)

YOB

The birth year for which the age shift should be determined.

...

Other parameters (currently unused)

Methods (by class)

  • ageShift(mortalityTable): Age shifts apply only to mortalityTagle.ageShift, so all other tables return NA.

  • ageShift(mortalityTable.ageShift): Return the age shift of the age-shifted life table given the birth year

Examples

mortalityTables.load("Austria_Annuities")
ageShift(AVOe2005R.male.av, YOB=1910)
ageShift(AVOe2005R.male.av, YOB=1955)
ageShift(AVOe2005R.male.av, YOB=2010)
# A table with trend does NOT have any age shift, so NA is returned:
ageShift(AVOe2005R.male, YOB=1910)


MortalityTables documentation built on Nov. 2, 2023, 5:52 p.m.