Learn R Programming

MortalityTables (version 2.0)

deathProbabilities: Return the (cohort) death probabilities of the life table given the birth year (if needed)

Description

Return the (cohort) death probabilities of the life table given the birth year (if needed)

Usage

deathProbabilities(object, ..., ages = NULL, YOB = 1975)

# S4 method for mortalityTable.period deathProbabilities(object, ..., ages = NULL, YOB = 1975)

# S4 method for mortalityTable.ageShift deathProbabilities(object, ..., ages = NULL, YOB = 1975)

# S4 method for mortalityTable.trendProjection deathProbabilities(object, ..., ages = NULL, YOB = 1975)

# S4 method for mortalityTable.improvementFactors deathProbabilities(object, ..., ages = NULL, YOB = 1975)

# S4 method for mortalityTable.mixed deathProbabilities(object, ..., ages = NULL, YOB = 1975)

# S4 method for mortalityTable.jointLives deathProbabilities(object, ..., ageDifferences = c(), ages = NULL, YOB = 1975)

# S4 method for mortalityTable.observed deathProbabilities(object, ..., ages = NULL, YOB = 1975)

Arguments

object

The life table object (class inherited from mortalityTable)

...

Other parameters (currently unused)

ages

Desired age range (if NULL, the probabilities of the age range provided by the table will be returned), missing ages will be filled with NA

YOB

The birth year for which the death probabilities should be calculated

ageDifferences

A vector of age differences of all joint lives.

Methods (by class)

  • mortalityTable.period: Return the (cohort) death probabilities of the life table given the birth year (if needed)

  • mortalityTable.ageShift: Return the (cohort) death probabilities of the life table given the birth year (if needed)

  • mortalityTable.trendProjection: Return the (cohort) death probabilities of the life table given the birth year (if needed)

  • mortalityTable.improvementFactors: Return the (cohort) death probabilities of the life table given the birth year (if needed)

  • mortalityTable.mixed: Return the (cohort) death probabilities of the life table given the birth year (if needed)

  • mortalityTable.jointLives: Return the (cohort) death probabilities of the life table given the birth year (if needed)

  • mortalityTable.observed: Return the (cohort) death probabilities of the life table given the birth year (if needed)

Examples

Run this code
# NOT RUN {
mortalityTables.load("Austria_Annuities")
deathProbabilities(AVOe2005R.male, YOB = 1975)
deathProbabilities(AVOe2005R.male, YOB = 2017)

mortalityTables.load("Germany_Census")
table.JL = mortalityTable.jointLives(
    name = "ADSt 24/26 auf verbundene Leben",
    table = mort.DE.census.1924.26.male
)
deathProbabilities(table.JL, YOB = 1977, ageDifferences = c(1, 5, -5, 16))
deathProbabilities(table.JL, YOB = 1977, ageDifferences = c(0))
deathProbabilities(table.JL, YOB = 1977, ageDifferences = c(1, 5, 16))

# }

Run the code above in your browser using DataLab