I have been estimating a panel VAR model via GMM (Generalized Method of Moments) over ~20k observations with the panelvar R package by Sigmund and Ferstl.
However, I was surprised that there is no function provided to test for granger causality. Is it because the test needs to be implemented with the help of another function? I saw that the Stata package pvar
(which serves a similar purpose) provides the function pvargranger
(so it seems common to provide the test).
Update: The question was created because the STATA implementation provides the Granger causality function. However, the computation is independent from GMM PVARs (see Dumitrescu, E. I., & Hurlin, C. (2012). Testing for Granger non-causality in heterogeneous panels. Economic modelling, 29(4), 1450-1460. - on p.1451 the authors compare Granger causality to PanelVAR), so that the best solution is to use the plm
package as Helix123 pointed out!