I am wondering how to test for autocorrelation in the error terms after running a panel VAR in R (using the panelvar package).
In a glm, the procedure would be the follow