View source: R/calc_life_expectancy.R
calc_life_expectancy | R Documentation |
Calculate Life Expectancy
calc_life_expectancy(current_age, mode, dispersion, max_age = 120)
current_age |
A numeric. Current age. |
mode |
A numeric. Mode of the Gompertz distribution. |
dispersion |
A numeric. Dispersion of the Gompertz distribution. |
max_age |
A numeric. Maximum age. Defaults to 120. |
A numeric. Total life expectancy in years.
calc_life_expectancy(
current_age = 65,
mode = 80,
dispersion = 10
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.