lifetable-class {lifecontingencies} | R Documentation |
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.
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 agex
. 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 fromlifetable
tomarkovchainList
- 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 methodsignature(x = "lifetable")
: method to print the survival probability implied in the table- show
signature(object = "lifetable")
: identical toplot
method- summary
signature(object = "lifetable")
: it returns summary information about the object
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.
Note
t
may be missing in pxt
, qxt
, ext
. It assumes value equal to 1 in such case.
Author(s)
Giorgio A. Spedicato
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
Examples
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)