Description Usage Arguments Value See Also Examples
The two methods qxt and pxt allow us to get probabilities of survival and death from life tables.
Note that qxt is just a wrapper for 1 - pxt.
1 2 3  | 
table | 
 A   | 
x | 
 A numerical age (or a vector or a matrix) representing the age of the person  | 
t | 
 Defaulted to 1, represent the time that you want to person to survive (for pxt) or to die in (for qxt)  | 
A numeric between 0 and 1, the probability of the event that a person age x, given the life table table survives for t years at least (pxt) or dies in the next t years (qxt).
Lx, getAgeMax, TableMort, getTable
1 2 3 4 5 6 7 8  | pxt(tableGPDIc, x = c(1, 2, 3, 4), t = c(1, 2, 3))
pxt(tableGPDIc, x = c(1, 2, 3, 4), t = c(1, 2, 3))
pxt(tableGPDIc, x = cbind(c(3, 4, 5, 6), c(1, 2, 3, 4)), t = c(1, 2, 3))
pxt(tableGPDId, x = c(1, 2, 3, 4), t = c(1, 2, 3))
pxt(tableGPDId, x = cbind(c(3, 4, 5, 6), c(1, 2, 3, 4)), t = c(1, 2, 3))
# Test the sum -- Should be one : 
pxt(th002d,1,5) + qxt(th002d,1,5) = 1
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.