Compute the heteroskedasticity test proposed by White, H. (1980): "A Heteroskedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity". Econometrica. 48(4), 817--838.
white_test(model, full = TRUE, chisq = FALSE)
model | an estimated model returned by |
---|---|
full | if |
chisq | if |
An object of class htest
with components:
the value of the test statistic.
the p-value of the test.
degrees of freedom.
a character string indicating what type of test was performed.
a character string describing the model.
#> #> White's test for heteroskedasticity #> #> data: Auxiliary regression of squared residuals from: #> lm(price ~ sqrft + lotsize + bdrms, data = hprice1) #> on all covariates, their squares and cross-products. #> #> #> F = 5.387, df1 = 9, df2 = 78, p-value = 1.013e-05 #>