| escc_test | R Documentation |
The constant correlation test of Engle and Sheppard (2001).
escc_test(x, order = c(1, 1), lags = 1, constant = FALSE, ...)
x |
an xts matrix of stationary data. |
order |
the GARCH model order. |
lags |
the number of lags to test for. |
constant |
whether to include a constant (mean) in the GARCH model estimation. |
... |
none. |
The whitened residuals from a constant correlation GARCH model are used to test the hypothesis that they are IID using an artificial regression of the outer products of tese residuals on a constant and their lagged outer products. The null hypothesis of constant correlation can then be tested using a Wald-type test on the constant and coefficients of the lagged regressors (which should be zero under the null), with the test statistic asymptotically distributed as Chi-squared with (lags + 1) degrees of freedom. In the returned table, the parameter “J” represents the test statistic.
An object of class “tstest.escc” which has a print and as_flextable method.
The test makes use of parallel functionality for estimating the univariate GARCH
models and the user can control the number of threads used using
plan.
Engle2001tsmarch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.