Description Usage Arguments Details Value Author(s) References See Also Examples
The function predicts and returns the next n consecutive values of a time
series using an automatically fitted ARIMA model. It may also plot the
predicted values against the actual ones using the function
plotarimapred
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
timeseries |
A vector or univariate time series which contains the values used for fitting an ARIMA model. |
timeseries.cont |
A vector or univariate time series containing a
continuation for |
n.ahead |
Number of consecutive values of the time series, which are to
be predicted. If |
na.action |
A function for treating missing values in |
xreg |
A vector, matrix, data frame or times series of external
regressors used for fitting the ARIMA model. It must have the same number
of rows as |
newxreg |
A vector, matrix, data frame or times series with new values
of |
se.fit |
If |
plot |
If |
range.p |
A percentage which defines how much the range of the graphic's y-axis will be increased from the minimum limits imposed by data. |
ylab |
A title for the graphic's y-axis. Ignored if |
xlab |
A title for the graphic's x-axis. Ignored if |
main |
An overall title for the graphic. Ignored if |
The ARIMA model used for time series prediction is automatically fitted by
the auto.arima
function in the forecast
package. In
order to avoid drift errors, the function introduces an auxiliary regressor
whose values are a sequence of consecutive integer numbers starting from 1.
The fitted ARIMA model is used for prediction by the
predict.Arima
function in the stats
package. For more
details, see the auto.arima
function in the forecast
package and the predict.Arima
function in the stats package.
A time series of predictions, or if se.fit
is TRUE
, a
list with the components pred
, the predictions, and se
, the
estimated standard errors. Both components are time series. See the
predict.Arima
function in the stats package.
Rebecca Pontes Salles
R.J. Hyndman and G. Athanasopoulos, 2013, Forecasting: principles and practice. OTexts.
R.H. Shumway and D.S. Stoffer, 2010, Time Series Analysis and Its Applications: With R Examples. 3rd ed. 2011 edition ed. New York, Springer.
auto.arima
, predict.Arima
,
plotarimapred
, marimapred
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.