ineq_eta_dag: ineq_eta_dag

View source: R/indices.R

ineq_eta_dagR Documentation

ineq_eta_dag

Description

Calculate a lifetable column for the average age at death lost at death of a population.

Usage

ineq_eta_dag(age, dx, lx, ex, ax, check = TRUE)

Arguments

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

Details

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.

See Also

MortalityLaws::MortalityLaw

ungroup::pclm

MortalitySmooth::Mort1Dsmooth

Examples


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)

alysonvanraalte/LifeIneq documentation built on March 12, 2024, 1:42 p.m.