[R] How to rum Multiple ANOVA and Multiple T-test between the same groups?
Prof. Dr. Matthias Kohl
M@tth|@@@Koh| @end|ng |rom @t@m@t@@de
Sun Feb 10 16:52:40 CET 2019
Have a look at Bioconductor package genefilter, especially functions
colttests and colFtests.
Best Matthias
Am 10.02.19 um 10:35 schrieb AbouEl-Makarim Aboueissa:
> Dear All: good morning
>
>
>
>
>
> *Re:* How to rum Multiple ANOVA and Multiple T-test between the same groups.
>
>
>
> Your help will be highly appreciated.
>
>
>
>
>
> *1.* is there a way to run multiple t-tests on different variables between
> the same two groups.
>
>
>
>
>
> *Data for t-tests:*
>
>
>
> The data frame “dataTtest” has 5 variables (x1,x2,x3,x4,x5) and one factor
> (factor1) with 2 levels (group1, group2).
>
>
>
>
>
> x1<-rnorm(20,1,1)
>
> x2<-rnorm(20,2,1)
>
> x3<-rnorm(20,3,1)
>
> x4<-rnorm(20,4,1)
>
> x5<-rnorm(20,5,1)
>
> factor1<-rep(c("group1", "group2"), each = 10)
>
> dataTtest<-data.frame(x1,x2,x3,x4,x5,factor1)
>
> dataTtest
>
>
>
>
>
>
>
>
>
> *2.* is there a way to run *multiple ANOVA* and multiple comparisons *Tukey
> tests* on different variables between the same groups.
>
>
>
>
>
> *Data for ANOVA tests:*
>
>
>
> The data frame “dataANOVA” has 6 variables (x1,x2,x3,x4,x5,x6) and one
> factor (factor2) with 5 levels (group1, group2, group3, group4, group5).
>
>
>
>
>
>
>
> x1<-rnorm(40,1,1)
>
> x2<-rnorm(40,2,1)
>
> x3<-rnorm(40,3,1)
>
> x4<-rnorm(40,4,1)
>
> x5<-rnorm(40,5,1)
>
> x6<-rnorm(40,6,1)
>
> factor2<-rep(c("group1", "group2", "group3", "group4", "group5"), each = 8)
>
> dataANOVA<-data.frame(x1,x2,x3,x4,x5,x6,factor2)
>
> dataANOVA
>
>
>
>
>
> with many thanks
>
> abou
> ______________________
>
>
> *AbouEl-Makarim Aboueissa, PhD*
>
> *Professor, Statistics and Data Science*
> *Graduate Coordinator*
>
> *Department of Mathematics and Statistics*
> *University of Southern Maine*
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>
--
Prof. Dr. Matthias Kohl
www.stamats.de
More information about the R-help
mailing list