Lx: 'Lx' - Get the number of living people at some age.

Description Usage Arguments Value See Also Examples

Description

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.

Usage

1
Lx(table, x, UDD = TRUE)

Arguments

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 ?

Value

a numeric coreponding to maximum ages that insuree could be.

See Also

Lx, getAgeMax, TableMortDiscrete, getTable

Examples

 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)))

lrnv/actulife documentation built on May 23, 2019, 3:08 p.m.