Description Usage Arguments Value Author(s) Examples
One-step ahead rolling forecasts with model re-estimation. The function also reports several quantity for backtesting for point and density forecasts.
1 2 3 |
data |
|
GASSpec |
An object of the class uGASSpec created using the function UniGASSpec. |
ForecastLength |
|
Nstart |
|
RefitEvery |
|
RefitWindow |
|
cluster |
A |
Compute.SE |
|
... |
Additional arguments for UniGASFit |
An object of the class uGASRoll.
Leopoldo Catania
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Specify an univariate GAS model with Student-t
# conditional distribution and time-varying location, scale and shape parameter
# Inflation Forecast
data("cpichg")
help(cpichg)
GASSpec = UniGASSpec(Dist = "std", ScalingType = "Identity",
GASPar = list(location = TRUE, scale = TRUE, shape = FALSE))
# Perform 1-step ahead rolling forecast with refit
library("parallel")
Roll = UniGASRoll(cpichg, GASSpec, ForecastLength = 50,
RefitEvery = 12, RefitWindow = c("moving"))
Roll
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.