Forecast

Embed Size (px)

Citation preview

Package forecastJune 4, 2011Title Forecasting functions for time series Description Methods and tools for displaying and analysing univariate time series forecasts including exponential smoothing via state space models and automatic ARIMA modelling. Version 2.19 Date 2011-06-04 Depends R (>= 2.0.0), graphics, stats, tseries, fracdiff LazyData yes LazyLoad yes Author Rob J Hyndman Maintainer Rob J Hyndman License GPL (>= 2) URL http://robjhyndman.com/software/forecast/ Repository CRAN Date/Publication 2011-06-04 08:07:23

R topics documented:accuracy . . Acf . . . . arma . . . Arima . . . arima.errors auto.arima . BoxCox . . croston . . . CV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 . 3 . 4 . 6 . 8 . 9 . 10 . 11 . 13

2 decompose . . . . . dm.test . . . . . . . . ets . . . . . . . . . . tted.Arima . . . . . forecast . . . . . . . forecast.Arima . . . forecast.ets . . . . . forecast.HoltWinters forecast.lm . . . . . forecast.stl . . . . . . forecast.StructTS . . gas . . . . . . . . . . gold . . . . . . . . . logLik.ets . . . . . . ma . . . . . . . . . . meanf . . . . . . . . monthdays . . . . . . na.interp . . . . . . . naive . . . . . . . . . ndiffs . . . . . . . . plot.ets . . . . . . . . plot.forecast . . . . . rwf . . . . . . . . . . seasadj . . . . . . . . seasonaldummy . . . seasonplot . . . . . . ses . . . . . . . . . . simulate.ets . . . . . sindexf . . . . . . . . splinef . . . . . . . . thetaf . . . . . . . . tsdisplay . . . . . . . tslm . . . . . . . . . wineind . . . . . . . woolyrnq . . . . . . Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 15 16 18 19 20 22 23 24 26 27 29 29 30 31 31 33 33 34 35 36 37 38 40 41 42 43 45 46 47 48 50 51 52 52 54

accuracy

Accuracy measures for forecast model

Description Returns range of summary measures of the forecast accuracy. If x is provided, the function measures out-of-sample forecast accuracy based on x-f. If x is not provided, the function produces in-sample accuracy measures of the one-step forecasts based on f["x"]-tted(f). All measures are dened and discussed in Hyndman and Koehler (2006).

Acf Usage accuracy(f, x, test=1:length(x),lambda=NULL) Arguments f x test lambda An object of class "forecast", or a numerical vector containing forecasts.

3

An optional numerical vector containing actual values of the same length as object. Indicator of which elements of x and f to test. Box-Cox parameter. If present, function backtransforms data and forecasts using InvBoxCox.

Value Vector giving forecast accuracy measures. Author(s) Rob J Hyndman References Hyndman, R.J. and Koehler, A.B. (2006) "Another look at measures of forecast accuracy". International Journal of Forecasting, 22(4). Examplesfit1