# Convert drinkgroup to factorbupa$drinkgroup =as.factor(bupa$drinkgroup)
# Summary of drinkgrouptable(bupa$drinkgroup)
1 2 3 4 5
117 52 88 67 21
# ANOVA analysis for mcv ~ drinkgroupaov.bupa =aov(mcv ~ drinkgroup, data = bupa)summary(aov.bupa)
Df Sum Sq Mean Sq F value Pr(>F)
drinkgroup 4 733 183.29 10.26 7.43e-08 ***
Residuals 340 6073 17.86
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
### Levene's Test ### Following error in running Levene's Test hence difficulty in rendering even after using 'car'and 'hms'-### processing file: Bupa.qmd### Quitting from lines 46-48 [unnamed-chunk-6] (Bupa.qmd)### Error in `LeveneTest()`:### ! could not find function "LeveneTest"###Execution halted### LeveneTest(aov.bupa)