nyearZero: N-year zero rates

Description Usage Arguments Details Value Examples

Description

Derives N-year zero rates from 1-factor hull white

Usage

1
nyearZero(hw.out, termStruct.extension, srinput, term = 10)

Arguments

hw.out

output of hull_white()

termStruct.extension

output of curve_extensionNS()

srinput

Hull-white model parameters

Details

Due to the way in which theta was calculated, the last three columns of hw.out are not accurate. Therefore, the last four columns of nyearZero(..., term=2) are not accurate, and so on. Also note that , nyearZero(,...term=1) and hw.out are equivalent

Value

A data frame containing n-year zero rates for each scenario

Examples

1
2
3
4
termStruct.out <- cubic_spline(termStruct);
 termStruct.extension <- curve_extensionNS(termStruct.out);
 hw.out <- hull_white(srinput, termStruct.extension, termofyield=1);
 nyearZero.out <- nyearZero(hw.out, termStruct.extension, srinput, term=10)

nathanesau/StocVal documentation built on May 23, 2019, 12:18 p.m.