Description Usage Arguments Details l(x) quantile interpolation Source Examples
Get life-table shape measures from pace-shape object.
1 |
pash |
A pace-shape object. |
type |
Which pace measure should be returned (default |
q |
Quantile specification for age where q percent of the life-table population is still alive (defaults to median). |
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
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:
In case of nax = "scalar" | "vector" |
"udd"
then x = (-x1*q+x0*q-x0*y1+x1*y0)/(y0-y1).
In case of nax = "cfm"
then x = ((x0-x1)*log(y)-x0*log(y1)+x1*log(y0))/(log(y0)-log(y1))
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.