[英]‘forecast’ package version 3.22 Auto.arima to forecast in R, more than one seasonal period
I am using ARIMA with a seasonal period a "week" that has 672 measurements like follows: 我正在使用ARIMA,其季节性周期为“周”,其具有672个测量值,如下所示:
day_freq<-96
Week_freq<-day_freq*7 #672
## Weekly seasonality
NEW.xx<-ts(x,start=1,freq=672)
F.Xreg <- fourier(NEW.xx,24)
fit <-auto.arima(NEW.xx, D=0, max.P=0, max.Q=0, xreg=F.Xreg)
##new xreg fourierf
FForecast<-fourierf(NEW.xx,24,3000)
forecast(fit, h=3000, xreg=FForecast, level=0)
How can I combine this two seasonalities and use a dayly seasonality "96" in the same time as a Week seasonality together? 如何将这两个季节组合在一起,并与“周”季节同时使用每日“ 96”?
First, ARIMA models do not handle large seasonal periods very well. 首先,ARIMA模型无法很好地处理大型季节性季节。 Second, R does not allow for multiple seasonal periods in an ARIMA model.
其次,R在ARIMA模型中不允许有多个季节周期。 I suggest you use the
tbats()
function in the forecast package which handles long seasonal periods and multiple seasonality. 我建议您在预测包中使用
tbats()
函数,该函数可以处理较长的季节性周期和多个季节性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.