## Not run:
# # Specify a GAS model with multivatiate Student-t conditional
# # distribution and time-varying scales and correlations.
#
# # Stock returns forecast
#
# data("StockIndices")
#
# mY = StockIndices[, 1:2]
#
# ## Specification mvt
# GASSpec = MultiGASSpec(Dist = "mvt", ScalingType = "Identity",
# GASPar = list(location = FALSE, scale = TRUE,
# correlation = TRUE, shape = FALSE))
#
# # Perform H-step ahead forecast with confidence bands
#
# # estimation
# Fit = MultiGASFit(GASSpec, mY)
#
# #forecast
#
# Forecast = MultiGASFor(Fit, H = 50)
#
# Forecast
#
# # Perform 1-Step ahead rolling forecast
#
# InSampleData = mY[1:1000, ]
# OutSampleData = mY[1001:2404, ]
#
# # estimation
# Fit = MultiGASFit(GASSpec, InSampleData)
#
# Forecast = MultiGASFor(Fit, Roll = TRUE, out = OutSampleData)
#
# Forecast
# ## End(Not run)
Run the code above in your browser using DataLab