Description Usage Arguments Value Sources See Also Examples
View source: R/gompertz-makeham.R
Calculates
\mjsdeqn \mathcalM_GM(t) = \frac1b \exp\left( \fraca e^btb
\right ) \left( \fraca e^bxb \right)^c/b
\Gamma\left( - \fraccb, \fraca e^btb \right)
with the upper incomplete gamma function
\mjsdeqn\Gamma(\cdot, \cdot) = \int_x^\infty t^u-1 e^-t dt, \; x>0,
\quad u \in \mathbbR
which is implemented in upper_inc_gamma
.
1 | life_expectancy_GM(t, A, R, alpha)
|
t |
|
A |
|
R |
|
alpha |
|
Returns a numeric scalar
giving the Gompertz-Makeham life
expectancy \mjseqne_GM(t)
Castellares et al. (2020) - On closed-form expressions to Gompertz–Makeham life expectancy. Theoretical Population Biology 134 (August 2020): 53-60. https://doi.org/10.1016/j.tpb.2020.04.005
1 2 3 4 5 6 7 8 9 10 11 | # You can use a single age:
life_expectancy_GM(t = 0,
A = 0.00033,
R = 0.00014,
alpha = 0.11521)
# Or a vector of ages:
life_expectancy_GM(t = 0:100,
A = 0.00033,
R = 0.00014,
alpha = 0.11521)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.