test_HS: Test for heteroscedasticity

test_HSR Documentation

Test for heteroscedasticity

Description

Test for heteroscedasticity

Usage

test_HS(resid, x)

Arguments

resid

Model residuals

x

Model predictor of interest

Value

Data frame of results

Examples

#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)

Deleetdk/kirkegaard documentation built on May 2, 2024, 7:12 p.m.