powered by
Calculating Gompertz survival probability
calc_gompertz_survival_probability( current_age, target_age, mode, dispersion, max_age = NULL )
A numeric. The probability of survival from 'current_age' to 'target_age' based on the Gompertz distribution with the given parameters.
Current age
Target age
Mode of the Gompertz distribution
Dispersion of the Gompertz distribution
Maximum age. Defaults to NULL.
NULL
calc_gompertz_survival_probability( current_age = 65, target_age = 85, mode = 80, dispersion = 10 )
Run the code above in your browser using DataLab