annx: EPV of Annuity

Description Usage Arguments Details

View source: R/makehams.R

Description

Calculates the Expected Presented Value of various annuities

Usage

1
2
annx(x = gl.g(x), s = 0, i = gl.g(i), m = 1, n = gl.g(w) - x, c = 0,
  e = 1, mt = 1, h = function(t) t^0)

Arguments

x

the current age

s

the select used so far

i

the interest rate

m

the compounding frequency

n

the length of the term

c

indicator of continuous (1 if continuous)

e

indicator of endowment (NOTE of an annuity should always be 1)

mt

the moment of the insurance

Details

By default calculates the first moment of discrete, whole life annuity due. Also, this function is not reliable when n < m.


nathanesau/makehams documentation built on May 23, 2019, 12:19 p.m.