transitionProbabilities {MortalityTables} | R Documentation |
Return all transition probabilities of the pension table (generational probabilities)
Description
Return all transition probabilities of the pension table (generational probabilities)
Usage
transitionProbabilities(object, ...)
## S4 method for signature 'pensionTable'
transitionProbabilities(
object,
YOB = 1982,
...,
ages = NULL,
OverallMortality = FALSE,
Period = NULL,
retirement = NULL,
invalids.retire = object@invalids.retire,
as.data.frame = TRUE
)
Arguments
object |
A pension table object (instance of a |
... |
Currently unused |
YOB |
Year of birth |
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 |
OverallMortality |
Whether the overall mortality should be returned for actives, or the active mortality |
Period |
Observation year to calculate period transition probabilities.
If given, this arguments overrides the |
retirement |
Override the retirement transition probabilities of the pension table. Possible values are:
|
invalids.retire |
Override the |
as.data.frame |
Whether the return value should be a data.frame or an array containing transition matrices |
Methods (by class)
-
transitionProbabilities(pensionTable)
: Return all transition probabilities of the pension table for the generation YOB
Examples
pensionTables.load("USA_PensionPlans")
transitionProbabilities(RP2014.male, YOB = 1962)
transitionProbabilities(RP2014.male, Period = 1955)
transitionProbabilities(RP2014.male, Period = 2025)