lifetable-class | R Documentation |
"lifetable"
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 can be created by calls of the form new("lifetable", ...)
.
Two vectors are needed. The age vector and the population at risk vector.
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
signature(from = "lifetable", to = "data.frame")
: method to create a data - frame from a lifetable object
signature(from = "lifetable", to = "markovchainList")
: coerce method from lifetable
to markovchainList
signature(from = "lifetable", to = "numeric")
: brings to numeric
signature(from = "data.frame", to = "lifetable")
: brings to life table
signature(object = "lifetable")
: returns the maximum attainable life age
signature(x = "lifetable", y = "ANY")
: plot method
signature(x = "lifetable")
: head method
signature(x = "lifetable")
: method to print the survival probability implied in the table
signature(object = "lifetable")
: identical to plot
method
signature(object = "lifetable")
: it returns summary information about the object
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.
t
may be missing in pxt
, qxt
, ext
. It assumes value equal to 1 in such case.
Giorgio A. Spedicato
Actuarial Mathematics (Second Edition), 1997, by Bowers, N.L., Gerber, H.U., Hickman, J.C., Jones, D.A. and Nesbitt, C.J.
actuarialtable
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.