BookmarkSubscribeRSS Feed
boas3ad
Calcite | Level 5

Hi,

I am trying to do VAR Granger Causality using Proc Varmax by the below code:

  /*--- Causality Testing ---*/

proc varmax data=grunfeld;

model y1-y3 = x1 x2 / p=1 noprint;

causal group1=(x1) group2=(y1-y3); causal group1=(y3) group2=(y1 y2);

run;

My question, how can I choose how many lag or  the value for p- p=????? (I think it is how many lag to test but how shall I choose it)?

My results changed significantly if I change the value for p

1 REPLY 1
user24feb
Barite | Level 11

Hi!

The Akaike (AIC) or the Schwarz-Bayesian (SBC) criterion can be used to determine the proper order of p. It is in the SAS output.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1434 views
  • 0 likes
  • 2 in conversation