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

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 2025: Call for Content

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!

Submit your idea!

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
  • 1 reply
  • 68 views
  • 2 likes
  • 2 in conversation