-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstat tests.R
366 lines (310 loc) · 36.3 KB
/
stat tests.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
# T-tests
# CIF
## Constraint
### Barabasi
cif.bar.ct1 <- t.test(cif1.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar1)))$constraint))
cif.bar.ct2 <- t.test(cif2.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar2)))$constraint))
cif.bar.ct3 <- t.test(cif3.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar3)))$constraint))
cif.bar.ct4 <- t.test(cif4.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar4)))$constraint))
cif.bar.ct5 <- t.test(cif5.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar5)))$constraint))
cif.bar.ct6 <- t.test(cif6.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar6)))$constraint))
cif.bar.ct7 <- t.test(cif7.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar7)))$constraint))
cif.bar.ct8 <- t.test(cif8.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar8)))$constraint))
cif.bar.ct9 <- t.test(cif9.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar9)))$constraint))
cif.bar.ct10 <- t.test(cif10.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar10)))$constraint))
cif.bar.ct11 <- t.test(cif11.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar11)))$constraint))
cif.bar.ct12 <- t.test(cif12.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar12)))$constraint))
cif.bar.ct13 <- t.test(cif13.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar13)))$constraint))
cif.bar.ct14 <- t.test(cif14.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar14)))$constraint))
cif.bar.ct15 <- t.test(cif15.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar15)))$constraint))
cif.bar.ct16 <- t.test(cif16.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar16)))$constraint))
cif.bar.ct17 <- t.test(cif17.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar17)))$constraint))
cif.bar.ct18 <- t.test(cif18.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar18)))$constraint))
cif.bar.ct19 <- t.test(cif19.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar19)))$constraint))
cif.bar.ct20 <- t.test(cif20.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar20)))$constraint))
cif.bar.ct21 <- t.test(cif21.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar21)))$constraint))
cif.bar.ct22 <- t.test(cif22.constraint,as.numeric(as.data.frame(t(as.data.frame(cif.bar22)))$constraint))
### Erdos
cif.erdos.ct1 <- t.test(cif1.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif1)))$constraint))
cif.erdos.ct2 <- t.test(cif2.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif2)))$constraint))
cif.erdos.ct3 <- t.test(cif3.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif3)))$constraint))
cif.erdos.ct4 <- t.test(cif4.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif4)))$constraint))
cif.erdos.ct5 <- t.test(cif5.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif5)))$constraint))
cif.erdos.ct6 <- t.test(cif6.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif6)))$constraint))
cif.erdos.ct7 <- t.test(cif7.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif7)))$constraint))
cif.erdos.ct8 <- t.test(cif8.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif8)))$constraint))
cif.erdos.ct9 <- t.test(cif9.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif9)))$constraint))
cif.erdos.ct10 <- t.test(cif10.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif10)))$constraint))
cif.erdos.ct11 <- t.test(cif11.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif11)))$constraint))
cif.erdos.ct12 <- t.test(cif12.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif12)))$constraint))
cif.erdos.ct13 <- t.test(cif13.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif13)))$constraint))
cif.erdos.ct14 <- t.test(cif14.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif14)))$constraint))
cif.erdos.ct15 <- t.test(cif15.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif15)))$constraint))
cif.erdos.ct16 <- t.test(cif16.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif16)))$constraint))
cif.erdos.ct17 <- t.test(cif17.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif17)))$constraint))
cif.erdos.ct18 <- t.test(cif18.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif18)))$constraint))
cif.erdos.ct19 <- t.test(cif19.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif19)))$constraint))
cif.erdos.ct20 <- t.test(cif20.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif20)))$constraint))
cif.erdos.ct21 <- t.test(cif21.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif21)))$constraint))
cif.erdos.ct22 <- t.test(cif22.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.cif22)))$constraint))
### Watts
cif.watts.ct1 <- t.test(cif1.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif1)))$constraint))
cif.watts.ct2 <- t.test(cif2.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif2)))$constraint))
cif.watts.ct3 <- t.test(cif3.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif3)))$constraint))
cif.watts.ct4 <- t.test(cif4.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif4)))$constraint))
cif.watts.ct5 <- t.test(cif5.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif5)))$constraint))
cif.watts.ct6 <- t.test(cif6.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif6)))$constraint))
cif.watts.ct7 <- t.test(cif7.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif7)))$constraint))
cif.watts.ct8 <- t.test(cif8.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif8)))$constraint))
cif.watts.ct9 <- t.test(cif9.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif9)))$constraint))
cif.watts.ct10 <- t.test(cif10.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif10)))$constraint))
cif.watts.ct11 <- t.test(cif11.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif11)))$constraint))
cif.watts.ct12 <- t.test(cif12.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif12)))$constraint))
cif.watts.ct13 <- t.test(cif13.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif13)))$constraint))
cif.watts.ct14 <- t.test(cif14.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif14)))$constraint))
cif.watts.ct15 <- t.test(cif15.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif15)))$constraint))
cif.watts.ct16 <- t.test(cif16.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif16)))$constraint))
cif.watts.ct17 <- t.test(cif17.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif17)))$constraint))
cif.watts.ct18 <- t.test(cif18.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif18)))$constraint))
cif.watts.ct19 <- t.test(cif19.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif19)))$constraint))
cif.watts.ct20 <- t.test(cif20.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif20)))$constraint))
cif.watts.ct21 <- t.test(cif21.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif21)))$constraint))
cif.watts.ct22 <- t.test(cif22.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.cif22)))$constraint))
## Transitivity
### Barabasi
cif.bar.tt1 <- t.test(!is.na(transitivity(cif1, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar1)))$trans))
cif.bar.tt2 <- t.test(!is.na(transitivity(cif2, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar2)))$trans))
cif.bar.tt3 <- t.test(!is.na(transitivity(cif3, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar3)))$trans))
cif.bar.tt4 <- t.test(!is.na(transitivity(cif4, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar4)))$trans))
cif.bar.tt5 <- t.test(!is.na(transitivity(cif5, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar5)))$trans))
cif.bar.tt6 <- t.test(!is.na(transitivity(cif6, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar6)))$trans))
cif.bar.tt7 <- t.test(!is.na(transitivity(cif7, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar7)))$trans))
cif.bar.tt8 <- t.test(!is.na(transitivity(cif8, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar8)))$trans))
cif.bar.tt9 <- t.test(!is.na(transitivity(cif9, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar9)))$trans))
cif.bar.tt10 <- t.test(!is.na(transitivity(cif10, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar10)))$trans))
cif.bar.tt11 <- t.test(!is.na(transitivity(cif11, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar11)))$trans))
cif.bar.tt12 <- t.test(!is.na(transitivity(cif12, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar12)))$trans))
cif.bar.tt13 <- t.test(!is.na(transitivity(cif13, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar13)))$trans))
cif.bar.tt14 <- t.test(!is.na(transitivity(cif14, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar14)))$trans))
cif.bar.tt15 <- t.test(!is.na(transitivity(cif15, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar15)))$trans))
cif.bar.tt16 <- t.test(!is.na(transitivity(cif16, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar16)))$trans))
cif.bar.tt17 <- t.test(!is.na(transitivity(cif17, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar17)))$trans))
cif.bar.tt18 <- t.test(!is.na(transitivity(cif18, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar18)))$trans))
cif.bar.tt19 <- t.test(!is.na(transitivity(cif19, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar19)))$trans))
cif.bar.tt20 <- t.test(!is.na(transitivity(cif20, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar20)))$trans))
cif.bar.tt21 <- t.test(!is.na(transitivity(cif21, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar21)))$trans))
cif.bar.tt22 <- t.test(!is.na(transitivity(cif22, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(cif.bar22)))$trans))
### Erdos
cif.erdos.tt1 <- t.test(!is.na(transitivity(cif1, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif1)))$trans))
cif.erdos.tt2 <- t.test(!is.na(transitivity(cif2, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif2)))$trans))
cif.erdos.tt3 <- t.test(!is.na(transitivity(cif3, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif3)))$trans))
cif.erdos.tt4 <- t.test(!is.na(transitivity(cif4, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif4)))$trans))
cif.erdos.tt5 <- t.test(!is.na(transitivity(cif5, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif5)))$trans))
cif.erdos.tt6 <- t.test(!is.na(transitivity(cif6, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif6)))$trans))
cif.erdos.tt7 <- t.test(!is.na(transitivity(cif7, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif7)))$trans))
cif.erdos.tt8 <- t.test(!is.na(transitivity(cif8, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif8)))$trans))
cif.erdos.tt9 <- t.test(!is.na(transitivity(cif9, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif9)))$trans))
cif.erdos.tt10 <- t.test(!is.na(transitivity(cif10, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif10)))$trans))
cif.erdos.tt11 <- t.test(!is.na(transitivity(cif11, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif11)))$trans))
cif.erdos.tt12 <- t.test(!is.na(transitivity(cif12, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif12)))$trans))
cif.erdos.tt13 <- t.test(!is.na(transitivity(cif13, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif13)))$trans))
cif.erdos.tt14 <- t.test(!is.na(transitivity(cif14, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif14)))$trans))
cif.erdos.tt15 <- t.test(!is.na(transitivity(cif15, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif15)))$trans))
cif.erdos.tt16 <- t.test(!is.na(transitivity(cif16, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif16)))$trans))
cif.erdos.tt17 <- t.test(!is.na(transitivity(cif17, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif17)))$trans))
cif.erdos.tt18 <- t.test(!is.na(transitivity(cif18, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif18)))$trans))
cif.erdos.tt19 <- t.test(!is.na(transitivity(cif19, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif19)))$trans))
cif.erdos.tt20 <- t.test(!is.na(transitivity(cif20, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif20)))$trans))
cif.erdos.tt21 <- t.test(!is.na(transitivity(cif21, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif21)))$trans))
cif.erdos.tt22 <- t.test(!is.na(transitivity(cif22, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.cif22)))$trans))
### Watts
cif.watts.tt1 <- t.test(!is.na(transitivity(cif1, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif1)))$trans))
cif.watts.tt2 <- t.test(!is.na(transitivity(cif2, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif2)))$trans))
cif.watts.tt3 <- t.test(!is.na(transitivity(cif3, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif3)))$trans))
cif.watts.tt4 <- t.test(!is.na(transitivity(cif4, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif4)))$trans))
cif.watts.tt5 <- t.test(!is.na(transitivity(cif5, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif5)))$trans))
cif.watts.tt6 <- t.test(!is.na(transitivity(cif6, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif6)))$trans))
cif.watts.tt7 <- t.test(!is.na(transitivity(cif7, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif7)))$trans))
cif.watts.tt8 <- t.test(!is.na(transitivity(cif8, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif8)))$trans))
cif.watts.tt9 <- t.test(!is.na(transitivity(cif9, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif9)))$trans))
cif.watts.tt10 <- t.test(!is.na(transitivity(cif10, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif10)))$trans))
cif.watts.tt11 <- t.test(!is.na(transitivity(cif11, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif11)))$trans))
cif.watts.tt12 <- t.test(!is.na(transitivity(cif12, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif12)))$trans))
cif.watts.tt13 <- t.test(!is.na(transitivity(cif13, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif13)))$trans))
cif.watts.tt14 <- t.test(!is.na(transitivity(cif14, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif14)))$trans))
cif.watts.tt15 <- t.test(!is.na(transitivity(cif15, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif15)))$trans))
cif.watts.tt16 <- t.test(!is.na(transitivity(cif16, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif16)))$trans))
cif.watts.tt17 <- t.test(!is.na(transitivity(cif17, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif17)))$trans))
cif.watts.tt18 <- t.test(!is.na(transitivity(cif18, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif18)))$trans))
cif.watts.tt19 <- t.test(!is.na(transitivity(cif19, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif19)))$trans))
cif.watts.tt20 <- t.test(!is.na(transitivity(cif20, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif20)))$trans))
cif.watts.tt21 <- t.test(!is.na(transitivity(cif21, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif21)))$trans))
cif.watts.tt22 <- t.test(!is.na(transitivity(cif22, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.cif22)))$trans))
cif.test <- as.data.frame(c(cif.bar.ct1$p.value,cif.bar.ct2$p.value,cif.bar.ct3$p.value,cif.bar.ct4$p.value,cif.bar.ct5$p.value,cif.bar.ct6$p.value,cif.bar.ct7$p.value,cif.bar.ct8$p.value,cif.bar.ct9$p.value,cif.bar.ct10$p.value, cif.bar.ct11$p.value, cif.bar.ct12$p.value, cif.bar.ct13$p.value, cif.bar.ct14$p.value, cif.bar.ct15$p.value, cif.bar.ct16$p.value, cif.bar.ct17$p.value, cif.bar.ct18$p.value, cif.bar.ct19$p.value, cif.bar.ct20$p.value, cif.bar.ct21$p.value, cif.bar.ct22$p.value))
colnames(cif.test)[1] <- "constraint.bar"
cif.test$constraint.erdos <- (c(cif.erdos.ct1$p.value,cif.erdos.ct2$p.value,cif.erdos.ct3$p.value,cif.erdos.ct4$p.value,cif.erdos.ct5$p.value,cif.erdos.ct6$p.value,cif.erdos.ct7$p.value,cif.erdos.ct8$p.value,cif.erdos.ct9$p.value,cif.erdos.ct10$p.value, cif.erdos.ct11$p.value, cif.erdos.ct12$p.value, cif.erdos.ct13$p.value, cif.erdos.ct14$p.value, cif.erdos.ct15$p.value, cif.erdos.ct16$p.value, cif.erdos.ct17$p.value, cif.erdos.ct18$p.value, cif.erdos.ct19$p.value, cif.erdos.ct20$p.value, cif.erdos.ct21$p.value, cif.erdos.ct22$p.value))
cif.test$constraint.watts <- (c(cif.watts.ct1$p.value,cif.watts.ct2$p.value,cif.watts.ct3$p.value,cif.watts.ct4$p.value,cif.watts.ct5$p.value,cif.watts.ct6$p.value,cif.watts.ct7$p.value,cif.watts.ct8$p.value,cif.watts.ct9$p.value,cif.watts.ct10$p.value, cif.watts.ct11$p.value, cif.watts.ct12$p.value, cif.watts.ct13$p.value, cif.watts.ct14$p.value, cif.watts.ct15$p.value, cif.watts.ct16$p.value, cif.watts.ct17$p.value, cif.watts.ct18$p.value, cif.watts.ct19$p.value, cif.watts.ct20$p.value, cif.watts.ct21$p.value, cif.watts.ct22$p.value))
cif.test$trans.bar <- (c(cif.bar.tt1$p.value,cif.bar.tt2$p.value,cif.bar.tt3$p.value,cif.bar.tt4$p.value,cif.bar.tt5$p.value,cif.bar.tt6$p.value,cif.bar.tt7$p.value,cif.bar.tt8$p.value,cif.bar.tt9$p.value,cif.bar.tt10$p.value, cif.bar.tt11$p.value, cif.bar.tt12$p.value, cif.bar.tt13$p.value, cif.bar.tt14$p.value, cif.bar.tt15$p.value, cif.bar.tt16$p.value, cif.bar.tt17$p.value, cif.bar.tt18$p.value, cif.bar.tt19$p.value, cif.bar.tt20$p.value, cif.bar.tt21$p.value, cif.bar.tt22$p.value))
cif.test$trans.erdos <- (c(cif.erdos.tt1$p.value,cif.erdos.tt2$p.value,cif.erdos.tt3$p.value,cif.erdos.tt4$p.value,cif.erdos.tt5$p.value,cif.erdos.tt6$p.value,cif.erdos.tt7$p.value,cif.erdos.tt8$p.value,cif.erdos.tt9$p.value,cif.erdos.tt10$p.value, cif.erdos.tt11$p.value, cif.erdos.tt12$p.value, cif.erdos.tt13$p.value, cif.erdos.tt14$p.value, cif.erdos.tt15$p.value, cif.erdos.tt16$p.value, cif.erdos.tt17$p.value, cif.erdos.tt18$p.value, cif.erdos.tt19$p.value, cif.erdos.tt20$p.value, cif.erdos.tt21$p.value, cif.erdos.tt22$p.value))
cif.test$trans.watts <- (c(cif.watts.tt1$p.value,cif.watts.tt2$p.value,cif.watts.tt3$p.value,cif.watts.tt4$p.value,cif.watts.tt5$p.value,cif.watts.tt6$p.value,cif.watts.tt7$p.value,cif.watts.tt8$p.value,cif.watts.tt9$p.value,cif.watts.tt10$p.value, cif.watts.tt11$p.value, cif.watts.tt12$p.value, cif.watts.tt13$p.value, cif.watts.tt14$p.value, cif.watts.tt15$p.value, cif.watts.tt16$p.value, cif.watts.tt17$p.value, cif.watts.tt18$p.value, cif.watts.tt19$p.value, cif.watts.tt20$p.value, cif.watts.tt21$p.value, cif.watts.tt22$p.value))
cif.test <- format(round(cif.test, 2), nsmall = 3)
View(cif.test)
write.csv(cif.test, "cif_test.csv")
# Chile
## Constraint Chile
### Barabasi
chile.bar.ct1 <- t.test(chile1.constraint,as.numeric(as.data.frame(t(as.data.frame(chile.bar1)))$V1))
chile.bar.ct2 <- t.test(chile2.constraint,as.numeric(as.data.frame(t(as.data.frame(chile.bar2)))$V1))
chile.bar.ct3 <- t.test(chile3.constraint,as.numeric(as.data.frame(t(as.data.frame(chile.bar3)))$V1))
chile.bar.ct4 <- t.test(chile4.constraint,as.numeric(as.data.frame(t(as.data.frame(chile.bar4)))$V1))
chile.bar.ct5 <- t.test(chile5.constraint,as.numeric(as.data.frame(t(as.data.frame(chile.bar5)))$V1))
chile.bar.ct6 <- t.test(chile6.constraint,as.numeric(as.data.frame(t(as.data.frame(chile.bar6)))$V1))
chile.bar.ct7 <- t.test(chile7.constraint,as.numeric(as.data.frame(t(as.data.frame(chile.bar7)))$V1))
### Erdos
chile.erdos.ct1 <- t.test(chile1.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.chile1)))$constraint))
chile.erdos.ct2 <- t.test(chile2.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.chile2)))$constraint))
chile.erdos.ct3 <- t.test(chile3.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.chile3)))$constraint))
chile.erdos.ct4 <- t.test(chile4.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.chile4)))$constraint))
chile.erdos.ct5 <- t.test(chile5.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.chile5)))$constraint))
chile.erdos.ct6 <- t.test(chile6.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.chile6)))$constraint))
chile.erdos.ct7 <- t.test(chile7.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.chile7)))$constraint))
### Watts
chile.watts.ct1 <- t.test(chile1.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.chile1)))$constraint))
chile.watts.ct2 <- t.test(chile2.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.chile2)))$constraint))
chile.watts.ct3 <- t.test(chile3.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.chile3)))$constraint))
chile.watts.ct4 <- t.test(chile4.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.chile4)))$constraint))
chile.watts.ct5 <- t.test(chile5.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.chile5)))$constraint))
chile.watts.ct6 <- t.test(chile6.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.chile6)))$constraint))
chile.watts.ct7 <- t.test(chile7.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.chile7)))$constraint))
## Transitivity
### Barabasi
chile.bar.tt1 <- t.test(!is.na(transitivity(chile1, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(chile.bar1)))$V2))
chile.bar.tt2 <- t.test(!is.na(transitivity(chile2, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(chile.bar2)))$V2))
chile.bar.tt3 <- t.test(!is.na(transitivity(chile3, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(chile.bar3)))$V2))
chile.bar.tt4 <- t.test(!is.na(transitivity(chile4, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(chile.bar4)))$V2))
chile.bar.tt5 <- t.test(!is.na(transitivity(chile5, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(chile.bar5)))$V2))
chile.bar.tt6 <- t.test(!is.na(transitivity(chile6, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(chile.bar6)))$V2))
chile.bar.tt7 <- t.test(!is.na(transitivity(chile7, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(chile.bar7)))$V2))
### Erdos
chile.erdos.tt1 <- t.test(!is.na(transitivity(chile1, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.chile1)))$trans))
chile.erdos.tt2 <- t.test(!is.na(transitivity(chile2, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.chile2)))$trans))
chile.erdos.tt3 <- t.test(!is.na(transitivity(chile3, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.chile3)))$trans))
chile.erdos.tt4 <- t.test(!is.na(transitivity(chile4, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.chile4)))$trans))
chile.erdos.tt5 <- t.test(!is.na(transitivity(chile5, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.chile5)))$trans))
chile.erdos.tt6 <- t.test(!is.na(transitivity(chile6, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.chile6)))$trans))
chile.erdos.tt7 <- t.test(!is.na(transitivity(chile7, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.chile7)))$trans))
### Watts
chile.watts.tt1 <- t.test(!is.na(transitivity(chile1, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.chile1)))$trans))
chile.watts.tt2 <- t.test(!is.na(transitivity(chile2, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.chile2)))$trans))
chile.watts.tt3 <- t.test(!is.na(transitivity(chile3, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.chile3)))$trans))
chile.watts.tt4 <- t.test(!is.na(transitivity(chile4, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.chile4)))$trans))
chile.watts.tt5 <- t.test(!is.na(transitivity(chile5, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.chile5)))$trans))
chile.watts.tt6 <- t.test(!is.na(transitivity(chile6, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.chile6)))$trans))
chile.watts.tt7 <- t.test(!is.na(transitivity(chile7, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.chile7)))$trans))
chile.test <- as.data.frame(c(chile.bar.ct1$p.value,chile.bar.ct2$p.value,chile.bar.ct3$p.value,chile.bar.ct4$p.value,chile.bar.ct5$p.value,chile.bar.ct6$p.value,chile.bar.ct7$p.value))
colnames(chile.test)[1] <- "constraint.bar"
chile.test$constraint.erdos <- (c(chile.erdos.ct1$p.value,chile.erdos.ct2$p.value,chile.erdos.ct3$p.value,chile.erdos.ct4$p.value,chile.erdos.ct5$p.value,chile.erdos.ct6$p.value,chile.erdos.ct7$p.value))
chile.test$constraint.watts <- (c(chile.watts.ct1$p.value,chile.watts.ct2$p.value,chile.watts.ct3$p.value,chile.watts.ct4$p.value,chile.watts.ct5$p.value,chile.watts.ct6$p.value,chile.watts.ct7$p.value))
chile.test$trans.bar <- (c(chile.bar.tt1$p.value,chile.bar.tt2$p.value,chile.bar.tt3$p.value,chile.bar.tt4$p.value,chile.bar.tt5$p.value,chile.bar.tt6$p.value,chile.bar.tt7$p.value))
chile.test$trans.erdos <- (c(chile.erdos.tt1$p.value,chile.erdos.tt2$p.value,chile.erdos.tt3$p.value,chile.erdos.tt4$p.value,chile.erdos.tt5$p.value,chile.erdos.tt6$p.value,chile.erdos.tt7$p.value))
chile.test$trans.watts <- (c(chile.watts.tt1$p.value,chile.watts.tt2$p.value,chile.watts.tt3$p.value,chile.watts.tt4$p.value,chile.watts.tt5$p.value,chile.watts.tt6$p.value,chile.watts.tt7$p.value))
chile.test <- format(round(chile.test, 2), nsmall = 3)
View(chile.test)
write.csv(chile.test, "chile_test.csv")
# OWS
## Constraint
### Barabasi
ows.bar.ct1 <- t.test(ows1.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar1)))$V1))
ows.bar.ct2 <- t.test(ows2.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar2)))$V1))
ows.bar.ct3 <- t.test(ows3.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar3)))$V1))
ows.bar.ct4 <- t.test(ows4.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar4)))$V1))
ows.bar.ct5 <- t.test(ows5.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar5)))$V1))
ows.bar.ct6 <- t.test(ows6.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar6)))$V1))
ows.bar.ct7 <- t.test(ows7.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar7)))$V1))
ows.bar.ct8 <- t.test(ows8.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar8)))$V1))
ows.bar.ct9 <- t.test(ows9.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar9)))$V1))
ows.bar.ct10 <- t.test(ows10.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar10)))$V1))
ows.bar.ct11 <- t.test(ows11.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar11)))$V1))
ows.bar.ct12 <- t.test(ows12.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar12)))$V1))
ows.bar.ct13 <- t.test(ows13.constraint,as.numeric(as.data.frame(t(as.data.frame(ows.bar13)))$V1))
### Erdos
ows.erdos.ct1 <- t.test(ows1.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows1)))$constraint))
ows.erdos.ct2 <- t.test(ows2.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows2)))$constraint))
ows.erdos.ct3 <- t.test(ows3.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows3)))$constraint))
ows.erdos.ct4 <- t.test(ows4.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows4)))$constraint))
ows.erdos.ct5 <- t.test(ows5.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows5)))$constraint))
ows.erdos.ct6 <- t.test(ows6.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows6)))$constraint))
ows.erdos.ct7 <- t.test(ows7.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows7)))$constraint))
ows.erdos.ct8 <- t.test(ows8.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows8)))$constraint))
ows.erdos.ct9 <- t.test(ows9.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows9)))$constraint))
ows.erdos.ct10 <- t.test(ows10.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows10)))$constraint))
ows.erdos.ct11 <- t.test(ows11.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows11)))$constraint))
ows.erdos.ct12 <- t.test(ows12.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows12)))$constraint))
ows.erdos.ct13 <- t.test(ows13.constraint,as.numeric(as.data.frame(t(as.data.frame(erdos.ows13)))$constraint))
### Watts
ows.watts.ct1 <- t.test(ows1.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows1)))$constraint))
ows.watts.ct2 <- t.test(ows2.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows2)))$constraint))
ows.watts.ct3 <- t.test(ows3.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows3)))$constraint))
ows.watts.ct4 <- t.test(ows4.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows4)))$constraint))
ows.watts.ct5 <- t.test(ows5.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows5)))$constraint))
ows.watts.ct6 <- t.test(ows6.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows6)))$constraint))
ows.watts.ct7 <- t.test(ows7.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows7)))$constraint))
ows.watts.ct8 <- t.test(ows8.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows8)))$constraint))
ows.watts.ct9 <- t.test(ows9.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows9)))$constraint))
ows.watts.ct10 <- t.test(ows10.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows10)))$constraint))
ows.watts.ct11 <- t.test(ows11.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows11)))$constraint))
ows.watts.ct12 <- t.test(ows12.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows12)))$constraint))
ows.watts.ct13 <- t.test(ows13.constraint,as.numeric(as.data.frame(t(as.data.frame(watts.ows13)))$constraint))
## Transitivity
### Barabasi
ows.bar.tt1 <- t.test(!is.na(transitivity(ows1, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar1)))$V2))
ows.bar.tt2 <- t.test(!is.na(transitivity(ows2, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar2)))$V2))
ows.bar.tt3 <- t.test(!is.na(transitivity(ows3, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar3)))$V2))
ows.bar.tt4 <- t.test(!is.na(transitivity(ows4, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar4)))$V2))
ows.bar.tt5 <- t.test(!is.na(transitivity(ows5, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar5)))$V2))
ows.bar.tt6 <- t.test(!is.na(transitivity(ows6, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar6)))$V2))
ows.bar.tt7 <- t.test(!is.na(transitivity(ows7, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar7)))$V2))
ows.bar.tt8 <- t.test(!is.na(transitivity(ows8, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar8)))$V2))
ows.bar.tt9 <- t.test(!is.na(transitivity(ows9, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar9)))$V2))
ows.bar.tt10 <- t.test(!is.na(transitivity(ows10, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar10)))$V2))
ows.bar.tt11 <- t.test(!is.na(transitivity(ows11, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar11)))$V2))
ows.bar.tt12 <- t.test(!is.na(transitivity(ows12, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar12)))$V2))
ows.bar.tt13 <- t.test(!is.na(transitivity(ows13, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(ows.bar13)))$V2))
### Erdos
ows.erdos.tt1 <- t.test(!is.na(transitivity(ows1, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows1)))$trans))
ows.erdos.tt2 <- t.test(!is.na(transitivity(ows2, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows2)))$trans))
ows.erdos.tt3 <- t.test(!is.na(transitivity(ows3, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows3)))$trans))
ows.erdos.tt4 <- t.test(!is.na(transitivity(ows4, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows4)))$trans))
ows.erdos.tt5 <- t.test(!is.na(transitivity(ows5, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows5)))$trans))
ows.erdos.tt6 <- t.test(!is.na(transitivity(ows6, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows6)))$trans))
ows.erdos.tt7 <- t.test(!is.na(transitivity(ows7, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows7)))$trans))
ows.erdos.tt8 <- t.test(!is.na(transitivity(ows8, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows8)))$trans))
ows.erdos.tt9 <- t.test(!is.na(transitivity(ows9, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows9)))$trans))
ows.erdos.tt10 <- t.test(!is.na(transitivity(ows10, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows10)))$trans))
ows.erdos.tt11 <- t.test(!is.na(transitivity(ows11, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows11)))$trans))
ows.erdos.tt12 <- t.test(!is.na(transitivity(ows12, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows12)))$trans))
ows.erdos.tt13 <- t.test(!is.na(transitivity(ows13, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(erdos.ows13)))$trans))
### Watts
ows.watts.tt1 <- t.test(!is.na(transitivity(ows1, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows1)))$trans))
ows.watts.tt2 <- t.test(!is.na(transitivity(ows2, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows2)))$trans))
ows.watts.tt3 <- t.test(!is.na(transitivity(ows3, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows3)))$trans))
ows.watts.tt4 <- t.test(!is.na(transitivity(ows4, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows4)))$trans))
ows.watts.tt5 <- t.test(!is.na(transitivity(ows5, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows5)))$trans))
ows.watts.tt6 <- t.test(!is.na(transitivity(ows6, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows6)))$trans))
ows.watts.tt7 <- t.test(!is.na(transitivity(ows7, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows7)))$trans))
ows.watts.tt8 <- t.test(!is.na(transitivity(ows8, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows8)))$trans))
ows.watts.tt9 <- t.test(!is.na(transitivity(ows9, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows9)))$trans))
ows.watts.tt10 <- t.test(!is.na(transitivity(ows10, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows10)))$trans))
ows.watts.tt11 <- t.test(!is.na(transitivity(ows11, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows11)))$trans))
ows.watts.tt12 <- t.test(!is.na(transitivity(ows12, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows12)))$trans))
ows.watts.tt13 <- t.test(!is.na(transitivity(ows13, type=c("local"))),as.numeric(as.data.frame(t(as.data.frame(watts.ows13)))$trans))
ows.test <- as.data.frame(c(ows.bar.ct1$p.value,ows.bar.ct2$p.value,ows.bar.ct3$p.value,ows.bar.ct4$p.value,ows.bar.ct5$p.value,ows.bar.ct6$p.value,ows.bar.ct7$p.value,ows.bar.ct8$p.value,ows.bar.ct9$p.value,ows.bar.ct10$p.value, ows.bar.ct11$p.value, ows.bar.ct12$p.value, ows.bar.ct13$p.value))
colnames(ows.test)[1] <- "constraint.bar"
ows.test$constraint.erdos <- (c(ows.erdos.ct1$p.value,ows.erdos.ct2$p.value,ows.erdos.ct3$p.value,ows.erdos.ct4$p.value,ows.erdos.ct5$p.value,ows.erdos.ct6$p.value,ows.erdos.ct7$p.value,ows.erdos.ct8$p.value,ows.erdos.ct9$p.value,ows.erdos.ct10$p.value, ows.erdos.ct11$p.value, ows.erdos.ct12$p.value, ows.erdos.ct13$p.value))
ows.test$constraint.watts <- (c(ows.watts.ct1$p.value,ows.watts.ct2$p.value,ows.watts.ct3$p.value,ows.watts.ct4$p.value,ows.watts.ct5$p.value,ows.watts.ct6$p.value,ows.watts.ct7$p.value,ows.watts.ct8$p.value,ows.watts.ct9$p.value,ows.watts.ct10$p.value, ows.watts.ct11$p.value, ows.watts.ct12$p.value, ows.watts.ct13$p.value))
ows.test$trans.bar <- (c(ows.bar.tt1$p.value,ows.bar.tt2$p.value,ows.bar.tt3$p.value,ows.bar.tt4$p.value,ows.bar.tt5$p.value,ows.bar.tt6$p.value,ows.bar.tt7$p.value,ows.bar.tt8$p.value,ows.bar.tt9$p.value,ows.bar.tt10$p.value, ows.bar.tt11$p.value, ows.bar.tt12$p.value, ows.bar.tt13$p.value))
ows.test$trans.erdos <- (c(ows.erdos.tt1$p.value,ows.erdos.tt2$p.value,ows.erdos.tt3$p.value,ows.erdos.tt4$p.value,ows.erdos.tt5$p.value,ows.erdos.tt6$p.value,ows.erdos.tt7$p.value,ows.erdos.tt8$p.value,ows.erdos.tt9$p.value,ows.erdos.tt10$p.value, ows.erdos.tt11$p.value, ows.erdos.tt12$p.value, ows.erdos.tt13$p.value))
ows.test$trans.watts <- (c(ows.watts.tt1$p.value,ows.watts.tt2$p.value,ows.watts.tt3$p.value,ows.watts.tt4$p.value,ows.watts.tt5$p.value,ows.watts.tt6$p.value,ows.watts.tt7$p.value,ows.watts.tt8$p.value,ows.watts.tt9$p.value,ows.watts.tt10$p.value, ows.watts.tt11$p.value, ows.watts.tt12$p.value, ows.watts.tt13$p.value))
ows.test <- format(round(ows.test, 2), nsmall = 3)
View(ows.test)
write.csv(ows.test, "ows_test.csv")