powered by
Calculate Gompertz mode for a given life expectancy
calc_gompertz_mode(life_expectancy, current_age, dispersion, max_age = 120)
A numeric. Mode of the Gompertz distribution.
A numeric. Desired life expectancy.
A numeric. Current age.
A numeric. Dispersion of the Gompertz distribution.
A numeric. Maximum age. Defaults to 120.
calc_gompertz_mode( life_expectancy = 86, current_age = 25, dispersion = 8.88, max_age = 115 )
Run the code above in your browser using DataLab