无法估计 ARIMA 模型 R 预测包中的错误 - auto.arima

No ARIMA model able to be estimated Error in R forecast package - auto.arima

我正在为 HPC 服务器中的多个数据集使用 forecast 包中的 auto.arima。火车数据总是有 24 个数据点,包含过去 2 年的按月数据。数据还包含一个外部回归变量。它长期以来一直运行良好,但我突然遇到一个数据集错误 alone.The 错误消息说 -

<simpleError in search.arima(x, d, D, max.p, max.q, max.P, max.Q, max.order,     stationary, ic, trace, approximation, xreg = xreg, offset = offset,     allowdrift = allowdrift, allowmean = allowmean, parallel = parallel,     num.cores = num.cores): No ARIMA model able to be estimated>

我使用的代码是-

auto_arima <- ts(data$y, start=min(data$DATE), frequency=12)
auto_arima <- auto.arima(auto_arima, xreg = data$x1, stepwise=FALSE, approximation=FALSE, seasonal=TRUE)

产生错误的数据集是

structure(list(DATE = structure(c(17804, 17835, 17865, 17896, 
17927, 17955, 17986, 18016, 18047, 18077, 18108, 18139, 18169, 
18200, 18230, 18261, 18292, 18321, 18352, 18382, 18413, 18443, 
18474, 18505), class = "Date"), x1 = c(21, 22, 21, 22, 22, 19, 
22, 21, 22, 21, 22, 22, 21, 22, 21, 22, 22, 19, 22, 21, 22, 21, 
22, 22), y = c(17532306871, 41826190703, 7748403270, 14959015398, 
15241717931, 18655759009, 15393151016, 15251081090, 14516497716, 
13974303432, 11254893416, 17410813458, 14446411746, 12876827127, 
17609512917, 12179664532, 17473491954, 18447419416, 28262667160, 
36623989143, 28711285833, 28711285833, 28711285833, 28711285833
)), row.names = c(NA, 24L), class = "data.frame")

当我 运行 在安装了 Rversion 4.0.2 的 windows 机器中使用此代码时,它工作正常(正在构建 ARIMA 模型 (0,1,0))但是当 运行在 HPC 服务器中使用相同的数据使用相同的代码,我遇到了上述错误。即使我尝试在另一台 windows 机器上使用从 RStudio 安装的 Rversion 3.6.1 执行相同的代码,我也面临同样的错误。

这是因为 R 版本不同还是我遗漏了什么?请帮我解决这个问题。

R 版本在这里可能没有什么区别。包版本更重要。这里您使用的是 forecast 包,并且 auto.arima 算法多年来已经有了一些改进和错误修复。当前的 CRAN 预测版本是 v8.12,它 returns ARIMA(0,1,0) 模型。