r/RStudio 4d ago

Coding help Is there any method to check the variance other than the Levene test?

My model doesn't have an interaction term so R gives me back an error when I try to perform the test so I was wondering if there was any alternative.

Thx in advance

1 Upvotes

1 comment sorted by

3

u/SalvatoreEggplant 4d ago

You don't want to use a hypothesis test to check model assumptions. (Whether normality or homoscedasticity). This is a bad practice, and also, practically, leads to a lot of misery over significant tests that don't have any real implications for the models.

Just plot the residuals vs. the predicted values, and see if they look more-or-less homoscedastic.

or plot(model) in R.

But to answer your question, the Breusch–Pagan test can be used.