discount-Interest-ANY-method: discount

Description Usage Arguments Examples

Description

Finds the discount applicable to a future time of death

Usage

1
2
## S4 method for signature 'Interest,ANY'
discount(interest, benefit = NA, benefit_t)

Arguments

interest

object of class Interest

benefit_t

time of benefit payment

Examples

1
2
3
4
5
6
7
discount(Interest(), benefit_t = 2.1)
discount(Interest(), benefit_t = 1.5)
discount(Interest(), benefit_t = 0.5)

i <- Interest(t = rep(1, times = 5), rate = c(0.03, 0.06, 0.05, 0.07, 0.08))
discount(i, benefit_t = 1.1)
discount(Interest(t = 100, rate = 0.04), benefit_t = 1.1)

merlinoa/diehard3000 documentation built on May 22, 2019, 6:52 p.m.