我给arima配上了xreg:
arima(temp_ts, order = c(1,1,1), seasonal = list(order = c(0,1,0), period = 12),
xreg = temp_xreg, method="CSS")
它报告了错误:
Error in optim(init[mask], armaCSS, method = optim.method, hessian = TRUE, :
non-finite value supplied by optim
我尝试添加:
arima(temp_ts, order = c(1,1,1), seasonal = list(order = c(0,1,0), period = 12),
xreg = temp_xreg, method="CSS", optim.method = "L-BFGS-B"))
arima(temp_ts, order = c(1,1,1), seasonal = list(order = c(0,1,0), period = 12),
xreg = temp_xreg, method="CSS", optim.method = "Nelder-Mead"))
但是什么都不起作用。总是同样的错误!
我甚至试着添加了一个
"hessian = FALSE"
但它返回了相同的错误和一个额外的警告:
unused argument (hessian = FALSE)
发布于 2021-01-24 19:58:13
我在拟合Arima模型并使用七个热门变量引入xreg时遇到了完全相同的问题:星期几。我只是通过删除其中一天(在我的例子中是周日)解决了这个问题,这样其他字段就不会相互确定。
https://stackoverflow.com/questions/50103125
复制相似问题