Analysis of Variance ANOVA for metabolites detected
ANOVATest.data <- read.csv("C:/Users/cesar/Desktop/Tesis Maestria/TRATAMIENTOS/Magnesio/Magnesio Espinaca Anovas.csv")
attach(ANOVATest.data)
str(ANOVATest.data)
## 'data.frame': 30 obs. of 28 variables:
## $ Sample : int 1 2 3 4 5 6 7 8 9 10 ...
## $ Condition : chr "Standard" "Standard" "Standard" "Standard" ...
## $ Valine : num 252.2 48.9 58.7 93.5 84.8 ...
## $ Alanine : num 408.3 88.1 87.8 158.8 146.3 ...
## $ GABA : num 1507 146 237 371 272 ...
## $ Glutamate : num 1330 401 590 532 492 ...
## $ Malate : num 88.8 36 143.9 106 42.9 ...
## $ Succinate : num 61.4 8.1 28.6 17.2 14.5 ...
## $ Citrate : num 157.1 47.1 211.7 171.2 57.6 ...
## $ Aspartate : num 898 192 143 322 342 ...
## $ Betaine : num 1846 374 687 762 557 ...
## $ Glucose : num 250.7 89.8 161.1 167.5 150.7 ...
## $ Fructose : num 275.7 67.6 162.6 145.2 106.2 ...
## $ Sucrose : num 45.2 40.7 42.8 29 21.6 ...
## $ Ascorbate : num 876.7 76.5 123.9 45.2 113.7 ...
## $ Uridine : num 330.7 58.4 95.1 132.9 114.4 ...
## $ Adenosine : num 385 52.7 85.2 96.1 99.9 ...
## $ Fumarate : num 37.3 18.6 35.3 35.5 21.6 58.3 17.4 16.2 30 29.2 ...
## $ Tyrosine : num 101 31.9 32.7 59 49.1 65.9 37.1 32.2 60.9 60 ...
## $ Phenylalanine: num 104.3 37 37.1 71.7 51.9 ...
## $ Guanosine : num 361.7 58.4 97.8 139.4 111 ...
## $ Formate : num 137.7 35.9 53.6 50.6 70.1 ...
## $ Choline : num 569.8 91.5 107.6 207 178.4 ...
## $ Ferulate : num 75.4 14.9 26.8 30.1 27.9 25.9 36.1 31.2 60.5 58.6 ...
## $ Glycerol : num 429.8 97.6 138.4 170.8 158.7 ...
## $ Isoleucine : num 154.5 31.1 43.4 55.8 49.5 ...
## $ Leucine : num 279.5 74.8 89.1 134.7 103 ...
## $ p.Cumarate : num 64 5.5 9.2 12 19.5 20.2 19 15.7 37.8 31 ...
Alanine
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Alanine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Alanine[Condition == "Standard"]
## W = 0.84195, p-value = 0.04656
with(ANOVATest.data, shapiro.test(Alanine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Alanine[Condition == "Deficiency"]
## W = 0.8615, p-value = 0.07947
with(ANOVATest.data, shapiro.test(Alanine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Alanine[Condition == "Excess"]
## W = 0.81621, p-value = 0.0228
Hm_var <- bartlett.test(Alanine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Alanine by Condition
## Bartlett's K-squared = 8.3228, df = 2, p-value = 0.01559
#### ONE WAY - ANOVA
OneWay_test <- aov(Alanine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 277799 138899 5.026 0.0139 *
## Residuals 27 746116 27634
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Alanine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 165.25 -19.07575 349.57575 0.0853098
## Standard-Deficiency -62.94 -247.26575 121.38575 0.6778003
## Standard-Excess -228.19 -412.51575 -43.86425 0.0130078
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Alanine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Valine
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Valine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Valine[Condition == "Standard"]
## W = 0.81302, p-value = 0.02086
with(ANOVATest.data, shapiro.test(Valine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Valine[Condition == "Deficiency"]
## W = 0.91423, p-value = 0.3114
with(ANOVATest.data, shapiro.test(Valine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Valine[Condition == "Excess"]
## W = 0.748, p-value = 0.003374
Hm_var <- bartlett.test(Valine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Valine by Condition
## Bartlett's K-squared = 13.183, df = 2, p-value = 0.001372
#### ONE WAY - ANOVA
OneWay_test <- aov(Valine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 348389 174194 8.231 0.00162 **
## Residuals 27 571433 21164
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Valine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 164.93 3.618443 326.24156 0.0443298
## Standard-Deficiency -96.02 -257.331557 65.29156 0.3180392
## Standard-Excess -260.95 -422.261557 -99.63844 0.0012124
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Valine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Leucine
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Leucine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Leucine[Condition == "Standard"]
## W = 0.77811, p-value = 0.007851
with(ANOVATest.data, shapiro.test(Leucine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Leucine[Condition == "Deficiency"]
## W = 0.92304, p-value = 0.383
with(ANOVATest.data, shapiro.test(Leucine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Leucine[Condition == "Excess"]
## W = 0.74017, p-value = 0.002709
Hm_var <- bartlett.test(Leucine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Leucine by Condition
## Bartlett's K-squared = 15.229, df = 2, p-value = 0.0004932
#### ONE WAY - ANOVA
OneWay_test <- aov(Leucine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 444818 222409 7.16 0.0032 **
## Residuals 27 838689 31063
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Leucine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 172.90 -22.52644 368.32644 0.0904462
## Standard-Deficiency -124.03 -319.45644 71.39644 0.2740697
## Standard-Excess -296.93 -492.35644 -101.50356 0.0022811
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Leucine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Isoleucine
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Isoleucine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Isoleucine[Condition == "Standard"]
## W = 0.7912, p-value = 0.01133
with(ANOVATest.data, shapiro.test(Isoleucine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Isoleucine[Condition == "Deficiency"]
## W = 0.9145, p-value = 0.3133
with(ANOVATest.data, shapiro.test(Isoleucine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Isoleucine[Condition == "Excess"]
## W = 0.74016, p-value = 0.002709
Hm_var <- bartlett.test(Isoleucine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Isoleucine by Condition
## Bartlett's K-squared = 13.01, df = 2, p-value = 0.001496
#### ONE WAY - ANOVA
OneWay_test <- aov(Isoleucine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 130818 65409 8.035 0.00183 **
## Residuals 27 219786 8140
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Isoleucine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 97.58 -2.462079 197.62208 0.0569563
## Standard-Deficiency -62.93 -162.972079 37.11208 0.2800868
## Standard-Excess -160.51 -260.552079 -60.46792 0.0013209
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Isoleucine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

GABA
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(GABA[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: GABA[Condition == "Standard"]
## W = 0.74473, p-value = 0.003078
with(ANOVATest.data, shapiro.test(GABA[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: GABA[Condition == "Deficiency"]
## W = 0.87848, p-value = 0.1253
with(ANOVATest.data, shapiro.test(GABA[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: GABA[Condition == "Excess"]
## W = 0.82517, p-value = 0.02926
Hm_var <- bartlett.test(GABA ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: GABA by Condition
## Bartlett's K-squared = 3.2936, df = 2, p-value = 0.1927
#### ONE WAY - ANOVA
OneWay_test <- aov(GABA ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 2303668 1151834 4.552 0.0198 *
## Residuals 27 6831841 253031
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = GABA ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 458.45 -99.31556 1016.2156 0.1224463
## Standard-Deficiency -204.27 -762.03556 353.4956 0.6399837
## Standard-Excess -662.72 -1220.48556 -104.9544 0.0174425
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = GABA, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Betaine
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Betaine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Betaine[Condition == "Standard"]
## W = 0.8928, p-value = 0.1823
with(ANOVATest.data, shapiro.test(Betaine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Betaine[Condition == "Deficiency"]
## W = 0.77522, p-value = 0.00724
with(ANOVATest.data, shapiro.test(Betaine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Betaine[Condition == "Excess"]
## W = 0.83442, p-value = 0.03782
Hm_var <- bartlett.test(Betaine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Betaine by Condition
## Bartlett's K-squared = 29.582, df = 2, p-value = 3.77e-07
#### ONE WAY - ANOVA
OneWay_test <- aov(Betaine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 271320466 135660233 12.58 0.000138 ***
## Residuals 27 291257977 10787332
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Betaine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 4359.99 718.1428 8001.8372 0.0165463
## Standard-Deficiency -2962.08 -6603.9272 679.7672 0.1274782
## Standard-Excess -7322.07 -10963.9172 -3680.2228 0.0000916
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Betaine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Phenylalanine
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Phenylalanine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Phenylalanine[Condition == "Standard"]
## W = 0.87191, p-value = 0.1052
with(ANOVATest.data, shapiro.test(Phenylalanine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Phenylalanine[Condition == "Deficiency"]
## W = 0.87001, p-value = 0.1
with(ANOVATest.data, shapiro.test(Phenylalanine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Phenylalanine[Condition == "Excess"]
## W = 0.77531, p-value = 0.007259
Hm_var <- bartlett.test(Phenylalanine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Phenylalanine by Condition
## Bartlett's K-squared = 15.518, df = 2, p-value = 0.0004269
#### ONE WAY - ANOVA
OneWay_test <- aov(Phenylalanine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 66063 33032 6.716 0.00429 **
## Residuals 27 132801 4919
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Phenylalanine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 60.82 -16.94494 138.58494 0.1472060
## Standard-Deficiency -54.06 -131.82494 23.70494 0.2149225
## Standard-Excess -114.88 -192.64494 -37.11506 0.0029817
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Phenylalanine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Tyrosine
#### PNORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Tyrosine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Tyrosine[Condition == "Standard"]
## W = 0.86164, p-value = 0.07978
with(ANOVATest.data, shapiro.test(Tyrosine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Tyrosine[Condition == "Deficiency"]
## W = 0.89713, p-value = 0.2037
with(ANOVATest.data, shapiro.test(Tyrosine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Tyrosine[Condition == "Excess"]
## W = 0.73831, p-value = 0.002571
Hm_var <- bartlett.test(Tyrosine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Tyrosine by Condition
## Bartlett's K-squared = 19.197, df = 2, p-value = 6.782e-05
#### ONE WAY - ANOVA
OneWay_test <- aov(Tyrosine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 122806 61403 8.499 0.00137 **
## Residuals 27 195075 7225
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Tyrosine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 87.13 -7.120481 181.38048 0.0741151
## Standard-Deficiency -69.25 -163.500481 25.00048 0.1816555
## Standard-Excess -156.38 -250.630481 -62.12952 0.0009259
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Tyrosine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Aspartate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Aspartate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Aspartate[Condition == "Standard"]
## W = 0.85705, p-value = 0.07042
with(ANOVATest.data, shapiro.test(Aspartate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Aspartate[Condition == "Deficiency"]
## W = 0.82581, p-value = 0.02979
with(ANOVATest.data, shapiro.test(Aspartate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Aspartate[Condition == "Excess"]
## W = 0.83438, p-value = 0.03778
Hm_var <- bartlett.test(Aspartate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Aspartate by Condition
## Bartlett's K-squared = 2.1035, df = 2, p-value = 0.3493
#### ONE WAY - ANOVA
OneWay_test <- aov(Aspartate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 379894 189947 2.555 0.0963 .
## Residuals 27 2007218 74341
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Aspartate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 225.05 -77.27919 527.37919 0.1741778
## Standard-Deficiency -25.31 -327.63919 277.01919 0.9765487
## Standard-Excess -250.36 -552.68919 51.96919 0.1189389
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Aspartate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Glutamate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Glutamate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Glutamate[Condition == "Standard"]
## W = 0.7728, p-value = 0.006765
with(ANOVATest.data, shapiro.test(Glutamate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Glutamate[Condition == "Deficiency"]
## W = 0.78535, p-value = 0.009619
with(ANOVATest.data, shapiro.test(Glutamate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Glutamate[Condition == "Excess"]
## W = 0.81076, p-value = 0.01959
Hm_var <- bartlett.test(Glutamate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Glutamate by Condition
## Bartlett's K-squared = 6.6875, df = 2, p-value = 0.0353
#### ONE WAY - ANOVA
OneWay_test <- aov(Glutamate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 1371678 685839 3.451 0.0463 *
## Residuals 27 5365535 198724
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Glutamate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 467.89 -26.40854 962.18854 0.0661761
## Standard-Deficiency 30.08 -464.21854 524.37854 0.9875336
## Standard-Excess -437.81 -932.10854 56.48854 0.0900055
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Glutamate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Adenosine
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Adenosine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Adenosine[Condition == "Standard"]
## W = 0.75718, p-value = 0.004365
with(ANOVATest.data, shapiro.test(Adenosine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Adenosine[Condition == "Deficiency"]
## W = 0.73663, p-value = 0.002453
with(ANOVATest.data, shapiro.test(Adenosine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Adenosine[Condition == "Excess"]
## W = 0.85947, p-value = 0.07523
Hm_var <- bartlett.test(Adenosine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Adenosine by Condition
## Bartlett's K-squared = 2.0968, df = 2, p-value = 0.3505
#### ONE WAY - ANOVA
OneWay_test <- aov(Adenosine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 104734 52367 3.086 0.0621 .
## Residuals 27 458224 16971
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Adenosine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 85.87 -58.58144 230.3214387 0.3189633
## Standard-Deficiency -57.96 -202.41144 86.4914387 0.5863696
## Standard-Excess -143.83 -288.28144 0.6214387 0.0511586
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Adenosine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Guanosine
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Guanosine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Guanosine[Condition == "Standard"]
## W = 0.84882, p-value = 0.05625
with(ANOVATest.data, shapiro.test(Guanosine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Guanosine[Condition == "Deficiency"]
## W = 0.77171, p-value = 0.006561
with(ANOVATest.data, shapiro.test(Guanosine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Guanosine[Condition == "Excess"]
## W = 0.81813, p-value = 0.02406
Hm_var <- bartlett.test(Guanosine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Guanosine by Condition
## Bartlett's K-squared = 5.9088, df = 2, p-value = 0.05211
#### ONE WAY - ANOVA
OneWay_test <- aov(Guanosine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 192739 96370 3.402 0.0481 *
## Residuals 27 764844 28328
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Guanosine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 91.31 -95.31472 277.934723 0.4558735
## Standard-Deficiency -104.87 -291.49472 81.754723 0.3584475
## Standard-Excess -196.18 -382.80472 -9.555277 0.0379049
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Guanosine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Uridine
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Uridine[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Uridine[Condition == "Standard"]
## W = 0.88514, p-value = 0.1494
with(ANOVATest.data, shapiro.test(Uridine[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Uridine[Condition == "Deficiency"]
## W = 0.78845, p-value = 0.01049
with(ANOVATest.data, shapiro.test(Uridine[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Uridine[Condition == "Excess"]
## W = 0.829, p-value = 0.03254
Hm_var <- bartlett.test(Uridine ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Uridine by Condition
## Bartlett's K-squared = 3.9274, df = 2, p-value = 0.1403
#### ONE WAY - ANOVA
OneWay_test <- aov(Uridine ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 70618 35309 2.245 0.125
## Residuals 27 424571 15725
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Uridine ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 75.56 -63.4858 214.6058 0.3821209
## Standard-Deficiency -41.66 -180.7058 97.3858 0.7404390
## Standard-Excess -117.22 -256.2658 21.8258 0.1107869
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Uridine, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Glucose
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Glucose[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Glucose[Condition == "Standard"]
## W = 0.92417, p-value = 0.3931
with(ANOVATest.data, shapiro.test(Glucose[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Glucose[Condition == "Deficiency"]
## W = 0.93083, p-value = 0.4561
with(ANOVATest.data, shapiro.test(Glucose[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Glucose[Condition == "Excess"]
## W = 0.87094, p-value = 0.1025
Hm_var <- bartlett.test(Glucose ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Glucose by Condition
## Bartlett's K-squared = 60.722, df = 2, p-value = 6.521e-14
#### ONE WAY - ANOVA
OneWay_test <- aov(Glucose ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 212186595 106093297 18.56 8.5e-06 ***
## Residuals 27 154348876 5716625
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Glucose ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 4027.13 1375.978 6678.2815 0.0022867
## Standard-Deficiency -2420.92 -5072.072 230.2315 0.0784773
## Standard-Excess -6448.05 -9099.202 -3796.8985 0.0000057
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Glucose, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Fructose
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Fructose[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Fructose[Condition == "Standard"]
## W = 0.88925, p-value = 0.1663
with(ANOVATest.data, shapiro.test(Fructose[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Fructose[Condition == "Deficiency"]
## W = 0.95236, p-value = 0.6965
with(ANOVATest.data, shapiro.test(Fructose[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Fructose[Condition == "Excess"]
## W = 0.7775, p-value = 0.007718
Hm_var <- bartlett.test(Fructose ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Fructose by Condition
## Bartlett's K-squared = 43.572, df = 2, p-value = 3.455e-10
#### ONE WAY - ANOVA
OneWay_test <- aov(Fructose ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 15940480 7970240 12.83 0.000121 ***
## Residuals 27 16778720 621434
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Fructose ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 1031.87 157.7678 1905.9722 0.0182406
## Standard-Deficiency -746.01 -1620.1122 128.0922 0.1053725
## Standard-Excess -1777.88 -2651.9822 -903.7778 0.0000784
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Fructose, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Sucrose
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Sucrose[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Sucrose[Condition == "Standard"]
## W = 0.70463, p-value = 0.001002
with(ANOVATest.data, shapiro.test(Sucrose[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Sucrose[Condition == "Deficiency"]
## W = 0.91812, p-value = 0.3416
with(ANOVATest.data, shapiro.test(Sucrose[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Sucrose[Condition == "Excess"]
## W = 0.88536, p-value = 0.1502
Hm_var <- bartlett.test(Sucrose ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Sucrose by Condition
## Bartlett's K-squared = 63.292, df = 2, p-value = 1.804e-14
#### ONE WAY - ANOVA
OneWay_test <- aov(Sucrose ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 46329841 23164921 11.31 0.000271 ***
## Residuals 27 55307184 2048414
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Sucrose ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 1918.27 331.2822 3505.2578 0.0154613
## Standard-Deficiency -1087.73 -2674.7178 499.2578 0.2237847
## Standard-Excess -3006.00 -4592.9878 -1419.0122 0.0001978
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Sucrose, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Citrate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Citrate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Citrate[Condition == "Standard"]
## W = 0.96511, p-value = 0.8422
with(ANOVATest.data, shapiro.test(Citrate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Citrate[Condition == "Deficiency"]
## W = 0.93224, p-value = 0.4703
with(ANOVATest.data, shapiro.test(Citrate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Citrate[Condition == "Excess"]
## W = 0.91148, p-value = 0.2913
Hm_var <- bartlett.test(Citrate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Citrate by Condition
## Bartlett's K-squared = 27.647, df = 2, p-value = 9.919e-07
#### ONE WAY - ANOVA
OneWay_test <- aov(Citrate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 4242403 2121201 19.68 5.34e-06 ***
## Residuals 27 2910066 107780
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Citrate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 639.33 275.3025 1003.3575 0.0004909
## Standard-Deficiency -254.62 -618.6475 109.4075 0.2111204
## Standard-Excess -893.95 -1257.9775 -529.9225 0.0000049
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Citrate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Malate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Malate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Malate[Condition == "Standard"]
## W = 0.86604, p-value = 0.08986
with(ANOVATest.data, shapiro.test(Malate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Malate[Condition == "Deficiency"]
## W = 0.91902, p-value = 0.3489
with(ANOVATest.data, shapiro.test(Malate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Malate[Condition == "Excess"]
## W = 0.88978, p-value = 0.1686
Hm_var <- bartlett.test(Malate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Malate by Condition
## Bartlett's K-squared = 37.472, df = 2, p-value = 7.297e-09
#### ONE WAY - ANOVA
OneWay_test <- aov(Malate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 3447188 1723594 11.01 0.000319 ***
## Residuals 27 4226439 156535
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Malate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 545.13 106.4275 983.8325 0.0126548
## Standard-Deficiency -269.84 -708.5425 168.8625 0.2953762
## Standard-Excess -814.97 -1253.6725 -376.2675 0.0002517
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Malate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Succinate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Succinate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Succinate[Condition == "Standard"]
## W = 0.78901, p-value = 0.01066
with(ANOVATest.data, shapiro.test(Succinate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Succinate[Condition == "Deficiency"]
## W = 0.96197, p-value = 0.8081
with(ANOVATest.data, shapiro.test(Succinate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Succinate[Condition == "Excess"]
## W = 0.82201, p-value = 0.0268
Hm_var <- bartlett.test(Succinate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Succinate by Condition
## Bartlett's K-squared = 23.604, df = 2, p-value = 7.488e-06
#### ONE WAY - ANOVA
OneWay_test <- aov(Succinate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 14510 7255 5.693 0.00865 **
## Residuals 27 34406 1274
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Succinate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 51.15 11.56788 90.7321177 0.0093932
## Standard-Deficiency 10.94 -28.64212 50.5221177 0.7739923
## Standard-Excess -40.21 -79.79212 -0.6278823 0.0459274
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Succinate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Fumarate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Fumarate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Fumarate[Condition == "Standard"]
## W = 0.88775, p-value = 0.16
with(ANOVATest.data, shapiro.test(Fumarate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Fumarate[Condition == "Deficiency"]
## W = 0.95799, p-value = 0.7627
with(ANOVATest.data, shapiro.test(Fumarate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Fumarate[Condition == "Excess"]
## W = 0.87624, p-value = 0.1181
Hm_var <- bartlett.test(Fumarate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Fumarate by Condition
## Bartlett's K-squared = 38.534, df = 2, p-value = 4.289e-09
#### ONE WAY - ANOVA
OneWay_test <- aov(Fumarate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 271258 135629 10.65 0.000388 ***
## Residuals 27 343705 12730
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Fumarate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 143.81 18.70464 268.91536 0.0218187
## Standard-Deficiency -86.77 -211.87536 38.33536 0.2163533
## Standard-Excess -230.58 -355.68536 -105.47464 0.0002772
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Fumarate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Formate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Formate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Formate[Condition == "Standard"]
## W = 0.72287, p-value = 0.001669
with(ANOVATest.data, shapiro.test(Formate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Formate[Condition == "Deficiency"]
## W = 0.8994, p-value = 0.2158
with(ANOVATest.data, shapiro.test(Formate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Formate[Condition == "Excess"]
## W = 0.79429, p-value = 0.01236
Hm_var <- bartlett.test(Formate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Formate by Condition
## Bartlett's K-squared = 3.384, df = 2, p-value = 0.1841
#### ONE WAY - ANOVA
OneWay_test <- aov(Formate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 299 149.5 0.202 0.819
## Residuals 27 20031 741.9
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Formate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency -1.44 -31.64162 28.76162 0.9923270
## Standard-Deficiency 5.86 -24.34162 36.06162 0.8807923
## Standard-Excess 7.30 -22.90162 37.50162 0.8216674
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Formate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

p.Cumarate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(p.Cumarate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: p.Cumarate[Condition == "Standard"]
## W = 0.8493, p-value = 0.05699
with(ANOVATest.data, shapiro.test(p.Cumarate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: p.Cumarate[Condition == "Deficiency"]
## W = 0.72097, p-value = 0.001583
with(ANOVATest.data, shapiro.test(p.Cumarate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: p.Cumarate[Condition == "Excess"]
## W = 0.82944, p-value = 0.03294
Hm_var <- bartlett.test(p.Cumarate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: p.Cumarate by Condition
## Bartlett's K-squared = 1.74, df = 2, p-value = 0.4189
#### ONE WAY - ANOVA
OneWay_test <- aov(p.Cumarate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 566 283.1 1.237 0.306
## Residuals 27 6180 228.9
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = p.Cumarate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 10.59 -6.185797 27.3658 0.2776908
## Standard-Deficiency 6.20 -10.575797 22.9758 0.6348499
## Standard-Excess -4.39 -21.165797 12.3858 0.7946027
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = p.Cumarate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Ferulate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Ferulate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Ferulate[Condition == "Standard"]
## W = 0.8708, p-value = 0.1021
with(ANOVATest.data, shapiro.test(Ferulate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Ferulate[Condition == "Deficiency"]
## W = 0.86499, p-value = 0.08735
with(ANOVATest.data, shapiro.test(Ferulate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Ferulate[Condition == "Excess"]
## W = 0.75421, p-value = 0.004016
Hm_var <- bartlett.test(Ferulate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Ferulate by Condition
## Bartlett's K-squared = 12.708, df = 2, p-value = 0.00174
#### ONE WAY - ANOVA
OneWay_test <- aov(Ferulate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 5705 2852.7 3.132 0.0598 .
## Residuals 27 24595 910.9
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Ferulate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 31.56 -1.905967 65.025967 0.0673896
## Standard-Deficiency 5.35 -28.115967 38.815967 0.9173085
## Standard-Excess -26.21 -59.675967 7.255967 0.1464834
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Ferulate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Glycerol
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Glycerol[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Glycerol[Condition == "Standard"]
## W = 0.87963, p-value = 0.1292
with(ANOVATest.data, shapiro.test(Glycerol[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Glycerol[Condition == "Deficiency"]
## W = 0.87424, p-value = 0.112
with(ANOVATest.data, shapiro.test(Glycerol[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Glycerol[Condition == "Excess"]
## W = 0.87163, p-value = 0.1044
Hm_var <- bartlett.test(Glycerol ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Glycerol by Condition
## Bartlett's K-squared = 7.8601, df = 2, p-value = 0.01964
#### ONE WAY - ANOVA
OneWay_test <- aov(Glycerol ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 408102 204051 5.381 0.0108 *
## Residuals 27 1023887 37922
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Glycerol ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 149.74 -66.18795 365.66795 0.2164462
## Standard-Deficiency -135.84 -351.76795 80.08795 0.2800185
## Standard-Excess -285.58 -501.50795 -69.65205 0.0078123
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Glycerol, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Ascorbate
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Ascorbate[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Ascorbate[Condition == "Standard"]
## W = 0.66705, p-value = 0.0003521
with(ANOVATest.data, shapiro.test(Ascorbate[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Ascorbate[Condition == "Deficiency"]
## W = 0.79764, p-value = 0.01357
with(ANOVATest.data, shapiro.test(Ascorbate[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Ascorbate[Condition == "Excess"]
## W = 0.80878, p-value = 0.01853
Hm_var <- bartlett.test(Ascorbate ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Ascorbate by Condition
## Bartlett's K-squared = 10.945, df = 2, p-value = 0.004201
#### ONE WAY - ANOVA
OneWay_test <- aov(Ascorbate ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 740810 370405 5.142 0.0128 *
## Residuals 27 1945022 72038
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Ascorbate ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 379.95 82.34165 677.55835 0.0103189
## Standard-Deficiency 136.59 -161.01835 434.19835 0.4996558
## Standard-Excess -243.36 -540.96835 54.24835 0.1248970
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Ascorbate, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()

Choline
#### NORMALITY's TEST AND HOMOGENEITY OF VARIANCE
with(ANOVATest.data, shapiro.test(Choline[Condition == "Standard"]))
##
## Shapiro-Wilk normality test
##
## data: Choline[Condition == "Standard"]
## W = 0.84392, p-value = 0.04915
with(ANOVATest.data, shapiro.test(Choline[Condition == "Deficiency"]))
##
## Shapiro-Wilk normality test
##
## data: Choline[Condition == "Deficiency"]
## W = 0.71489, p-value = 0.001335
with(ANOVATest.data, shapiro.test(Choline[Condition == "Excess"]))
##
## Shapiro-Wilk normality test
##
## data: Choline[Condition == "Excess"]
## W = 0.90177, p-value = 0.2291
Hm_var <- bartlett.test(Choline ~ Condition, data =ANOVATest.data)
Hm_var
##
## Bartlett test of homogeneity of variances
##
## data: Choline by Condition
## Bartlett's K-squared = 9.4912, df = 2, p-value = 0.00869
#### ONE WAY - ANOVA
OneWay_test <- aov(Choline ~ Condition, data =ANOVATest.data)
summary(OneWay_test)
## Df Sum Sq Mean Sq F value Pr(>F)
## Condition 2 377446 188723 2.823 0.077 .
## Residuals 27 1805009 66852
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### POST-HOC TUKEY's Test
TukeyHSD(OneWay_test)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = Choline ~ Condition, data = ANOVATest.data)
##
## $Condition
## diff lwr upr p adj
## Excess-Deficiency 8.84 -277.8566 295.53658 0.9967833
## Standard-Deficiency -233.40 -520.0966 53.29658 0.1270292
## Standard-Excess -242.24 -528.9366 44.45658 0.1097815
#### BOXPLOT
ggplot(ANOVATest.data, aes(x = Condition, y = Choline, fill = Condition)) +
geom_boxplot() +
geom_jitter (shape = 15,
color = "steelblue",
position = position_jitter(0.21)) +
theme_classic()
