我用给定的数据运行了一组R命令(基本上是从盒子jenkins的airpassenger数据中提取的),我遇到了一个我无法理解的错误。
library(forecast)
listr <- c(278.0, 284.0, 277.0, 317.0, 313.0, 318.0, 374.0, 413.0, 405.0, 355.0, 306.0, 271.0, 306.0, 315.0, 301.0, 356.0, 348.0, 355.0, 422.0, 465.0, 467.0, 404.0, 347.0, 305.0, 336.0, 340.0, 318.0, 362.0, 348.0, 363.0, 435.0, 491.0, 505.0)
tseriesr <- ts(listr,start=1,frequency=12)
fitModelr <- arima(tseriesr, order = c(1, 0, 0), seasonal = c(0, 1, 0), method="ML")
solve.default中的错误(res $ hessian * n.used,A):Lapack例程 dgesv:系统完全是单数:U [1,1] = 0
答案 0 :(得分:0)
我想这样,它会运行:
fitModelr <- arima(tseriesr, order = c(1L, 0L, 0L), seasonal = c(0, 1, 0), method="ML", transform.pars = FALSE)
fitModelr <- arima(tseriesr, order = c(1L, 0L, 0L), seasonal = c(0, 1, 0), method="CSS-ML")
请参阅此help页面。