eatf.Rd
Combined ets, arima, and theta (eat) forecasting (uses forecast::ets
,
forecast::auto.arima
, forecast::thetaf
)
a univariate time series
number of periods for forecasting
confidence level for prediction intervals
forecasting method: "E" for forecast::ets
;
"A"for forecast::auto.arima
; "T" for forecast::thetaf
;
or "EAT" for the combination of the three (default, with weights
)
weights for each method, in method EAT
. Must add up to 1.
type of prediction interval: currently ETS: "E", Auto.Arima: "A" or Theta: "T"
additional parameters to be passed to forecast::ets
,
forecast::auto.arima
, forecast::thetaf
and
forecast::forecast
An object of class "forecast"; a list containing the following elements:
A list containing information about the fitted model
The name of the forecasting method as a character string
Point forecasts for the time series
Lower bound for prediction interval
Upper bound for prediction interval
The original time series
Residuals from the fitted model
ensemble forecasts obtained from forecast::ets
,
forecast::auto.arima
and forecast::theta
(with weights)
Hyndman R, Athanasopoulos G, Bergmeir C, Caceres G, Chhay L,
O'Hara-Wild M, Petropoulos F, Razbash S, Wang E, Yasmeen F (2021).
forecast: Forecasting functions for time series and linear models. R
package version 8.14, <URL: https://pkg.robjhyndman.com/forecast/>.
Hyndman RJ, Khandakar Y (2008). 'Automatic time series forecasting: the forecast package for R.' Journal of Statistical Software, 26 (3), 1-22. <URL: https://www.jstatsoft.org/article/view/v027i03>.
Assimakopoulos, V. and Nikolopoulos, K. (2000). The theta model: a decomposition approach to forecasting. International Journal of Forecasting 16, 521-530.
Hyndman, R.J., and Billah, B. (2003) Unmasking the Theta method. International J. Forecasting, 19, 287-290.
require(forecast)
if (FALSE) {
print(ahead::eatf(WWWusage, method = "EAT",
weights = c(0.5, 0, 0.5)))
print(ahead::eatf(WWWusage, method = "EAT"))
obj <- ahead::eatf(WWWusage, method = "EAT",
weights = c(0, 0.5, 0.5), h=10,
type_pi = "T")
plot(obj)
obj <- ahead::eatf(WWWusage, method = "EAT",
weights = c(0, 0.5, 0.5), h=10, type_pi="A")
plot(obj)
}
par(mfrow=c(3, 2))
plot(ahead::eatf(USAccDeaths, h=10, level=95))
plot(ahead::eatf(AirPassengers, h=10, level=95, type_pi = "T"))
plot(ahead::eatf(lynx, h=10, level=95, type_pi = "A"))
plot(ahead::eatf(WWWusage, h=10, level=95, type_pi = "E"))
plot(ahead::eatf(Nile, h=10, level=95))
plot(ahead::eatf(fdeaths, h=10, level=95))