get_tla: Calculate temporary annuity values from age x to retirment...

Description Usage Arguments Details Value Examples

Description

get_tla present value of annuity-immediate

Usage

1
get_tla(px, i, scale, cashflow)

Arguments

px

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

i

discount rate, scalar

scale

numeric vector of length px

cashflow

The cashflow of the annuity can be specified by this argument. This is useful when calculating PV of benefits with COLA.

Details

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.

Value

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

Examples

1
get_tla(rep(0.98, 55), 0.08)

donboyd5/ptools documentation built on May 15, 2019, 10:39 a.m.