R/heteroscedasticity_check.R
heteroscedasticity_check.RdDraws a scale-location plot and reports the studentized Breusch-Pagan and
Rainbow tests from lmtest.
heteroscedasticity_check(mdl, random = NULL)A ggplot object with both tests stored in its sfl_tests
attribute.
if (FALSE) { # \dontrun{
model <- stats::lm(mpg ~ wt + hp, data = mtcars)
heteroscedasticity_check(model)
} # }