具有Xreg变量的Arima模型

时间:2019-01-18 09:13:23

标签: arima

我正在尝试使用'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_Trainx_TestxVar用作ts对象

0 个答案:

没有答案