我正在使用auto.arima():
F12.Xreg <- fourier(NEW.JMB,12)
F4.Xreg<- fourier(NEW.JMB,4)
fb<-cbind(F12.Xreg, F4.Xreg)
fit <-auto.arima(NEW.JMB, D=0, max.P=0, max.Q=0, xreg=fb)
我不知道如何避免错误:
Error in solve.default(res$hessian * n.used) :
system is computationally singular: reciprocal condition number = 6.64873e-30
Error in if (diffs == 1 & constant) { : argument is of length zero
In addition: Warning message:
In auto.arima(NEW.JMB, D = 0, max.P = 0, max.Q = 0, xreg = fb) :
Unable to calculate AIC offset
由于
答案 0 :(得分:1)
两个傅立叶矩阵具有相同的列,因此设计矩阵不是满秩。您只需拨打一次fourier()
即可创建更为完整的术语。