Last data update: 2014.03.03

R: Annuity immediate and due function.
axnR Documentation

Annuity immediate and due function.

Description

This function calculates actuarial value of annuities, given an actuarial table. Fractional and deferred annuities can be evaluated. Moreover it can be used to simulate the stochastic distribution of the annuity value.

Usage

	axn(actuarialtable, x, n, i = actuarialtable@interest, m,  k = 1, type = "EV",
	power=1,payment = "advance")

Arguments

actuarialtable

An actuarial table object.

x

Age of the annuitant.

n

Number of terms of the annuity, if missing annuity is intended to be paid until death.

i

Interest rate (default value the interest of the life table).

m

Deferring period. Assumed to be 1 whether missing.

k

Number of fractional payments per period. Assumed to be 1 whether missing.

type

A string, eithed "EV" (default value) or "ST" (stochastic realization).

power

The power of the APV. Default is 1 (mean)

payment

Payment type: "advance" default is the annuity due, otherwise annuity immediate.

Details

When "ST" has been selected a stochastic value representing a number drawn from the domain of

a_{x}^{n}

is drawn. "EV" calculates the classical APV.

Value

A numeric value.

Warning

The function is provided as is, without any warranty regarding the accuracy of calculations. The author disclaims any liability for eventual losses arising from direct or indirect use of this software.

Note

When either x=ω or n=0 zero is returned.

Author(s)

Giorgio A. Spedicato

References

Actuarial Mathematics (Second Edition), 1997, by Bowers, N.L., Gerber, H.U., Hickman, J.C., Jones, D.A. and Nesbitt, C.J.

See Also

annuity, Exn

Examples

		#assume SOA example life table to be load
		data(soaLt)
		soa08Act=with(soaLt, new("actuarialtable",interest=0.06,
		x=x,lx=Ix,name="SOA2008"))
		#evaluate and life-long annuity for an aged 65
		axn(soa08Act, x=65) 

Results