Learn R Programming

garma (version 0.9.6)

predict.garma_model: Predict future values.

Description

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

Usage

# S3 method for garma_model
predict(object, n.ahead = 1, ...)

Arguments

object

(garma_model) The garma_model from which to predict the values.

n.ahead

(int) The number of time periods to predict ahead. Default: 1

...

Other parameters. Ignored.

Value

A "ts" object containing the requested forecasts.

Examples

Run this code
# NOT RUN {
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