| forecast_svp | R Documentation |
Applies Kalman filtering/smoothing to an estimated SV(p) model and produces multi-step ahead volatility forecasts with uncertainty quantification.
forecast_svp(
object,
H = 1,
output = c("log-variance", "variance", "volatility"),
filter_method = "corrected",
proxy = c("bayes_optimal", "u"),
K = 7,
M = 1000,
seed = 42,
del = 1e-10
)
object |
An |
H |
Integer. Maximum forecast horizon. Default 1. |
output |
Character. Primary output scale: |
filter_method |
Character. Filter method: |
proxy |
Character. Leverage proxy for the filter and the h=1 forecast
shift. |
K |
Integer. Number of mixture components for GMKF. Default 7. |
M |
Integer. Number of particles for BPF. Default 1000. |
seed |
Integer. Random seed for BPF. Default 42. |
del |
Numeric. Small constant for log transformation. Default |
An object of class "svp_forecast", a list containing:
Primary forecast (scale determined by output).
Log-volatility forecasts w_{T+h|T}.
Conditional variance forecasts \sigma^2_{T+h|T}.
Conditional volatility forecasts \sigma_{T+h|T}.
Forecast MSE P_{T+h|T} for each horizon.
Filtered log-volatility.
Smoothed log-volatility.
Filtered standardized residuals.
Smoothed standardized residuals.
Demeaned log-squared returns.
The estimated model object.
The forecast horizon.
The chosen output scale.
The "svp_filter" object from filtering.
sim <- sim_svp(1000, phi = 0.95, sigy = 1, sigv = 0.2,
leverage = TRUE, rho = -0.3)
fit <- svp(sim$y, p = 1, leverage = TRUE)
fc <- forecast_svp(fit, H = 10)
plot(fc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.