Description Usage Arguments Value See Also Examples
This method gets you the maximum age from a given life table. The life table have to be discrete.
If UDD is given, the method can use inter-ages x
paramters. This method is fully vectorized, as you can see in following exemples.
1 |
table |
A life table object |
x |
A numerical age (or a vector or a matrix) representing the age of the person. |
UDD |
A boolean – Should UDD been used ? |
a numeric coreponding to maximum ages that insuree could be.
Lx
, getAgeMax
, TableMortDiscrete
, getTable
1 2 3 4 5 6 7 8 9 10 11 12 | Lx(expolaw, 12.7)
Lx(expolaw2, 12.7)
Lx(th002d, 12.7)
Lx(th002v, 12, UDD = FALSE)
Lx(tf002v, 12.7, UDD = TRUE)
Lx(tf002d, 12.7, UDD = TRUE)
#The Lx method is properly vectorised as follows :
Lx(tableGPDId, c(1, 2, 3, 4))
Lx(tableGPDId, c(1, 2, 3, 4))
Lx(tableGPDId, matrix(1:12, nrow = 4))
Lx(tableGPDId, cbind(c(1, 2, 3, 4), c(1, 3, 4, 5), c(1, 5, 7, 9)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.