Description Usage Arguments Details Value References See Also Examples
Performs LM tests for error AC in VAR models. The code is based on Paul Catani's original R code used in the paper Wild Bootstrap Tests for Autocorrelation in Vector Autoregressive Models (Ahlgren and Catani, 2016).
1 2 3 |
fit |
an object of class |
h |
the lag length of the alternative VAR(h) model for the errors. |
HCtype |
a vector containing some or all (default) of |
univariate |
either |
x |
Object with class attribute ‘ACtest’. |
... |
further arguments passed to or from other methods. |
To run the wild bootstrap version of the test, please use the output from this function with the function wildBoot
.
For mathematical details of the test, see the pdf version of the manual at the package's CRAN web page.
a list of class "ACtest"
.
fit |
the |
inputType |
the type of object of |
HCtype |
a vector of the |
h |
the lag length of the alternative VAR(h) model for the errors. |
pValues |
a 1 x 5 matrix of the P. values of the tests. |
Q |
a 1 x 5 matrix of the Q statistics of the tests. |
unipValues |
a K x 5 matrix of the P. values of the univariate tests. |
uniQ |
a K x 5 matrix of the Q statistics of the univariate tests. |
univariate |
the 'univariate' argument. |
description |
who ran the test and when. |
time |
computation time taken to run the test. |
call |
how the function |
Ahlgren, N. & Catani, P. (2016). Wild bootstrap tests for autocorrelation in vector autoregressive models. Stat Papers, <doi:10.1007/s00362-016-0744-0>.
Hafner, C. M. and Herwartz, H., (2009). Testing for Linear Vector Autoregressive Dynamics under Multivariate Generalized Autoregressive Heteroskedasticity. Stat Neerl, 63, 294–323
MacKinnon, J. G. and White, H. (1985). Some Heteroskedasticity Consistent Covariance Matrix Estimators with Improved Finite Sample Properties. J Econom, 29, 305–325
VARfit
to estimate a VAR(p), and wildBoot
to run the Wild Bootstrap versions of the tests.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.