# NOT RUN {
# Robust bootstrap forecast densities for returns and volatilities
boot = RobGARCHBootParallel(returnsexample, n.boot = 1000, n.ahead = 1)
# Obtaining the forecast intervals for returns (95%)
quantile(boot[[1]], prob = c(0.025, 0.975))
# Obtaining the forecast intervals for volatilities (95%)
quantile(boot[[2]], prob = c(0.025, 0.975))
# Risk measures can also be obtained
VaR1 = quantile(boot[[1]], prob = 0.01)
# }
Run the code above in your browser using DataLab