-
Notifications
You must be signed in to change notification settings - Fork 0
/
sp_KStest.R
68 lines (63 loc) · 1.19 KB
/
sp_KStest.R
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
## originally from:
## subset(effortpropmean_stage1_zz, L1 %in% c("om41"))$value/100
optimalSecPro14 <- read.table(header = TRUE, text = "
position value
1 0.03242787
2 0.06512226
3 0.09809715
4 0.13136792
5 0.16495158
6 0.19886700
7 0.23313530
8 0.26778017
9 0.30282839
10 0.33831049
11 0.37426150
12 0.41072204
13 0.44773969
14 0.48537088
15 0.52368351
16 0.56276067
17 0.60270619
18 0.64365311
19 0.68577739
20 0.72932155
21 0.77463897
22 0.82228693
23 0.87325910
24 0.92975823
25 1.00000000
")
## originally from:
## subset(effortpropmean_stage1_zz, L1 %in% c("com41"))$value/100
optimalCayley14 <- read.table(header = TRUE, text = "
position value
1 0.046105
2 0.091782
3 0.137020
4 0.181810
5 0.226130
6 0.269980
7 0.313330
8 0.356180
9 0.398500
10 0.440280
11 0.481500
12 0.522130
13 0.562150
14 0.601540
15 0.640270
16 0.678300
17 0.715610
18 0.752150
19 0.787890
20 0.822780
21 0.856800
22 0.889930
23 0.922260
24 0.954340
25 1.000000
")
plot(optimalCayley14$position,optimalCayley14$value,xlab="position",ylab="percentile")
lines(optimalSecPro14$position,optimalSecPro14$value)
ks.test(optimalSecPro14$value, optimalCayley14$value)