powered by
Computes the multivariate Portmanteau- and Breusch-Godfrey test for serially correlated erros.
serial.test_sh( x, lags.pt = 16, lags.bg = 5, type = c("PT.asymptotic", "PT.adjusted", "BG", "ES") )
An object of class "varcheck" computed by vars::serial.test().
vars::serial.test()
An object of class "varshrinkest" obtained by VARshrink().
Other arguments for vars::serial.test().
An extension of vars::serial.test() to the class "varshrinkest".
serial.test
data(Canada, package = "vars") y <- diff(Canada) estim <- VARshrink(y, p = 2, type = "const", method = "ridge") serial.test_sh(estim)
Run the code above in your browser using DataLab