我正在尝试使用'xreg'变量拟合auto.arima模型,以下是我的代码:
x_110_Train <- arimax(x_Train,order = c(1,1,0),method = "ML",xreg = xVar_Train)
x_110_test <- Arima(ts(x_Test,frequency = frequn), model = x_110_Train, use.initial.values=TRUE)
错误是 Error in stats::arima(x = x, order = order, seasonal = seasonal, include.mean = include.mean, : wrong length for 'fixed'
我已经将x_Train
,x_Test
和xVar
用作ts对象