keydur: keyrate duration function

Description Usage Arguments Value Author(s) Examples

Description

Calculates keyrate duration of a bond

Usage

1
keydur(keyrates, ttm, coupon, yield, freq, targetdur = NULL)

Arguments

keyrates

list of keyrates

ttm

time until maturity in years

coupon

in percent

yield

in percent

freq

frequency of coupon payments

targetdur

optional argument what the sum of keyrate durations has to be

Value

tibble of key rate durations

Author(s)

wkapga

Examples

1
2
3
4
## Not run: 
keydur(c(2,5,10),6.2,1,2,1)

## End(Not run)

wkapga/keyrateduration documentation built on May 29, 2019, 11:58 a.m.