Skip to content
Prev 8942 / 15274 Next

Granger's causality test

Rafael

I don't know about the function found on the test, but you can rely on 
the function grangertest!

Note also you could use causality() from vars pkg, which gives exactly 
the same output:
library(vars)
v<-VAR(cbind(tacc, value))

causality(v, cause="value")$Granger
grangertest(tacc ~ value, order = 1)

Note that, although the F stat is the same, the df and p-values are not 
exactly the same: grangertest() is considered as a univariate 
regression, while causality() considers you have been estimating a full 
VAR. See Lutkephol (2006) p. 103 for a discussion on the choice of df. 
The advantage of the causality(9 function is that it allows to use HC 
covariance estimators for the test.

Hope this helps

Matthieu


Le 17/11/2011 02:57, rafleon at highstat.cl a ?crit :