| yc_predict | R Documentation |
Evaluate a fitted yield curve at new maturities.
yc_predict(curve, maturities)
curve |
A |
maturities |
Numeric vector of maturities at which to predict rates. |
A data frame with columns maturity and rate.
maturities <- c(0.25, 0.5, 1, 2, 5, 10, 30)
rates <- c(0.052, 0.050, 0.048, 0.045, 0.042, 0.040, 0.043)
fit <- yc_nelson_siegel(maturities, rates)
yc_predict(fit, c(3, 7, 15, 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.