简体   繁体   English

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

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

I am using auto.arima from forecast package for multiple datasets in HPC server.我正在将forecast包中的auto.arima用于 HPC 服务器中的多个数据集。 The train data always has 24 data points with month-wise data for the past 2 years.训练数据始终有 24 个数据点,其中包含过去 2 年的逐月数据。 The data also contains an external regressor.该数据还包含一个外部回归量。 It has been working fine since long, but I encountered an error suddenly for one dataset alone.The error message says-长期以来它一直运行良好,但我突然遇到一个错误,仅针对一个数据集。错误消息说-

<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>

The code that I used is -我使用的代码是 -

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)

The dataset that was producing the error is产生错误的数据集是

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")

When I run this code in my windows machine with Rversion 4.0.2 installed, it is working fine (ARIMA model (0,1,0) is being built) but when running the same code with the same data in HPC server, I am facing the error described above.当我在安装了 Rversion 4.0.2 的 Windows 机器上运行此代码时,它工作正常(正在构建 ARIMA 模型(0,1,0))但是在 HPC 服务器中使用相同数据运行相同代码时,我是面对上述错误。 I am facing the same error even when I try to execute the same code with Rversion 3.6.1 installed from RStudio in another windows machine.即使我尝试在另一台 Windows 机器上使用从 RStudio 安装的 Rversion 3.6.1 执行相同的代码时,我也面临同样的错误。

Is this because of R version difference or am I missing something?这是因为 R 版本差异还是我遗漏了什么? Please help me with this.请帮我解决一下这个。

The R version probably makes no difference here. R 版本在这里可能没有区别。 The package version is what matters more.包版本更重要。 Here you are using the forecast package, and the auto.arima algorithm has had a few improvements and bug fixes over the years.在这里,您使用的是预测包, auto.arimaauto.arima算法已经进行了一些改进和错误修复。 The current CRAN version of forecast is v8.12 and it returns the ARIMA(0,1,0) model.预测的当前 CRAN 版本是 v8.12,它返回 ARIMA(0,1,0) 模型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM