Learn R Programming

R4GoodPersonalFinances (version 1.2.0)

calc_life_expectancy: Calculate Life Expectancy

Description

Calculate Life Expectancy

Usage

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

Value

A numeric. Total life expectancy in years.

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.

Examples

Run this code
calc_life_expectancy(
  current_age = 65, 
  mode        = 80, 
  dispersion  = 10
)

Run the code above in your browser using DataLab