Description Usage Arguments Examples
Tests VAR model regarding non-autocorrelation (Breusch-Godfrey, Portmanteau), normal distribution of residuals (Jarque-Bera) and homoskedasticity (MARCH).
1 | testSpecification(var, lags.pt = 15, lags.bg = 5, lags.multi = 5)
|
var |
Estimated vector autoregressive model of type |
lags.pt |
An integer specifying the lags to be used for the Portmanteau statistic. |
lags.bg |
An integer specifying the lags to be used for the Breusch-Godfrey statistic. |
lags.multi |
An integer specifying the lags to be used for the multivariate ARCH-LM statistic. |
1 2 3 4 5 | library(vars)
data(Canada)
var.2c <- VAR(Canada, p = 2, type = "none")
testSpecification(var.2c)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.