Skip to content
Prev 307049 / 398513 Next

Anova

Dear Jean,

On Fri, 5 Oct 2012 01:27:55 -0700 (PDT)
Jhope <jeanwaijang at gmail.com> wrote:
anova() needs a model object, not a formula, as its first argument:

anova(lm(HSuccess ~ Veg, data=data.to.analyze))

Alternatively, you can use aov(), with summary(), to get the ANOVA table:

summary(aov(HSuccess ~ Veg, data=data.to.analyze))

I hope this helps,
 John

------------------------------------------------
John Fox
Sen. William McMaster Prof. of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/