Re: [R] Optimal lag selection in Granger Causality tests

From: Matthieu Stigler <>
Date: Wed, 02 Jul 2008 15:12:22 +0200

See function VARselect() in package vars which computes AIC and BC for each lag

function ar() also computed VAR models with automatic selection of lags


> First of all, I was not aware of the RSiteSearch function. Cool. Thanks
> for that.
> That having been said, I could not find anything here that helps with
> optimal lag selection.
> I can see:
> - grangertest,
> - granger.test and
> - the causality functions which actually implement the tests, but nothing
> which helps with
> To be fair, I had already found these, and am currently using granger.test
> (tho causality looks interest too, which I hadn't seen before...).
> I did try things like:
> RSiteSearch("Granger Causality optimal leg")
> RSiteSearch("Causality optimal leg")
> RSiteSearch("optimal leg")
> and variants but nothing.
> Anyway, if anyone has any pointers, would be most appreciated.
> Still, that is a cool function, thanks for pointing it out Thierry.
> Tolga mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 02 Jul 2008 - 13:15:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jul 2008 - 16:30:57 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive