AbouEl-Makarim Aboueissa
2019-Feb-10 09:35 UTC
[R] How to rum Multiple ANOVA and Multiple T-test between the same groups?
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]]
Prof. Dr. Matthias Kohl
2019-Feb-10 15:52 UTC
[R] How to rum Multiple ANOVA and Multiple T-test between the same groups?
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 at 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
AbouEl-Makarim Aboueissa
2019-Feb-10 22:44 UTC
[R] How to rum Multiple ANOVA and Multiple T-test between the same groups?
Dear Prof Kohl: I am trying to install the "genefilter" package, but I got the following error message(s). I am not sure which R version should be used for this package. *For R.3.5.2:*> install.packages("genefilter")Installing package into ?C:/Users/aaboueissa/Documents/R/win-library/3.5? (as ?lib? is unspecified) Warning message: package ?genefilter? is not available (for R version 3.5.2) *For R.3.3.2:*> install.packages("Bioconductor")Installing package into ?C:/Users/aaboueissa/Documents/R/win-library/3.3? (as ?lib? is unspecified) --- Please select a CRAN mirror for use in this session --- Warning message: package ?Bioconductor? is not available (for R version 3.3.2) with many thanks abou ______________________ *AbouEl-Makarim Aboueissa, PhD* *Professor, Statistics and Data Science* *Graduate Coordinator* *Department of Mathematics and Statistics* *University of Southern Maine* On Sun, Feb 10, 2019 at 10:52 AM Prof. Dr. Matthias Kohl < Matthias.Kohl at stamats.de> wrote:> 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 at 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 >[[alternative HTML version deleted]]