RebaseLT: Rebase Life-table to Different Age

Description Usage Arguments Details Value Examples

Description

Start the life-table at a later age.

Usage

1
RebaseLT(pash, origin = 0)

Arguments

pash

A pace-shape object.

origin

The age the life table should be rebased to.

Details

The life table is truncated to the new origin age and the lx at origin set to 1. ndx, nLx, Tx and ex columns are re-calculated.

Value

A pace-shape object.

Examples

1
2
3
4
5
6
7
8
9
# generate pace-shape object
pash <- Inputlx(x = prestons_lx$x, lx = prestons_lx$lx)
# rebase life table to age 50
lt50 <- RebaseLT(pash, 50)
lt50

# the rebase operation is reversible
lt0 = RebaseLT(lt50, 0)
lt0

jschoeley/pash documentation built on May 20, 2019, 2:07 a.m.