Description Usage Arguments Value Examples
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.
1 | 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.
1 2 3 4 | data("hprice1")
mod <- lm(price ~ sqrft + lotsize + bdrms, data = hprice1)
white_test(mod)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.