calc_life_expectancy: Calculate Life Expectancy

View source: R/calc_life_expectancy.R

calc_life_expectancyR 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
)

R4GoodPersonalFinances documentation built on June 8, 2025, 11:18 a.m.