Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_pairs.wasp
Title produced by softwareKendall tau Correlation Matrix
Date of computationSat, 13 Dec 2014 09:24:32 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2014/Dec/13/t1418462795mhp5grlitky9off.htm/, Retrieved Thu, 16 May 2024 05:50:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=266916, Retrieved Thu, 16 May 2024 05:50:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact148
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Kendall tau Correlation Matrix] [Kendall tau corre...] [2014-12-13 09:24:32] [d0ee3c98d5e00815b38c7c808f1992f4] [Current]
-   PD    [Kendall tau Correlation Matrix] [paper matrix mannen] [2014-12-13 10:51:21] [360405f86b14d8f4815c93d2e1ab1814]
-   PD    [Kendall tau Correlation Matrix] [paper matrix vrouwen] [2014-12-13 11:59:13] [360405f86b14d8f4815c93d2e1ab1814]
- RMPD    [Chi-Squared Test, McNemar Test, and Fisher Exact Test] [] [2014-12-15 17:01:19] [95c11abf048d3a1e472aeccb09199113]
- RMPD    [Chi-Squared Test, McNemar Test, and Fisher Exact Test] [] [2014-12-15 17:05:33] [95c11abf048d3a1e472aeccb09199113]
- RMPD    [Chi-Squared Test, McNemar Test, and Fisher Exact Test] [] [2014-12-15 17:09:27] [95c11abf048d3a1e472aeccb09199113]
- RMPD    [Chi-Squared Test, McNemar Test, and Fisher Exact Test] [] [2014-12-15 17:15:29] [95c11abf048d3a1e472aeccb09199113]
- R PD      [Chi-Squared Test, McNemar Test, and Fisher Exact Test] [] [2014-12-17 14:30:22] [95c11abf048d3a1e472aeccb09199113]
- RMPD    [Chi-Squared Test, McNemar Test, and Fisher Exact Test] [] [2014-12-15 17:23:07] [95c11abf048d3a1e472aeccb09199113]
- R PD      [Chi-Squared Test, McNemar Test, and Fisher Exact Test] [] [2014-12-17 14:34:40] [95c11abf048d3a1e472aeccb09199113]
- R PD    [Kendall tau Correlation Matrix] [] [2014-12-15 17:49:48] [95c11abf048d3a1e472aeccb09199113]
- R  D      [Kendall tau Correlation Matrix] [] [2014-12-17 20:32:16] [95c11abf048d3a1e472aeccb09199113]
- R  D      [Kendall tau Correlation Matrix] [] [2014-12-17 20:44:26] [95c11abf048d3a1e472aeccb09199113]
Feedback Forum

