GetPace: Life-table Pace Measures

Description Usage Arguments Details l(x) quantile interpolation Source Examples

Description

Get life-table shape measures from pace-shape object.

Usage

1
GetPace(pash, type = "all", q = 0.5)

Arguments

pash

A pace-shape object.

type

Which pace measure should be returned (default "all")?

q

Quantile specification for age where q percent of the life-table population is still alive (defaults to median).

Details

The type argument accepts the following strings:

"e0"

Total life expectancy.

"qlx"

Age where q percent of the life table population is still alive.

"ldr"

The life-table death rate.

"all"

All of the above measures

l(x) quantile interpolation

Exact values for the quantiles are determined by either linear- or exponential interpolation of the l(x) function. Given a value q we first find the x and l(x) at the boundaries of the interval containing l(x) = q. Then we return the x where l(x) = q by either:

linear interpolation

In case of nax = "scalar" | "vector" | "udd" then x = (-x1*q+x0*q-x0*y1+x1*y0)/(y0-y1).

exponential interpolation

In case of nax = "cfm" then x = ((x0-x1)*log(y)-x0*log(y1)+x1*log(y0))/(log(y0)-log(y1))

Source

Wrycza, Tomasz, and Annette Baudisch. 2014. "The Pace of Aging: Intrinsic Time Scales in Demography." Demographic Research 30 (1): 1571-90. doi:10.4054/DemRes.2014.30.57.

Examples

1
2
3
4
5
6
7
8
pash <- Inputlx(x = prestons_lx$x, lx = prestons_lx$lx)
GetPace(pash)

# the age only 30% of the life-table population reaches
GetPace(pash, q = 0.3)
# the estimate changes with changing nax assumptions
pash <- Inputlx(x = prestons_lx$x, lx = prestons_lx$lx, nax = "cfm")
GetPace(pash, q = 0.3)

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