Granger Causality Test in VECM

Questions and discussions on Vector Autoregressions
jeanne
Posts: 11
Joined: Tue Jul 23, 2013 6:42 am

Granger Causality Test in VECM

Unread post by jeanne »

Dear all,

I am estimating the follwoing VECM where x is a spot price and y the corresponding futures price.

Code: Select all

@JOHMLE(LAGS=10,det=rc,cv=cvector)
# x y 

equation(coeffs=cvector) eq
# x y constant

system(model=vecm)
variables x y 
lags 1 to 10
ect eq
end(system)

estimate

I would now like to use Granger causality tests to examine the coefficients on the error correction term(s) and the coefficients on the lagged spot and futures prices.

I tried to use this test from the UG:
linreg fm1
# constant fm1{1 to 8} gdph{1 to 8}
exclude(title="Granger Causality Test")
# gdph{1 to 8}
... and got this error message:
## REG1. Cannot Execute Unless Preceded by a Completed Regression
How can I adapt it to the VECM output, which is "split" into two sections, one for x and one for y being the dependent variable?

Thank you very much!
Best,
Jeanne
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Granger Causality Test in VECM

Unread post by TomDoan »

Given the cointegrating vector, the equations can be estimated one-at-a-time, and you can do the causality inference on that basis.

Why are you estimating the cointegrating vector? Shouldn't it be 1,-1 if it's anything? However, as you have it written, you would do:

Code: Select all

set z = cvector(1)*x+cvector(2)*y+cvector(3)
set dx = x-x{1}
set dy = y-y{1}
*
linreg dy
# dy{1 to 9} dx{1 to 9} z{1}
and do a joint test of the dx and z lags.
jeanne
Posts: 11
Joined: Tue Jul 23, 2013 6:42 am

Re: Granger Causality Test in VECM

Unread post by jeanne »

Thank you very much! That works fine - but the results seem a bit odd.
How can I use the cointegrating vector (1; -1) as you suggested instead?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Granger Causality Test in VECM

Unread post by TomDoan »

Use

set z = y-x

with everything else the same.
Post Reply