Simulate G2++ short rates model
rg2plus(
n = 10L,
horizon = 5L,
freq = "semi-annual",
u = 1:30,
txZC = c(0.01422, 0.01309, 0.0138, 0.01549, 0.01747, 0.0194, 0.02104, 0.02236, 0.02348,
0.02446, 0.02535, 0.02614, 0.02679, 0.02727, 0.0276, 0.02779, 0.02787, 0.02786,
0.02776, 0.02762, 0.02745, 0.02727, 0.02707, 0.02686, 0.02663, 0.0264, 0.02618,
0.02597, 0.02578, 0.02563),
a = 0.5,
b = 0.3541203,
sigma = 0.09416266,
eta = 0.08439934,
rho = -0.99855687,
methodyc = c("fmm", "hyman", "HCSPL", "SW"),
...
)Number of scenarios to simulate.
Time steps (semi-annual, default = 20).
Frequency of simulation (default is "semi-annual").
Observed maturities (vector).
Yield to maturities (vector, same length as u).
G2++ mean reversion for factor x.
G2++ mean reversion for factor y.
Volatility of factor x.
Volatility of factor y.
Correlation between factors.
Interpolation method for forward rates ("fmm", "hyman", "HCSPL", "SW").
Additional parameters to be passed to simdiff or simshocks
A time series of simulated short rates for each scenario.