Learn R Programming

lifecontingencies (version 1.3.12)

Axn.mdt: Multiple decrement life insurance

Description

Function to evaluate multiple decrement insurances

Usage

Axn.mdt(object, x, n, i, decrement)

Value

The scalar representing APV of the insurance

Arguments

object

an mdt or actuarialtable object

x

policyholder's age

n

contract duration

i

interest rate

decrement

decrement category

Warning

The function is experimental and very basic. Testing is still needed. Use at own risk!

Examples

Run this code
#creates a temporary mdt
myTable<-data.frame(x=41:43,lx=c(800,776,752),d1=rep(8,3),d2=rep(16,3))
myMdt<-new("mdt",table=myTable,name="ciao")
Axn.mdt(myMdt, x=41,n=2,i=.05,decrement="d2")

Run the code above in your browser using DataLab