get_tla: Function calculating temporary annuity values from age x to...

Description Usage Arguments Value

View source: R/functions.R

Description

suppose the age corresponding to px runs from a1 to aN, and f = aN + 1 (eg. age 30:64, f = 65) The function computes a..x, f - x and s_a..x, f - x, x runing from a1 to aN. The length of px is f - a1 Note that the last element is redundant, just used as a place holder.

Usage

1
get_tla(px, i, scale = rep(1, length(px)))

Arguments

px

an vector of composite survivial probs from age x to x + n - 1. Length = n

i

discount rate, scalar

scale

how the annuity scale up over time. eg: 1) salary scale. default is a n vector of 1, meaning no salary scale. used when calculating career based annuity 2) simple COLA scale: COLA increasing at a fixed percentage very year.

Value

an n vector storing the value of temporary life annuities from age x to age x + n - 1.


marshallpku/penSimTools documentation built on May 23, 2019, 3:05 p.m.