固定时间序列的ARMA模型预测,固定时间序列的错误长度
我试图预测ARMA模型,但在pred_ARMA模型上,它给了我一个错误:固定时间序列的ARMA模型预测,固定时间序列的错误长度,r,time-series,prediction,arima,R,Time Series,Prediction,Arima,我试图预测ARMA模型,但在pred_ARMA模型上,它给了我一个错误: Error in stats::arima(x = x, order = order, seasonal = seasonal, include.mean = include.mean, : “固定”的长度错误 唯一的长度调用是在数据行。我不确定“固定”的长度应该是多少 test_series <- dTRFVOLUSM227NFWA[test] index(test_series) <- as.year
Error in stats::arima(x = x, order = order, seasonal = seasonal, include.mean = include.mean, :
“固定”的长度错误
唯一的长度调用是在数据行。我不确定“固定”的长度应该是多少
test_series <- dTRFVOLUSM227NFWA[test]
index(test_series) <- as.yearmon(index(test_series))
max_hor <- 13
data_sequences <- lapply(seq(0,length(test)-1,1), function(j)
dTRFVOLUSM227NFWA[c(training,test[0:j])])
pred_arma <- lapply(data_sequences, function(sequence)
predict(Arima(y=sequence,model=est),n.ahead=max_hor))
test_系列