Re: [R] Anova Test

From: Christophe Pallier <christophe_at_pallier.org>
Date: Tue, 15 May 2007 17:48:58 +0200

If your data is inside a data.frame names 'a' with data from each group in a different columns,..., you can use "stack" and perform the anova with:

l <- aov(values~ind,data=stack(a))
anova(l)

Christophe Pallier

On 5/15/07, CrazyJoe <keizer_61_at_hotmail.com> wrote:
>
>
> Thank you Guys.
>
> Let say that from Test1 to control i have multiple data
>
> Tester
> Test1 Test2 Test3 Test4 Control
> 20 25 15 10 17
> . . . . .
> . . . . .
> 40 20 15 35 45
>
> Is this the method i need to use?
>
> anova(lm(......this is where i am not sure how to put them.
>
> is this something to do with anova(lm(dependent~independent*independent,
> data=name)
>
> if they are all independent, how do i put them together?
>
> thanks.
>
>
> Ben Bolker-2 wrote:
> >
> >
> >
> > CrazyJoe <keizer_61 <at> hotmail.com> writes:
> >
> >>
> >> I am very new to R. I am trying to perform an Anova Test and see if it
> >> differs or not.
> >>
> >> Basically, i have 4 tests and 1 control.
> >>
> >> Tester
> >> Test1 Test2 Test3 Test4 Control
> >> 20 25 15 10 17
> >>
> >
> > You can't make any inferences with the data you have here.
> > You need to have multiple observations per treatment!
> > See the examples for ?lm .
> >
> > ______________________________________________
> > R-help_at_stat.math.ethz.ch 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.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Anova-Test-tf3758829.html#a10625154
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_stat.math.ethz.ch 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.
>

-- 
Christophe Pallier (http://www.pallier.org)

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_stat.math.ethz.ch 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.
Received on Tue 15 May 2007 - 16:03:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 May 2007 - 16:31:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.