BookmarkSubscribeRSS Feed
Golf
Pyrite | Level 9

Hi everyone,

I'm looking for help with the correct code to run the following model using "proc ARIMA":

dy = a0 + a1*trend + a2*coint(-1) + b1*dy(-1) + b2*dy(-2) +....+b5*dy(-5) + c1*dx(-1) + c2*dx(-2) + .... +c5*dx(-5) +error

In this model, dy is the first difference of y, dy(-1) represents the 1 period lag of dy, and dy(-5) represents the 5 period lag of dy. I generated the dy and dx variables from dif(y) and dif(x), respectively.

Additionally, I'm wondering if the backward selection can be applied to the lag of dy(-1) through dy(-5), dx(-1) through dx(-5).

Thank you for your help.

4 REPLIES 4
sbxkoenk
SAS Super FREQ

I moved this post to a more appropriate board:
SAS Support Communities > Analytics and Statistics > SAS Forecasting and Econometrics

 

What is coint(-1)?
An element from a cointegrating vector (cointegration)?

 

BR, Koen

Golf
Pyrite | Level 9

@sbxkoenk Yes It is.

sbxkoenk
SAS Super FREQ

Hello,

 

I would first test for cointegration using PROC VARMAX.

VARMAX = Vector AutoRegression Moving-Average with EXogenous Regressors

Examples of usage:

model y1 y2 / p=2 cointtest=(johansen=(iorder=2 normalize=y1));
model y1 y2 / p=2 cointtest=(sw siglevel=0.1);
model y1 y2 / p=2 cointtest=(sw=(type=kernel lag=3));

BR, Koen

Golf
Pyrite | Level 9

@sbxkoenk Thank You.  

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
  • 4 replies
  • 988 views
  • 1 like
  • 2 in conversation