Matlab/octave code for all three forms of partial directed coherence (PDC) and directed transfer function (DTF)with asymptotic statistics for null hypothesis testing for multivariate single-segment analysis of connectivity..
Check at this link or at .