I have a problem with the following R code. From the following R codes I could not get the forecast values of the series.
install.packages('MTS')
install.packages('rmgarch')
install.packages('gogarch')
library('MTS')
library('rmgarch')
library('gogarch')
data(dji30ret)
spec <- gogarchspec()
fit <- gogarchfit(
spec = spec,
data = dji30ret[,1:4],
out.sample = 10,
gfun = "tanh"
)
forecast <- gogarchforecast(
fit,
n.ahead =1,
n.roll = 9
)
forecast
These codes executed but forecast values are not shown. I want to have the forecast values.