predict.ARIMA.RdSimilar to other predict methods, this function predicts fitted values from a fitted "ARIMA" object.
# S3 method for ARIMA predict( model, data = NULL, key = NULL, forecast.method = NULL, forecast.length = NULL, ... )
| model |
|
|---|---|
| data |
|
| key |
|
| forecast.method |
|
| forecast.length |
|
| ... | Reserved parameter. |
S3 methods
Predicted values are returned as a DataFrame, structured as follows:
ID: with same name and type the ID column of data.
FORECAST: type DOUBLE, representing predicted values.
SE: type DOUBLE, standard error.
LO80: type DOUBLE, low 80% values.
HI80: type DOUBLE, high 80% values.
LO95: type DOUBLE, low 95% values.
HI95: type DOUBLE, high 95% values.
Apply predict on an "arima" object arm and obtain the result:
> res <- predict(arm,
forecast.method="innovations.algorithm",
forecast.length = 10)
TIMESTAMP FORECAST SE LO80 HI80 LO95 HI95
1 0 1.5577828 1.302436 -0.1113569 3.2269225 -0.9949452 4.1105108
2 1 3.7659871 1.315333 2.0803200 5.4516542 1.1879826 6.3439917
3 2 -0.5655989 1.315333 -2.2512660 1.1200682 -3.1436035 2.0124056
4 3 -3.6198158 1.315333 -5.3054829 -1.9341487 -6.1978203 -1.0418112
......