Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Analytics
- /
- Forecasting
- /
- proc ARIMA to identify optimal lag

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

🔒 This topic is **solved** and **locked**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 05-11-2020 11:13 PM
(1763 views)

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.

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

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

Thank You.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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:

I hope this helps!

DW

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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:

I hope this helps!

DW

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Thank You so much.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

Are you ready for the spotlight? We're accepting content ideas for **SAS Innovate 2025** to be held May 6-9 in Orlando, FL. The call is **open **until September 25. Read more here about **why** you should contribute and **what is in it** for you!

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.