pxt: 'pxt'- Probabilities of survival and death.

Description Usage Arguments Value See Also Examples

Description

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.

Usage

1
2
3
qxt(table, x, t = 1)

pxt(table, x, t = 1)

Arguments

table

A TableMort object.

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)

Value

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

See Also

Lx, getAgeMax, TableMort, getTable

Examples

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

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