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.  

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

Discussion stats
  • 4 replies
  • 1654 views
  • 1 like
  • 2 in conversation