powered by
Calculate Life Expectancy
calc_life_expectancy(current_age, mode, dispersion, max_age = 120)
A numeric. Total life expectancy in years.
A numeric. Current age.
A numeric. Mode of the Gompertz distribution.
A numeric. Dispersion of the Gompertz distribution.
A numeric. Maximum age. Defaults to 120.
calc_life_expectancy( current_age = 65, mode = 80, dispersion = 10 )
Run the code above in your browser using DataLab