# [R] How to rum Multiple ANOVA and Multiple T-test between the same groups?

AbouEl-Makarim Aboueissa @boue|m@k@r|m1962 @end|ng |rom gm@||@com
Sun Feb 10 10:35:05 CET 2019

```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*