Post a new message
Dataseries X:
149 96 18 68 86
139 70 31 39 70
148 88 39 32 71
158 114 46 62 108
128 69 31 33 64
224 176 67 52 119
159 114 35 62 97
105 121 52 77 129
159 110 77 76 153
167 158 37 41 78
165 116 32 48 80
159 181 36 63 99
119 77 38 30 68
176 141 69 78 147
54 35 21 19 40
91 80 26 31 57
163 152 54 66 120
124 97 36 35 71
137 99 42 42 84
121 84 23 45 68
153 68 34 21 55
148 101 112 25 137
221 107 35 44 79
188 88 47 69 116
149 112 47 54 101
244 171 37 74 111
148 137 109 80 189
92 77 24 42 66
150 66 20 61 81
153 93 22 41 63
94 105 23 46 69
156 131 32 39 71
132 102 30 34 64
161 161 92 51 143
105 120 43 42 85
97 127 55 31 86
151 77 16 39 55
131 108 49 20 69
166 85 71 49 120
157 168 43 53 96
111 48 29 31 60
145 152 56 39 95
162 75 46 54 100
163 107 19 49 68
59 62 23 34 57
187 121 59 46 105
109 124 30 55 85
90 72 61 42 103
105 40 7 50 57
83 58 38 13 51
116 97 32 37 69
42 88 16 25 41
148 126 19 30 49
155 104 22 28 50
125 148 48 45 93
116 146 23 35 58
128 80 26 28 54
138 97 33 41 74
49 25 9 6 15
96 99 24 45 69
164 118 34 73 107
162 58 48 17 65
99 63 18 40 58
202 139 43 64 107
186 50 33 37 70
66 60 28 25 53
183 152 71 65 136
214 142 26 100 126
188 94 67 28 95
104 66 34 35 69
177 127 80 56 136
126 67 29 29 58
76 90 16 43 59
99 75 59 59 118
139 128 32 50 82
162 146 43 59 102
108 69 38 27 65
159 186 29 61 90
74 81 36 28 64
110 85 32 51 83
96 54 35 35 70
116 46 21 29 50
87 106 29 48 77
97 34 12 25 37
127 60 37 44 81
106 95 37 64 101
80 57 47 32 79
74 62 51 20 71
91 36 32 28 60
133 56 21 34 55
74 54 13 31 44
114 64 14 26 40
140 76 -2 58 56
95 98 20 23 43
98 88 24 21 45
121 35 11 21 32
126 102 23 33 56
98 61 24 16 40
95 80 14 20 34
110 49 52 37 89
70 78 15 35 50
102 90 23 33 56
86 45 19 27 46
130 55 35 41 76
96 96 24 40 64
102 43 39 35 74
100 52 29 28 57
94 60 13 32 45
52 54 8 22 30
98 51 18 44 62
118 51 24 27 51
99 38 19 17 36
48 41 23 12 34
50 146 16 45 61
150 182 33 37 70
154 192 32 37 69
109 263 37 108 145
68 35 14 10 23
194 439 52 68 120
158 214 75 72 147
159 341 72 143 215
67 58 15 9 24
147 292 29 55 84
39 85 13 17 30
100 200 40 37 77
111 158 19 27 46
138 199 24 37 61
101 297 121 58 178
131 227 93 66 160
101 108 36 21 57
114 86 23 19 42
165 302 85 78 163
114 148 41 35 75
111 178 46 48 94
75 120 18 27 45
82 207 35 43 78
121 157 17 30 47
32 128 4 25 29
150 296 28 69 97
117 323 44 72 116
71 79 10 23 32
165 70 38 13 50
154 146 57 61 118
126 246 23 43 66
149 196 36 51 86
145 199 22 67 89
120 127 40 36 76
109 153 31 44 75
132 299 11 45 57
172 228 38 34 72
169 190 24 36 60
114 180 37 72 109
156 212 37 39 76
172 269 22 43 65
68 130 15 25 40
89 179 2 56 58
167 243 43 80 123
113 190 31 40 71
115 299 29 73 102
78 121 45 34 80
118 137 25 72 97
87 305 4 42 46
173 157 31 61 93
2 96 -4 23 19
162 183 66 74 140
49 52 61 16 78
122 238 32 66 98
96 40 31 9 40
100 226 39 41 80
82 190 19 57 76
100 214 31 48 79
115 145 36 51 87
141 119 42 53 95
165 222 21 29 49
165 222 21 29 49
110 159 25 55 80
118 165 32 54 86
158 249 26 43 69
146 125 28 51 79
49 122 32 20 52
90 186 41 79 120
121 148 29 39 69
155 274 33 61 94
104 172 17 55 72
147 84 13 30 43
110 168 32 55 87
108 102 30 22 52
113 106 34 37 71
115 2 59 2 61
61 139 13 38 51
60 95 23 27 50
109 130 10 56 67
68 72 5 25 30
111 141 31 39 70
77 113 19 33 52
73 206 32 43 75
151 268 30 57 87
89 175 25 43 69
78 77 48 23 72
110 125 35 44 79
220 255 67 54 121
65 111 15 28 43
141 132 22 36 58
117 211 18 39 57
122 92 33 16 50
63 76 46 23 69
44 171 24 40 64
52 83 14 24 38
131 266 12 78 90
101 186 38 57 96
42 50 12 37 49
152 117 28 27 56
107 219 41 61 102
77 246 12 27 40
154 279 31 69 100
103 148 33 34 67
96 137 34 44 78
175 181 21 34 55
57 98 20 39 59
112 226 44 51 96
143 234 52 34 86
49 138 7 31 38
110 85 29 13 43
131 66 11 12 23
167 236 26 51 77
56 106 24 24 48
137 135 7 19 26
86 122 60 30 91
121 218 13 81 94
149 199 20 42 62
168 112 52 22 74
140 278 28 85 114
88 94 25 27 52
168 113 39 25 64
94 84 9 22 31
51 86 19 19 38
48 62 13 14 27
145 222 60 45 105
66 167 19 45 64
85 82 34 28 62
109 207 14 51 65
63 184 17 41 58
102 83 45 31 76
162 183 66 74 140
86 89 48 19 68
114 225 29 51 80
164 237 -2 73 71
119 102 51 24 76
126 221 2 61 63
132 128 24 23 46
142 91 40 14 53
83 198 20 54 74
94 204 19 51 70
81 158 16 62 78
166 138 20 36 56
110 226 40 59 100
64 44 27 24 51
93 196 25 26 52
104 83 49 54 102
105 79 39 39 78
49 52 61 16 78
88 105 19 36 55
95 116 67 31 98
102 83 45 31 76
99 196 30 42 73
63 153 8 39 47
76 157 19 25 45
109 75 52 31 83
117 106 22 38 60
57 58 17 31 48
120 75 33 17 50
73 74 34 22 56
91 185 22 55 77
108 265 30 62 91
105 131 25 51 76
117 139 38 30 68
119 196 26 49 74




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 1 seconds \tabularnewline
R Server & 'Sir Maurice George Kendall' @ kendall.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266916&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Maurice George Kendall' @ kendall.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266916&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266916&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net







