-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSkin_Stats_Test.Rmd
52 lines (36 loc) · 1.22 KB
/
Skin_Stats_Test.Rmd
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")
skin <- read.csv("~/git/preservation_stats/presv_fig1_data/skin_fig1.csv")
```
skin
--------------------
generating variables per Preservation Method:
```{r}
skin_ultralow = parse_vector(skin,1)
skin_nitrogen = parse_vector(skin,2)
skin_Phen_CL = parse_vector(skin,3)
skin_Fresh = parse_vector(skin,4)
```
Normality Test with Shapiro-Wilk Test :
```{r,echo=FALSE}
shapiro.test(skin_ultralow)
shapiro.test(skin_nitrogen)
shapiro.test(skin_Phen_CL)
shapiro.test(skin_Fresh)
```
Testing difference significance using Kolmogorov-Smirnov & Wilcoxon Test :
-----------------------------------------------------------------------------
```{r}
ks.test(skin_ultralow,skin_nitrogen)
wilcox.test(skin_ultralow,skin_nitrogen)
wilcox.test(skin_ultralow,skin_nitrogen,paired=T)
ks.test(skin_ultralow,skin_Phen_CL)
wilcox.test(skin_ultralow,skin_Phen_CL)
wilcox.test(skin_ultralow,skin_Phen_CL,paired=T)
ks.test(skin_ultralow,skin_Fresh)
wilcox.test(skin_ultralow,skin_Fresh)
wilcox.test(skin_ultralow,skin_Fresh,paired=T)
```