BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Golf
Pyrite | Level 9

Hello,

 I have 2 questions about proc ARIMA.   I hope somebody can help me out.

(1)  I have tried to find optimal lag length of ARMA process by using  procedure (a) and (b)

 Why the minimum information criterion changing when we change p in proc ARIMA? 

    Procedure (a) :   p = 1, 2, ..., 12     -> This lead to indicate 12 as optimal lag.

Golf_0-1589252416587.png

    Procedure (b) :   p = 1, 2, ..., 12  -> This lead to indicate 10 as optimal lag.

 

Capture.PNG

      (2)  How Can I add intercept and  trend in this procedure?

Thank You.

       

1 ACCEPTED SOLUTION

Accepted Solutions
dw_sas
SAS Employee

Hi @Golf ,

 

The difference in the results returned by the MINIC option in your two PROC ARIMA steps is due to a difference in the approximation used for the error series.  In the first PROC ARIMA step, the error series model was an AR(12) model, whereas in the second PROC ARIMA step, the error series model was an AR(15) model.  If you include the PERROR= option with the same specification in both IDENTIFY statements, then the Minimum Information Criterion values will the the same through AR lag 12.  For example:

 

proc arima data = ARDL;
identify var = dnpl MINIC p=(1:12) q=0 perror=(10:12);
identify var = dnpl MINIC p=(1:15) q=0 perror=(10:12);
run;

Regarding your question on how to "add intercept and trend to this procedure", I assume you mean to the underlying procedure used by the MINIC option.  The methodology used by the MINIC option automatically corrects for the mean, however, it assumes the series is stationary (ie. constant mean and variance).  If your series is non-stationary, then you can include a differencing specification in the VAR= option to detrend the series.  The MINIC option operates on the differenced series.  If your series has a deterministic trend component, then you will need to detrend the series prior to running PROC ARIMA with the MINIC option.

 

For more information on the MINIC option, please see the following documentation link:

https://go.documentation.sas.com/?docsetId=etsug&docsetTarget=etsug_arima_details05.htm&docsetVersio... 

 

I hope this helps!

DW

View solution in original post

3 REPLIES 3
dw_sas
SAS Employee

Hi @Golf ,

 

The difference in the results returned by the MINIC option in your two PROC ARIMA steps is due to a difference in the approximation used for the error series.  In the first PROC ARIMA step, the error series model was an AR(12) model, whereas in the second PROC ARIMA step, the error series model was an AR(15) model.  If you include the PERROR= option with the same specification in both IDENTIFY statements, then the Minimum Information Criterion values will the the same through AR lag 12.  For example:

 

proc arima data = ARDL;
identify var = dnpl MINIC p=(1:12) q=0 perror=(10:12);
identify var = dnpl MINIC p=(1:15) q=0 perror=(10:12);
run;

Regarding your question on how to "add intercept and trend to this procedure", I assume you mean to the underlying procedure used by the MINIC option.  The methodology used by the MINIC option automatically corrects for the mean, however, it assumes the series is stationary (ie. constant mean and variance).  If your series is non-stationary, then you can include a differencing specification in the VAR= option to detrend the series.  The MINIC option operates on the differenced series.  If your series has a deterministic trend component, then you will need to detrend the series prior to running PROC ARIMA with the MINIC option.

 

For more information on the MINIC option, please see the following documentation link:

https://go.documentation.sas.com/?docsetId=etsug&docsetTarget=etsug_arima_details05.htm&docsetVersio... 

 

I hope this helps!

DW

Golf
Pyrite | Level 9
Thank You so much.
dw_sas
SAS Employee

You are most welcome, @Golf.  Happy to help!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1513 views
  • 2 likes
  • 2 in conversation