Problem in performing GCtest

I am trying to perform Granger Causality test in tspdlib package. The example file runs ok, but when I am using my dataset it gives the following error:

G0121 : Matrix not positive definite [GCtests.src, line 513]
Currently active call:

File GCtests.src, line 513, in _get_icvalue
b=(dep/z);
Traceback:

File GCtests.src, line 386, in _get_kp
{aic,sbc}=_get_icvalue(dep,z,p);
File GCtests.src, line 125, in GC_tests
{k,p} = _get_kp(y, pmax, kmax, ic, test);
File co2gctest.gss, line 62, in <main>
GC_out = GC_tests(data, vnames, pmax, ic, test, Nboot);

Your Answer


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.