get_tla2a: Calculate temporary annuity values from a fixed entry age y...

Description Usage Arguments Details Value Examples

View source: R/ptools_annuity_functions.r


get_tla2a present value of annuity-immediate


get_tla2a(px, i, sx)



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


discount rate, scalar


salary scale. default is an n vector of 1, meaning no salary scale.


Suppose the age corresponding to px runs from a1 to aN, y = a1 (eg. age 30:65, y = 30) This function conputes a..y, x - y and s_a..y, x - y, x ruuning from a1 to aN. Note that when x = a1 = y, we define a..y, 0 = 0. so the first element is always 0. For age x > y, the number of years receiviing annuity is x - y, the resulting annuity value will be placed at age x. eg1: x = 31, y = 30, annuity ($1) received only once at age 30, but the resulting annuity value will be placed at age 31. eg2: x = 65, y = 30, annuity received from age 30 to 64(total 65 years), the resulting annuity value will be placed at age 65 Note that the last 2 survival rates and last salary scale are redundant in the calculation, they are just used as place holders. calculating the value of annuity running from 30 to 64 only involves survival rate from 30 to 63, because the last annuity payment is paid at the begining of 64. )


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


get_tla2a(rep(0.98, 65), 0.08, rep(1.1, 65))
get_tla2(rep(0.98, 65), 0.08, rep(1.1, 65))

donboyd5/ptools documentation built on May 13, 2017, 4:34 a.m.