hull_white: 1-factor Hull White

Description Usage Arguments Details Value Examples

Description

Short rate interest model used to generate stochastic scenarios

Usage

1
hull_white(srinput, termStruct.extension, termofyield = 1)

Arguments

srinput

Hull White model parameters. c(b, tau, scen, prjy, rns)

termStruct.extension

output of curve_extensionNS()

termofyield

should be 1 or function won't work

Details

In srinput, scen represents the number of scenarios to generate, prjy represents the number of projected years, and rns represents the random number seed. It should also be pointed out that hull_white() can also be used to perform credit spread scenario generation not just short rate scenario generation (see interestModelsDemo)

Value

Stochastic short rate scenarios

Examples

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

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