Learn R Programming

predtoolsTS (version 0.1.1)

pred.arima: Predicts for ARIMA

Description

Performs predictions over an ARIMA model using the stats::predict function.

Usage

pred.arima(model, n.ahead)

Arguments

model

An ARIMA model.

n.ahead

Number of values to predict.

Value

A ts object containing the predictions.

Examples

Run this code
# NOT RUN {
pred.arima(forecast::auto.arima(prep(AirPassengers)$tserie),n.ahead=30)
# }

Run the code above in your browser using DataLab