[R] Odp: Anova Test

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Tue, 15 May 2007 17:03:08 +0200


Hi

r-help-bounces_at_stat.math.ethz.ch napsal dne 15.05.2007 16:39:20:

>
> Hi,
>
> 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
>
> The inference is at alpha=0.05. they are all independent. I am trying to
> find if they differ or the same.

Maybe t.test?

 x <- c(20,25,15,10)
t.test(x-17)

        One Sample t-test

data: x - 17
t = 0.1549, df = 3, p-value = 0.8867
alternative hypothesis: true mean is not equal to 0 95 percent confidence interval:
 -9.771301 10.771301
sample estimates:
mean of x

      0.5

Regards

Petr

>
>
> > test1<-c(20)
> > test2<-c(25)
> > test3<-c(15)
> > test4<-c(17)
> > test4<-c(10)
> > control<-c(17)
> > tester<-data.frame(test1,test2,test3,test4,control)
> > tester
> test1 test2 test3 test4 control
> 1 20 25 15 10 17
> > anova(lm(tester))
> Analysis of Variance Table
>
> Response: test1
> Df Sum Sq Mean Sq F value Pr(>F)
> Residuals 0 0
>
> I think i did something wrong. I need to find the correct F statistic
test.
>
> any help.
>
> thanks.
>
>
> --
> View this message in context:
http://www.nabble.com/Anova-Test-tf3758829.html#a10624007
> 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.



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 - 15:14:22 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.