I'm trying to run the script from Hatemi-J asymmetric causality test.
After decomposing the series in pos. and neg. components and try to run the script, it seems to work only if series are pos.
For the neg. case it gives me the error: matrix not positive definite, line 499:
Ahat = (Y/X)'