| Title: | White's Test for Heteroskedasticity |
|---|---|
| Description: | An implementation of White's Test for Heteroskedasticity as outlined in Doornik (1996). Compatibility updates by Renova. |
| Authors: | Sebastian Andersson [aut, cre] |
| Maintainer: | Sebastian Andersson <[email protected]> |
| License: | GPL (>= 2) |
| Version: | 0.1.9001 |
| Built: | 2026-11-15 20:39:55 UTC |
| Source: | https://github.com/renova-r/het.test |
Tests for heteroskedastic residuals in a VAR model.
| Package: | het.test
|
| Type: | Package |
| Version: | 0.1 |
| Date: | 2013-02-27 |
| License: | GPL-2 |
| Depends: | vars, methods
|
The test function is whites.htest().
Sebastian Andersson
Maintainer: Sebastian Andersson <[email protected]>
Doornik, J. A. (1996). Testing vector error autocorrelation and heteroscedasticity. unpublished paper, Nuffield College.
library(vars) dataset <- data.frame(x=rnorm(100), y=rnorm(100)) model1 <- VAR(dataset, p = 1) whites.htest(model1)library(vars) dataset <- data.frame(x=rnorm(100), y=rnorm(100)) model1 <- VAR(dataset, p = 1) whites.htest(model1)
whites.htest
This is the show method of the class whitetest which is used for whites.htest.
signature(object = "whitetest")It is the method for the printing of the output.
whites.htest performs White's Test for Heteroskedasticity as outlined in Doornik (1996).
whites.htest(var.model)whites.htest(var.model)
var.model |
requires a |
$statistic |
the test statistic |
$p.value |
the p-value |
$degrees |
the number of degrees of freedom |
$res.products |
the residual cross products matrix |
$lagged.variables |
matrix with the lagged variables |
$rcov |
the estimated Omega matrix in Doornik |
$ucov |
transpose matrix of auxiliary residuals times itself, divided by |
$call |
the function call |
This is an implementation of the heteroskedasticity test used in Eviews. For valid VAR models, the results should be identical. If not, please contact the maintainer.
Sebastian Andersson
Doornik, J. A. (1996). Testing vector error autocorrelation and heteroscedasticity. unpublished paper, Nuffield College.
library(vars) dataset <- data.frame(x=rnorm(100), y=rnorm(100)) model1 <- VAR(dataset, p = 1) whites.htest(model1)library(vars) dataset <- data.frame(x=rnorm(100), y=rnorm(100)) model1 <- VAR(dataset, p = 1) whites.htest(model1)
"whitetest"
This class is used for the whites.htest return objects.
Objects can be created by calls of the form new("whitetest", ...). Or, more commonly, by whites.htest(...).
.Data:Object of class "list" ~~
Class "list", from data part.
Class "vector", by class "list", distance 2.
signature(object = "whitetest"): ...
Sebastian Andersson
showClass("whitetest")showClass("whitetest")