View source: R/serial.test_sh.R
| serial.test_sh | R Documentation |
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")
)
x |
An object of class "varshrinkest" obtained by VARshrink(). |
lags.pt, lags.bg, type |
Other arguments for |
An extension of vars::serial.test() to the class "varshrinkest".
An object of class "varcheck" computed by
vars::serial.test().
serial.test
data(Canada, package = "vars")
y <- diff(Canada)
estim <- VARshrink(y, p = 2, type = "const", method = "ridge")
serial.test_sh(estim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.