rpv-Life-method: rpv

Description Usage Arguments Examples

Description

Simulates the present value of the life insurance benefit for an object of class Insuree

Usage

1
2
## S4 method for signature 'Life'
rpv(object, n, interest)

Arguments

object

object of class Insuree

n

number of observations

interest

vector of annual interest rates. Can use the CIR() funtion to simulate interest rates in accordance with the Cox Ingersoll Ross process.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
rpv(object = Life(x_ = 2.48, 
                  t_ = 3,
                  m_ = 3,
                  benefit = list(BenefitDeath(t = c(3, 3), value = c(0, 5)))), 
    n = 5,
    interest = Interest(t = 10, rate = 0.04))
    
rpv(object = Life(x_ = 2.48, 
                  t_ = 3,
                  m_ = 0,
                  benefit = list(BenefitAnnuity(t = c(1, 1, 1), value = c(3, 2, 2)))), 
    n = 5,
    interest = Interest(t = 10, rate = 0.04))
    
rpv(object = Life(x_ = 2.48, 
                  t_ = 3,
                  m_ = 0,
                  benefit = list(BenefitAnnuity(t = c(0, 1, 1), value = c(-2, -2, -2)),
                                 BenefitDeath(t = 3, value = 10)
                                 )
                  ), 
    n = 5,
    interest = Interest(t = 10, rate = 0.04))   

merlinoa/diehard3000 documentation built on May 22, 2017, 4:15 a.m.