BookmarkSubscribeRSS Feed
SAScph
Fluorite | Level 6

Hi

 

I want to know what the difference is when inserting variables in proc reg and then forecast the residuals with VARMAX 

and

inserting the significant variables from proc reg to the VARMAX modelling.

 

In code:

Proc reg data=x printall;
dependent_variable=exogenous_variable1 exogenous_variable2 ... exogenous_variablep
white vif tol dw dwprob selection=b slentry=0.05;
output out=xforecast Rstudent=Rstudent student=student covratio=covratio h=h predicted=pred residual=residual;

Proc varmax data=xforecast
model residual/
p=7 q=2
method=ls dftest minic=(type=aic) print=(roots);
nloptions;
garch p=1 q=1 form=ccc;
output out=forecast1 lead=21;
run;

Or with only VARMAX:

proc varmax data=xforecast printall;
dependent_variable=exogenous_variable1 exogenous_variable2 ... exogenous_variablep/
p=7 q=2 method=ls dftest minic=(type=aic) print=(roots);
nloptions;
garch p=1 q=1 form=ccc;
output out=forecast1 lead=21;

With only running VARMAX it is also not possible to generate a forecast which i don't understand. The error code:

 WARNING: The value of LEAD=21 in OUTPUT statement. There are only 0 future independent observations. The value of LEAD will take 
          the minimum of two values.

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
  • 0 replies
  • 442 views
  • 0 likes
  • 1 in conversation