calc_life_expectancy {R4GoodPersonalFinances}R Documentation

Calculate Life Expectancy

Description

Calculate Life Expectancy

Usage

calc_life_expectancy(current_age, mode, dispersion, max_age = 120)

Arguments

current_age

A numeric. Current age.

mode

A numeric. Mode of the Gompertz distribution.

dispersion

A numeric. Dispersion of the Gompertz distribution.

max_age

A numeric. Maximum age. Defaults to 120.

Value

A numeric. Total life expectancy in years.

Examples

calc_life_expectancy(
  current_age = 65, 
  mode        = 80, 
  dispersion  = 10
)

[Package R4GoodPersonalFinances version 1.0.0 Index]