Learn R Programming

MortalityTables (version 2.0)

mortalityTable.Weibull-class: Class mortalityTable.Weibull - Mortality table with Weibull's law

Description

A period life table following Weibulls's law of a mortality rate \(\mu\) increasing as a power of \(t\): $$\mu_{x+t} = k * (x+t)^n$$ The only required slots are the parameters \(k>0\) and \(n>0\), all probabilities are calculated from them, for technical reasons a maximum age of 150 is technically assumed. Optionally, a name and loading can be passed (inherited from mortalityTable).

Arguments

Slots

k

Parameter k of the Weibull distribution

n

Parameter n of the Weibull distribution

omega

Maximum age (default: 120)

Examples

Run this code
# NOT RUN {
# A Weibull mortality
wbl = mortalityTable.Weibull(k = 0.0000000001, n = 4.8)
mortalityTables.load("Austria_Annuities_AVOe2005R")
plot(wbl, AVOe2005R.male, Period=2017, ylim = c(0.00005, 1))

# }

Run the code above in your browser using DataLab