开发者

R: Forecast package: Automatic algorithm for composite model involving ETS and AR

I would like to write a code involving automatic selection of a best composite model using ETS as well as autoregressive models. What is the criteria I should base my selection on?

Also if I'm using the auto.arima function for deducing number of AR terms and corresponding coefficients from the forecast package in R, does my input series necessarily have to be stationary? or the value for d would be automatically sel开发者_如何学JAVAected thus returning a non-stationary model?

Thanks, Phani


It would help if you read the help pages. The help provided for ets() and auto.arima() is quite detailed and contains the information you ask for.

  1. Use whichever criterion you prefer. The default criterion for ets() is AIC. This is asymptotically equivalent to leave-one-out cross-validation, and so is a good choice for forecasting. The AICc is a small-sample correction of the AIC and so is arguably slightly better.

  2. auto.arima() selects the d value using unit-root tests. So your data do not have to be stationary in the mean. However, as noted by Samik R., there is no attempt to find a transformation to stabilize the variance.


I will try answering the second part of your question. Your series do not need to be mean stationary, auto.arima would find an appropriate number of difference if it decides that the series has non-stationary mean. However, your series have to be variance stationary, auto.arima does not do power transformations to "stationarize" the variance of a series.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