Thanks to Kit Baum a new package is available on SSC: xtgrangert
xtgrangert implements the panel Granger non-causality test approach developed by Juodis, Karavias and Sarafidis (2021, EmpEcon). This test offers superior size and power performance to existing tests, which stems from the use of a pooled estimator that has a faster √NT convergence rate. The test has two other useful properties; it can be used in multivariate systems and it has power against both homogeneous as well as heterogeneous alternatives. A working paper describing (an earlier version of) xtgrangert is available here.
xtgrangert can be applied to balanced and unbalanced datasets.
Examples with lag length selection based on BIC and cross-sectional heteroskedasticity-robust standard errors:
For more examples and info please see the WP or the helpfile.
xtgrangert was previously called xtgranger, but the name was "too nice".
Questions or comments are very welcome.
xtgrangert implements the panel Granger non-causality test approach developed by Juodis, Karavias and Sarafidis (2021, EmpEcon). This test offers superior size and power performance to existing tests, which stems from the use of a pooled estimator that has a faster √NT convergence rate. The test has two other useful properties; it can be used in multivariate systems and it has power against both homogeneous as well as heterogeneous alternatives. A working paper describing (an earlier version of) xtgrangert is available here.
xtgrangert can be applied to balanced and unbalanced datasets.
Examples with lag length selection based on BIC and cross-sectional heteroskedasticity-robust standard errors:
Code:
. use xtgrangert_example . xtset cert time Panel variable: cert (strongly balanced) Time variable: time, 1 to 56 Delta: 1 unit . xtgrangert roa inefficiency quality, maxlags(4) het Juodis, Karavias and Sarafidis (2021) Granger non-causality Test ------------------------------------------------------------------------------ Number of units= 450 Obs. per unit (T) = 55 Number of lags = 1 BIC = -34257.34 ------------------------------------------------------------------------------ JKS non-causality test H0: Selected covariates do not Granger-cause roa. H1: H0 is violated. HPJ Wald test : 30.2387 p-value : 0.0000 ------------------------------------------------------------------------------ BIC selection: lags = 1, BIC = -34257.336* lags = 2, BIC = -33371.195 lags = 3, BIC = -32727.595 lags = 4, BIC = -32715.923 ------------------------------------------------------------------------------ Results for the Half-Panel Jackknife estimator Cross-sectional heteroskedasticity-robust variance estimation ------------------------------------------------------------------------------ | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- inefficiency | L1. | .2562039 .0572807 4.47 0.000 .1439358 .368472 | quality | L1. | -.0162294 .0444754 -0.36 0.715 -.1033996 .0709409 ------------------------------------------------------------------------------
xtgrangert was previously called xtgranger, but the name was "too nice".
Questions or comments are very welcome.
Comment