test_HS | R Documentation |
Test for heteroscedasticity
test_HS(resid, x)
resid |
Model residuals |
x |
Model predictor of interest |
Data frame of results
#look for mostly nonexistent HS in iris
test_HS(resid = resid(lm(Sepal.Length ~ Petal.Length, data = iris2)), x = iris2$Petal.Length)
#a lot of HS here
test_HS(resid = resid(lm(Petal.Width ~ Petal.Length, data = iris2)), x = iris2$Petal.Length)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.