
Last chance! 50% off unlimited learning
Sale ends in
plot.gsmarpred
is plot method for gsmarpred objects
# S3 method for gsmarpred
plot(x, ..., nt, add_grid = TRUE)
object of class 'gsmarpred'
created with predict.gsmar
.
arguments passed to grid
a positive integer specifying the number of observations to be plotted
along with the prediction. Default is round(length(data)*0.2)
.
should grid be added to the plots?
This method is used plot forecasts of gsmar processes
# NOT RUN {
# }
# NOT RUN {
# GMAR-model
params12 <- c(0.18281409, 0.92657275, 0.00214552,
0.85725129, 0.68210294, 0.01900299, 0.88342018)
gmar12 <- GSMAR(logVIX, 1, 2, params12)
pred <- predict(gmar12, n_ahead=10, plotRes=FALSE)
plot(pred, nt=50)
# }
Run the code above in your browser using DataLab