-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOral_Stats_Test.Rmd
More file actions
52 lines (36 loc) · 1.22 KB
/
Copy pathOral_Stats_Test.Rmd
File metadata and controls
52 lines (36 loc) · 1.22 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
52
P-Value Test Per BodySite (Ultralow against the world!)
========================================================
#reading from table file
```{r,echo=FALSE}
source("~/git/preservation_stats/scripts/distribution_test.R")
oral <- read.csv("~/git/preservation_stats/presv_fig1_data/oral_fig1.csv")
```
oral
--------------------
generating variables per Preservation Method:
```{r}
oral_ultralow = parse_vector(oral,1)
oral_nitrogen = parse_vector(oral,2)
oral_Phen_CL = parse_vector(oral,3)
oral_Fresh = parse_vector(oral,4)
```
Normality Test with Shapiro-Wilk Test :
```{r,echo=FALSE}
shapiro.test(oral_ultralow)
shapiro.test(oral_nitrogen)
shapiro.test(oral_Phen_CL)
shapiro.test(oral_Fresh)
```
Testing difference significance using Kolmogorov-Smirnov & Wilcoxon Test :
-----------------------------------------------------------------------------
```{r}
ks.test(oral_ultralow,oral_nitrogen)
wilcox.test(oral_ultralow,oral_nitrogen)
wilcox.test(oral_ultralow,oral_nitrogen,paired=T)
ks.test(oral_ultralow,oral_Phen_CL)
wilcox.test(oral_ultralow,oral_Phen_CL)
wilcox.test(oral_ultralow,oral_Phen_CL,paired=T)
ks.test(oral_ultralow,oral_Fresh)
wilcox.test(oral_ultralow,oral_Fresh)
wilcox.test(oral_ultralow,oral_Fresh,paired=T)
```