Learn R Programming

R4GoodPersonalFinances (version 1.2.0)

get_default_gompertz_parameters: Get default Gompertz parameters

Description

Calculates default Gompertz parameters for a given age, country and sex, based on the package build-in HMD life tables.

Usage

get_default_gompertz_parameters(
  age,
  country = unique(life_tables$country),
  sex = c("both", "male", "female")
)

Value

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

Arguments

age

A numeric. The age of the individual.

country

A character. The name of the country.

sex

A character. The sex of the individual.

See Also

calc_gompertz_parameters()

Examples

Run this code
get_default_gompertz_parameters(
  age     = 65,
  country = "USA",
  sex     = "male"
)

Run the code above in your browser using DataLab