Skip to content
Back to formatted view

Raw Message

Message-ID: <506EB52F.3050206@sapo.pt>
Date: 2012-10-05T10:23:43Z
From: Rui Barradas
Subject: Anova
In-Reply-To: <1349425675537-4645130.post@n4.nabble.com>

Hello,

You're thinking of ?aov. anova() does _not_ have a formula interface, it 
would be

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

or

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

Hope this helps,

Rui Barradas
Em 05-10-2012 09:27, Jhope escreveu:
> Hi R-listers,
>
> I am trying to do an ANOVA for the following scatterplot and received the
> following error:
>
> library(car)
> scatterplot(HSuccess ~ Veg,
>              data = data.to.analyze,
>              xlab = "Vegetation border (m)",
>              ylab = "Hatching success (%)")
>
> anova(HSuccess ~ Veg, data=data.to.analyze)
>
> Error in UseMethod("anova") :
>    no applicable method for 'anova' applied to an object of class "formula"
>
> I am wondering if there is a better way to do this?
> Please advise, Jean
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Anova-tp4645130.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.