ineq_eta_dag | R Documentation |
Calculate a lifetable column for the average age at death lost at death of a population.
ineq_eta_dag(age, dx, lx, ex, ax, check = TRUE)
age |
numeric. vector of lower age bounds. |
dx |
numeric. vector of the lifetable death distribution. |
lx |
numeric. vector of the lifetable survivorship. |
ex |
numeric. vector of remaining life expectancy. |
ax |
numeric. vector of the average time spent in the age interval of those dying within the interval. |
check |
logical. Shall we perform basic checks on input vectors? Default TRUE |
This quantity is not featured in the literature to our knowledge, but we've added it in order to make an age-at-death version of e^\dagger
(which is a shortfall metric), for the sake of completeness. We also don't know what to call this measure, so we chose eta_dag
to make the association with edag
clear.
MortalityLaws::MortalityLaw
ungroup::pclm
MortalitySmooth::Mort1Dsmooth
data(LT)
# A vector containing the conditional mean age-at-death lost at death of a population
eaaddag = ineq_eta_dag(age=LT$Age,dx=LT$dx,lx=LT$lx,ex=LT$ex,ax=LT$ax)
# The aad-dag from birth
eaaddag[1]
# The aad-dag conditional upon survival to age 10
eaaddag[11]
## Not run:
plot(0:110, eaaddag, type='l')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.