-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFeces_Stats_Test.Rmd
More file actions
51 lines (36 loc) · 1.25 KB
/
Copy pathFeces_Stats_Test.Rmd
File metadata and controls
51 lines (36 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
P-Value Test Per BodySite (Ultralow against the world!)
========================================================
#reading from table file
```{r,echo=FALSE}
source("~/git/preservation_stats/scripts/distribution_test.R")
feces <- read.csv("~/git/preservation_stats/presv_fig1_data/feces_fig1.csv")
```
Feces
--------------------
generating variables per Preservation Method:
```{r}
feces_ultralow = parse_vector(feces,1)
feces_nitrogen = parse_vector(feces,2)
feces_Phen_CL = parse_vector(feces,3)
feces_Fresh = parse_vector(feces,4)
```
Normality Test with Shapiro-Wilk Test :
```{r,echo=FALSE}
shapiro.test(feces_ultralow)
shapiro.test(feces_nitrogen)
shapiro.test(feces_Phen_CL)
shapiro.test(feces_Fresh)
```
Testing difference significance using Kolmogorov-Smirnov & Wilcoxon Test :
-----------------------------------------------------------------------------
```{r}
ks.test(feces_ultralow,feces_nitrogen)
wilcox.test(feces_ultralow,feces_nitrogen)
wilcox.test(feces_ultralow,feces_nitrogen,paired=T)
ks.test(feces_ultralow,feces_Phen_CL)
wilcox.test(feces_ultralow,feces_Phen_CL)
wilcox.test(feces_ultralow,feces_Phen_CL,paired=T)
ks.test(feces_ultralow,feces_Fresh)
wilcox.test(feces_ultralow,feces_Fresh)
wilcox.test(feces_ultralow,feces_Fresh,paired=T)
```