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