data(arithmetic)
attach(arithmetic)
plot(y~group)
anova(lm(y~group,data=arithmetic))
summary(lm(y~group,data=arithmetic)) # two different parametrisations
summary(lm(y~group-1,data=arithmetic)) # for ANOVA
Run the code above in your browser using DataLab