Learn R Programming

gompertztrunc (version 0.1.1)

hazard_ratio_to_le: Translate a single hazard ratio to remaining life expectancy

Description

Translate a single hazard ratio to effect on remaining life expectancy at a specified age, using a Gompertz mortality schedule as the baseline

Usage

hazard_ratio_to_le(lower, upper, hr, M = 80, b = 0.1)

Value

hazard ratio converted to effect on life expectancy

Arguments

lower

age at which to compute change in remaining life expectancy

upper

upper age bound for life table calculations

hr

hazard ratio

M

Gompertz modal age at death parameter

b

Gompertz mortality slope parameter