필터 지우기
필터 지우기

Error With Forecasting ARIMAX Model

조회 수: 18 (최근 30일)
J.C.
J.C. 2014년 3월 27일
댓글: Redho redho 2020년 12월 22일
I'm trying to specify an ARIMAX model and then use it to forecast an hourly time series. When I use forecast, however, I get the error: "Error using arima/forecast (line 274) Additive constant must be specified." I'm sure I missing something simple, but I can't figure out what it is and searching the web hasn't turned up anything. The relevent code is below. Any help would be appreciated.
model = arima('AR', arLagV, 'D', 0, 'SAR', 0);
[estModel, estParmCov, logL, info] = estimate(model, Y(100:length(Y)),...
'X', X, 'Display', 'params');
[Y,YMSE,V] = forecast(model, 48, 'X0', X, 'Y0', Y(100:length(Y)), 'XF', XF);
  댓글 수: 1
Redho  redho
Redho redho 2020년 12월 22일
excuse me, could you help me sir with give me this codes because i need to toward a bachelor degree
thanks before sir

댓글을 달려면 로그인하십시오.

채택된 답변

Hang Qian
Hang Qian 2014년 3월 30일
To forecast the ARIMA model, we want a model with all coefficients being known. After parameter estimation, the fitted model is reported as estModel. So the program will work if you replace "model" by "estModel":
[Y,YMSE,V] = forecast(estModel, 48, 'X0', X, 'Y0', Y(100:length(Y)), 'XF', XF);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conditional Mean Models에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by