powered by
Predict ahead using algorithm of (2009) Godet, F "Linear prediction of long-range dependent time series", ESAIM: PS 13 115-134. DOI: 10.1051/ps:2008015
# S3 method for garma_model predict( object, n.ahead = 1, max_wgts = length(object$diff_y), ggbr_scale = FALSE, ... )
A "ts" object containing the requested forecasts.
(garma_model) The garma_model from which to predict the values.
(int) The number of time periods to predict ahead. Default: 1
(int) The number of past values to use when forecasting ahead. By default, all available data is used.
(logical) - whether or not to scale the Gegenbauer weights to add up to 1. By default this is FALSE.
Other parameters. Ignored.
data(AirPassengers) ap <- as.numeric(diff(AirPassengers,12)) mdl <- garma(ap,order=c(9,1,0),k=0,method='CSS',include.mean=FALSE) predict(mdl, n.ahead=12)
Run the code above in your browser using DataLab