BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
sasalex2024
Quartz | Level 8

Dear SAS Community,

I am working with a dataset (please see below) and attempting to run a model with one AR and two MA terms. However, I’ve noticed a significant discrepancy between the results generated by PROC ARIMA and PROC AUTOREG. Below are the codes I used:

proc autoreg data=a;
model consump = consumplag / method=ml nlag=2;
run;

vs

proc arima data=a;
   identify var=consump;
   estimate p=1 q=2 method=ml;
run;

Any insights into why these two procedures are producing different results would be greatly appreciated. The data are shown below:

 

yrconsumpconsumplag
192039.8 
192141.939.8
19224541.9
192349.245
192450.649.2
192552.650.6
192655.152.6
192756.255.1
192857.356.2
192957.857.3
19305557.8
193150.955
193245.650.9
193346.545.6
193448.746.5
193551.348.7
193657.751.3
193758.757.7
193857.558.7
193961.657.5
19406561.6
194169.765
1 ACCEPTED SOLUTION

Accepted Solutions
SASCom1
SAS Employee

Hello @sasalex2024 

If you wanted to fit a ARMA(1,2)  model, then your PROC ARIMA code is correct. However, PROC AUTOREG does not support MA terms, and you cannot specify ARMA models in PROC AUTOREG. Your PROC AUTOREG is specifying a regression of consump on its own lag, and the error term in this regression follows AR(2) process. Please see the equations for regressions with AR errors specified in PROC AUTOREG:

 

https://go.documentation.sas.com/doc/en/pgmsascdc/v_055/etsug/etsug_autoreg_gettingstarted01.htm

 

 

I hope this helps.

 

 

View solution in original post

1 REPLY 1
SASCom1
SAS Employee

Hello @sasalex2024 

If you wanted to fit a ARMA(1,2)  model, then your PROC ARIMA code is correct. However, PROC AUTOREG does not support MA terms, and you cannot specify ARMA models in PROC AUTOREG. Your PROC AUTOREG is specifying a regression of consump on its own lag, and the error term in this regression follows AR(2) process. Please see the equations for regressions with AR errors specified in PROC AUTOREG:

 

https://go.documentation.sas.com/doc/en/pgmsascdc/v_055/etsug/etsug_autoreg_gettingstarted01.htm

 

 

I hope this helps.

 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Discussion stats
  • 1 reply
  • 1693 views
  • 2 likes
  • 2 in conversation