> I have a question concerning the output of leveneTest. I don't
> understand
> the "7" in my output
It's the residual degrees of freedom for the corresponding ANOVA table. You'd
get the same value if you did a one-way ANOVA by group.ID.
Having said that, your test isn't going to tell you much if the example data is
the data of interest. First, the dispersions don't look much different on
plotting; unless you have reason to believe there should be an underlying
difference in variance you could probably stop there. Second, I seem to recall
Levene's test is rather flaky for unbalanced data - it doesn't just test the
null of equal variance. And third, for the data set size you have in the
example, it's got very low power indeed. Based on exploratory simulations I've
done myself, for factor-of-four changes in variance between your largest and
smallest variance, you'll probably have test power under 5%. Think about that
for a second: for a well-behaved test you should expect 5% test power for a
negligibly small effect just by setting 95% confidence. Levene's test is fair
for larger sets (10 per group and up) and more robust than some, but on this
size of data set it doesn't even give you the chance 'reject' rate !
you asked for at the null. At this size, if I had to apply a test I'd consider
bartlett's test instead; although I recall that as having pretty severe caveats
around normality at least it preserves the expected confidence level reasonably
well.
Still, I suppose that if you apply a test that is guaranteed to pass in all but
catastrophically extreme circumstances, at least you can say you've applied a
test.
S Ellison
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.