Description Usage Arguments Details
View source: R/excess_lifetime.R
The difference between two future time points (the first of these can be, trivially, the present). Allows discounting of future times so that they are valued less than sooner times.
1 | excess_lifetime(start, end, discount = 0.035)
|
start |
time |
end |
time |
discount |
default: 0.035 |
These are usually two years of death such that this (discounted) time is years of life lost due to illness. This is a component of the DALY calculation by including as a product with the probability of early death (p) and population size (N), i.e. DALY = YLD + YDD, such that YLD = N x p x t
The later time to death is all-cause expected lifetime at a given age which can be obtained from life-tables e.g. from the ONS.
The expanded sum is
\frac{1}{d^{m+1}} + \cdots + \frac{1}{d^{n}}, n > m
Using a finite series identity this is
\frac{1 - (1/d)^{n+1}}{1 - 1/d} - \frac{1 - (1/d)^{m+1}}{1 - 1/d}
= \frac{(1/d)^{m+1} - (1/d)^{n+1}}{1 - 1/d}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.