wg: wg helper function

Description Usage Arguments Value Examples

Description

wg helper function

Usage

1
wg(keyrates, tt)

Arguments

keyrates

vector of keyrates

tt

time of cash flow to attribute to keyrates

Value

a list of weights with length of keyrates, sum = 1

Examples

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

## End(Not run)

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