Correlations for all pairs of data series (method=kendall)
LFMBLOGSPRHCOMP_HOURSRFC_HOURS
LFM10.2310.2640.3040.349
BLOGS0.23110.0780.430.324
PRH0.2640.07810.1680.567
COMP_HOURS0.3040.430.16810.616
RFC_HOURS0.3490.3240.5670.6161

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series (method=kendall) \tabularnewline
  & LFM & BLOGS & PRH & COMP_HOURS & RFC_HOURS \tabularnewline
LFM & 1 & 0.231 & 0.264 & 0.304 & 0.349 \tabularnewline
BLOGS & 0.231 & 1 & 0.078 & 0.43 & 0.324 \tabularnewline
PRH & 0.264 & 0.078 & 1 & 0.168 & 0.567 \tabularnewline
COMP_HOURS & 0.304 & 0.43 & 0.168 & 1 & 0.616 \tabularnewline
RFC_HOURS & 0.349 & 0.324 & 0.567 & 0.616 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266916&T=1

[TABLE]
[ROW][C]Correlations for all pairs of data series (method=kendall)[/C][/ROW]
[ROW][C] [/C][C]LFM[/C][C]BLOGS[/C][C]PRH[/C][C]COMP_HOURS[/C][C]RFC_HOURS[/C][/ROW]
[ROW][C]LFM[/C][C]1[/C][C]0.231[/C][C]0.264[/C][C]0.304[/C][C]0.349[/C][/ROW]
[ROW][C]BLOGS[/C][C]0.231[/C][C]1[/C][C]0.078[/C][C]0.43[/C][C]0.324[/C][/ROW]
[ROW][C]PRH[/C][C]0.264[/C][C]0.078[/C][C]1[/C][C]0.168[/C][C]0.567[/C][/ROW]
[ROW][C]COMP_HOURS[/C][C]0.304[/C][C]0.43[/C][C]0.168[/C][C]1[/C][C]0.616[/C][/ROW]
[ROW][C]RFC_HOURS[/C][C]0.349[/C][C]0.324[/C][C]0.567[/C][C]0.616[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266916&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266916&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Correlations for all pairs of data series (method=kendall)
LFMBLOGSPRHCOMP_HOURSRFC_HOURS
LFM10.2310.2640.3040.349
BLOGS0.23110.0780.430.324
PRH0.2640.07810.1680.567
COMP_HOURS0.3040.430.16810.616
RFC_HOURS0.3490.3240.5670.6161







Correlations for all pairs of data series with p-values
pairPearson rSpearman rhoKendall tau
LFM;BLOGS0.32660.3420.2313
p-value(0)(0)(0)
LFM;PRH0.3740.38050.2635
p-value(0)(0)(0)
LFM;COMP_HOURS0.44120.43350.3044
p-value(0)(0)(0)
LFM;RFC_HOURS0.50990.49470.3493
p-value(0)(0)(0)
BLOGS;PRH0.13730.11230.0777
p-value(0.0222)(0.0619)(0.0565)
BLOGS;COMP_HOURS0.60120.6080.43
p-value(0)(0)(0)
BLOGS;RFC_HOURS0.46470.46870.3244
p-value(0)(0)(0)
PRH;COMP_HOURS0.27290.23680.1684
p-value(0)(1e-04)(0)
PRH;RFC_HOURS0.79560.74490.5665
p-value(0)(0)(0)
COMP_HOURS;RFC_HOURS0.79990.79150.6155
p-value(0)(0)(0)

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series with p-values \tabularnewline
pair & Pearson r & Spearman rho & Kendall tau \tabularnewline
LFM;BLOGS & 0.3266 & 0.342 & 0.2313 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
LFM;PRH & 0.374 & 0.3805 & 0.2635 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
LFM;COMP_HOURS & 0.4412 & 0.4335 & 0.3044 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
LFM;RFC_HOURS & 0.5099 & 0.4947 & 0.3493 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
BLOGS;PRH & 0.1373 & 0.1123 & 0.0777 \tabularnewline
p-value & (0.0222) & (0.0619) & (0.0565) \tabularnewline
BLOGS;COMP_HOURS & 0.6012 & 0.608 & 0.43 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
BLOGS;RFC_HOURS & 0.4647 & 0.4687 & 0.3244 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
PRH;COMP_HOURS & 0.2729 & 0.2368 & 0.1684 \tabularnewline
p-value & (0) & (1e-04) & (0) \tabularnewline
PRH;RFC_HOURS & 0.7956 & 0.7449 & 0.5665 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
COMP_HOURS;RFC_HOURS & 0.7999 & 0.7915 & 0.6155 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266916&T=2

[TABLE]
[ROW][C]Correlations for all pairs of data series with p-values[/C][/ROW]
[ROW][C]pair[/C][C]Pearson r[/C][C]Spearman rho[/C][C]Kendall tau[/C][/ROW]
[ROW][C]LFM;BLOGS[/C][C]0.3266[/C][C]0.342[/C][C]0.2313[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]LFM;PRH[/C][C]0.374[/C][C]0.3805[/C][C]0.2635[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]LFM;COMP_HOURS[/C][C]0.4412[/C][C]0.4335[/C][C]0.3044[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]LFM;RFC_HOURS[/C][C]0.5099[/C][C]0.4947[/C][C]0.3493[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]BLOGS;PRH[/C][C]0.1373[/C][C]0.1123[/C][C]0.0777[/C][/ROW]
[ROW][C]p-value[/C][C](0.0222)[/C][C](0.0619)[/C][C](0.0565)[/C][/ROW]
[ROW][C]BLOGS;COMP_HOURS[/C][C]0.6012[/C][C]0.608[/C][C]0.43[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]BLOGS;RFC_HOURS[/C][C]0.4647[/C][C]0.4687[/C][C]0.3244[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]PRH;COMP_HOURS[/C][C]0.2729[/C][C]0.2368[/C][C]0.1684[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](1e-04)[/C][C](0)[/C][/ROW]
[ROW][C]PRH;RFC_HOURS[/C][C]0.7956[/C][C]0.7449[/C][C]0.5665[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]COMP_HOURS;RFC_HOURS[/C][C]0.7999[/C][C]0.7915[/C][C]0.6155[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266916&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266916&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Correlations for all pairs of data series with p-values
pairPearson rSpearman rhoKendall tau
LFM;BLOGS0.32660.3420.2313
p-value(0)(0)(0)
LFM;PRH0.3740.38050.2635
p-value(0)(0)(0)
LFM;COMP_HOURS0.44120.43350.3044
p-value(0)(0)(0)
LFM;RFC_HOURS0.50990.49470.3493
p-value(0)(0)(0)
BLOGS;PRH0.13730.11230.0777
p-value(0.0222)(0.0619)(0.0565)
BLOGS;COMP_HOURS0.60120.6080.43
p-value(0)(0)(0)
BLOGS;RFC_HOURS0.46470.46870.3244
p-value(0)(0)(0)
PRH;COMP_HOURS0.27290.23680.1684
p-value(0)(1e-04)(0)
PRH;RFC_HOURS0.79560.74490.5665
p-value(0)(0)(0)
COMP_HOURS;RFC_HOURS0.79990.79150.6155
p-value(0)(0)(0)







Meta Analysis of Correlation Tests
Number of significant by total number of Correlations
Type I errorPearson rSpearman rhoKendall tau
0.010.90.90.9
0.020.90.90.9
0.0310.90.9
0.0410.90.9
0.0510.90.9
0.0610.91
0.07111
0.08111
0.09111
0.1111

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Correlation Tests \tabularnewline
Number of significant by total number of Correlations \tabularnewline
Type I error & Pearson r & Spearman rho & Kendall tau \tabularnewline
0.01 & 0.9 & 0.9 & 0.9 \tabularnewline
0.02 & 0.9 & 0.9 & 0.9 \tabularnewline
0.03 & 1 & 0.9 & 0.9 \tabularnewline
0.04 & 1 & 0.9 & 0.9 \tabularnewline
0.05 & 1 & 0.9 & 0.9 \tabularnewline
0.06 & 1 & 0.9 & 1 \tabularnewline
0.07 & 1 & 1 & 1 \tabularnewline
0.08 & 1 & 1 & 1 \tabularnewline
0.09 & 1 & 1 & 1 \tabularnewline
0.1 & 1 & 1 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266916&T=3

[TABLE]
[ROW][C]Meta Analysis of Correlation Tests[/C][/ROW]
[ROW][C]Number of significant by total number of Correlations[/C][/ROW]
[ROW][C]Type I error[/C][C]Pearson r[/C][C]Spearman rho[/C][C]Kendall tau[/C][/ROW]
[ROW][C]0.01[/C][C]0.9[/C][C]0.9[/C][C]0.9[/C][/ROW]
[ROW][C]0.02[/C][C]0.9[/C][C]0.9[/C][C]0.9[/C][/ROW]
[ROW][C]0.03[/C][C]1[/C][C]0.9[/C][C]0.9[/C][/ROW]
[ROW][C]0.04[/C][C]1[/C][C]0.9[/C][C]0.9[/C][/ROW]
[ROW][C]0.05[/C][C]1[/C][C]0.9[/C][C]0.9[/C][/ROW]
[ROW][C]0.06[/C][C]1[/C][C]0.9[/C][C]1[/C][/ROW]
[ROW][C]0.07[/C][C]1[/C][C]1[/C][C]1[/C][/ROW]
[ROW][C]0.08[/C][C]1[/C][C]1[/C][C]1[/C][/ROW]
[ROW][C]0.09[/C][C]1[/C][C]1[/C][C]1[/C][/ROW]
[ROW][C]0.1[/C][C]1[/C][C]1[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266916&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266916&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Meta Analysis of Correlation Tests
Number of significant by total number of Correlations
Type I errorPearson rSpearman rhoKendall tau
0.010.90.90.9
0.020.90.90.9
0.0310.90.9
0.0410.90.9
0.0510.90.9
0.0610.91
0.07111
0.08111
0.09111
0.1111



Parameters (Session):
Parameters (R input):
par1 = kendall ;
R code (references can be found in the software module):
panel.tau <- function(x, y, digits=2, prefix='', cex.cor)
{
usr <- par('usr'); on.exit(par(usr))
par(usr = c(0, 1, 0, 1))
rr <- cor.test(x, y, method=par1)
r <- round(rr$p.value,2)
txt <- format(c(r, 0.123456789), digits=digits)[1]
txt <- paste(prefix, txt, sep='')
if(missing(cex.cor)) cex <- 0.5/strwidth(txt)
text(0.5, 0.5, txt, cex = cex)
}
panel.hist <- function(x, ...)
{
usr <- par('usr'); on.exit(par(usr))
par(usr = c(usr[1:2], 0, 1.5) )
h <- hist(x, plot = FALSE)
breaks <- h$breaks; nB <- length(breaks)
y <- h$counts; y <- y/max(y)
rect(breaks[-nB], 0, breaks[-1], y, col='grey', ...)
}
bitmap(file='test1.png')
pairs(t(y),diag.panel=panel.hist, upper.panel=panel.smooth, lower.panel=panel.tau, main=main)
dev.off()
load(file='createtable')
n <- length(y[,1])
n
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,paste('Correlations for all pairs of data series (method=',par1,')',sep=''),n+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,' ',header=TRUE)
for (i in 1:n) {
a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE)
}
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE)
for (j in 1:n) {
r <- cor.test(y[i,],y[j,],method=par1)
a<-table.element(a,round(r$estimate,3))
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
ncorrs <- (n*n -n)/2
mycorrs <- array(0, dim=c(10,3))
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Correlations for all pairs of data series with p-values',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'pair',1,TRUE)
a<-table.element(a,'Pearson r',1,TRUE)
a<-table.element(a,'Spearman rho',1,TRUE)
a<-table.element(a,'Kendall tau',1,TRUE)
a<-table.row.end(a)
cor.test(y[1,],y[2,],method=par1)
for (i in 1:(n-1))
{
for (j in (i+1):n)
{
a<-table.row.start(a)
dum <- paste(dimnames(t(x))[[2]][i],';',dimnames(t(x))[[2]][j],sep='')
a<-table.element(a,dum,header=TRUE)
rp <- cor.test(y[i,],y[j,],method='pearson')
a<-table.element(a,round(rp$estimate,4))
rs <- cor.test(y[i,],y[j,],method='spearman')
a<-table.element(a,round(rs$estimate,4))
rk <- cor.test(y[i,],y[j,],method='kendall')
a<-table.element(a,round(rk$estimate,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=T)
a<-table.element(a,paste('(',round(rp$p.value,4),')',sep=''))
a<-table.element(a,paste('(',round(rs$p.value,4),')',sep=''))
a<-table.element(a,paste('(',round(rk$p.value,4),')',sep=''))
a<-table.row.end(a)
for (iii in 1:10) {
iiid100 <- iii / 100
if (rp$p.value < iiid100) mycorrs[iii, 1] = mycorrs[iii, 1] + 1
if (rs$p.value < iiid100) mycorrs[iii, 2] = mycorrs[iii, 2] + 1
if (rk$p.value < iiid100) mycorrs[iii, 3] = mycorrs[iii, 3] + 1
}
}
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Correlation Tests',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Number of significant by total number of Correlations',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Type I error',1,TRUE)
a<-table.element(a,'Pearson r',1,TRUE)
a<-table.element(a,'Spearman rho',1,TRUE)
a<-table.element(a,'Kendall tau',1,TRUE)
a<-table.row.end(a)
for (iii in 1:10) {
iiid100 <- iii / 100
a<-table.row.start(a)
a<-table.element(a,round(iiid100,2),header=T)
a<-table.element(a,round(mycorrs[iii,1]/ncorrs,2))
a<-table.element(a,round(mycorrs[iii,2]/ncorrs,2))
a<-table.element(a,round(mycorrs[iii,3]/ncorrs,2))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')