3
$\begingroup$

Can I still run a gamma GLM in R if my data does not pass the equal variance assumption through the Levene Test? Is there a nonparametric test I should run instead or can I just run the gamma GLM?

$\endgroup$
0

1 Answer 1

5
$\begingroup$

Gamma glm's do not have an assumption of constant variance. Generalized linear models have a specific variance function, depending on the family. What you need to look for is if the residual variance conforms to your models variance function. Details for gamma glm's here. So the Levene test for constant variance is irrelevant!

Some relevant posts with details:

For an informal check on the variance function, you can plot the absolute residuals against the predicted value

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.