Say I have some data with observations of individuals with different treatment. I can test whether the treatments affect the observations with an ANOVA test.
But now I want to find out whether the variance in the observations within treatments is affected by some other variable. If the treatment were a continuous variable, I could do (in R)
fit