Computes the Granger causality test for panel data put forward by Dumitrescu and Hurlin (2012). In the test, all the coefficients are allowed to vary across cross-sections in the panel. The test is computed by running standard Granger causality regressions for each cross-section, taking the average of the test statistics (W-bar) and standardizing it (Z-bar). Z-bar follows a standard normal distribution The number of lags in the Granger causality regression, K, and the number of time-periods in each cross-sectional unit i, Ti, must satisfy the following condition: T > 5 + 2*K If the condition is not met, the function returns the number of (one of) the unit where the condition fails. A row vector containing Z-bar is available for assignment on return. Reference: Dumitrescu, E.-I. and Hurlin, C. (2012), Testing for Granger non-causality in heterogeneous panels, Economic Modelling 29 (4), 1450-1460. Syntax: dumitrescu_hurlin_test(series Y, series X, int K)