Learn R Programming

lifecontingencies (version 1.3.12)

lifetable-class: Class "lifetable"

Description

lifetable objects allow to define and use life tables with the aim to evaluate survival probabilities and mortality rates easily. Such values represent the building blocks used to estimate life insurances actuarial mathematics.

Arguments

Objects from the Class

Objects can be created by calls of the form new("lifetable", ...). Two vectors are needed. The age vector and the population at risk vector.

Slots

x:

Object of class "numeric", representing the sequence 0,1,\(\ldots, \omega\)

lx:

Object of class "numeric", representing the number of lives at the beginning of age \(x\). It is a non increasing sequence. The last element of vector x is supposed to be > 0.

name:

Object of class "character", reporting the name of the table

Methods

coerce

signature(from = "lifetable", to = "data.frame"): method to create a data - frame from a lifetable object

coerce

signature(from = "lifetable", to = "markovchainList"): coerce method from lifetable to markovchainList

coerce

signature(from = "lifetable", to = "numeric"): brings to numeric

coerce

signature(from = "data.frame", to = "lifetable"): brings to life table

getOmega

signature(object = "lifetable"): returns the maximum attainable life age

plot

signature(x = "lifetable", y = "ANY"): plot method

head

signature(x = "lifetable"): head method

print

signature(x = "lifetable"): method to print the survival probability implied in the table

show

signature(object = "lifetable"): identical to plot method

summary

signature(object = "lifetable"): it returns summary information about the object

Author

Giorgio A. Spedicato

Warning

The function is provided as is, without any warranty regarding the accuracy of calculations. The author disclaims any liability for eventual losses arising from direct or indirect use of this software.

References

Actuarial Mathematics (Second Edition), 1997, by Bowers, N.L., Gerber, H.U., Hickman, J.C., Jones, D.A. and Nesbitt, C.J.

See Also

actuarialtable

Examples

Run this code
showClass("lifetable")
data(soa08)
summary(soa08)
#the last attainable age under SOA life table is
getOmega(soa08) 
#head and tail
data(soaLt)
tail(soaLt)
head(soaLt)

Run the code above in your browser using DataLab