powered by
Check model for (non-)constant error variance.
check_heteroscedasticity(x, ...)
A model object.
Currently not used.
Invisibly returns the p-value of the test statistics. A p-value < 0.05 indicates a non-constant variance (heteroskedasticity).
# NOT RUN { m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) check_heteroscedasticity(m) # plot results x <- check_heteroscedasticity(m) plot(x) # }
Run the code above in your browser using DataLab