View source: R/get_default_gompertz_parameters.R
get_default_gompertz_parameters | R Documentation |
Calculates default Gompertz parameters for a given age, country and sex, based on the package build-in HMD life tables.
get_default_gompertz_parameters(
age,
country = unique(life_tables$country),
sex = c("both", "male", "female")
)
age |
A numeric. The age of the individual. |
country |
A character. The name of the country. |
sex |
A character. The sex of the individual. |
A list containing:
mode |
The mode of the Gompertz distribution |
dispersion |
The dispersion parameter of the Gompertz distribution |
current_age |
The current age parameter |
max_age |
The maximum age parameter |
calc_gompertz_parameters()
get_default_gompertz_parameters(
age = 65,
country = "USA",
sex = "male"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.