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 computationWed, 17 Dec 2014 20:32:16 +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/17/t1418848620fx8xf6y31qk0zg6.htm/, Retrieved Sun, 19 May 2024 02:24:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=270660, Retrieved Sun, 19 May 2024 02:24:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact90
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] [6c2f6c6ea910808786c6eeaf4a8f7882]
- 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] [d100ddac424efc880e37824ffef4fe9f] [Current]
Feedback Forum

Post a new message
Dataseries X:
13	11	11	25	24	26
20	21	14	23	25	26
20	10	11	22	23	28
22	18	19	23	19	20
20	18	16	22	24	23
24	21	21	27	14	24
23	16	16	24	20	23
19	15	11	24	23	26
22	17	12	20	12	20
24	15	8	19	22	20
21	12	9	23	18	12
19	20	14	21	21	21
20	20	13	27	23	28
16	18	7	19	22	24
17	21	17	25	28	24
25	22	8	25	20	24
16	21	9	24	22	22
23	25	15	26	24	26
20	12	11	21	19	23
23	22	20	22	9	10
22	24	13	26	23	27
15	17	7	20	23	24
16	20	8	21	22	26
20	20	20	21	20	18
23	19	15	28	23	22
24	24	19	24	24	24
17	18	17	19	17	16
19	15	18	23	19	23
25	25	19	25	17	21
14	27	5	27	23	28
18	17	11	18	19	19
22	18	13	26	24	18
15	17	8	14	15	27
27	24	19	25	22	17
22	18	14	23	25	20
26	27	24	24	27	24
16	18	11	20	23	24
25	23	12	19	16	20
20	18	9	25	24	24
19	21	10	19	22	25
19	25	22	23	27	25
24	18	18	23	28	26
14	19	8	17	23	25
18	20	15	24	25	26
13	11	10	22	21	14
19	22	10	20	22	19
25	24	20	23	25	23
20	23	17	22	25	25
17	16	12	20	19	23
17	24	17	23	24	19
13	16	10	22	21	23
20	16	15	21	18	24
20	18	14	22	17	21
24	17	8	26	17	21
25	21	17	24	26	24
19	15	10	28	8	23
20	15	16	24	25	22
20	19	13	26	22	21
22	21	17	20	20	23
18	19	16	26	22	25
21	19	13	21	17	17
20	18	14	26	24	27
11	14	6	22	20	28
18	17	16	21	19	24
22	25	18	25	26	27
21	14	16	25	13	22
15	19	15	23	20	23
23	20	18	27	26	24
18	20	20	23	21	24
23	20	19	28	24	26
19	19	16	24	23	21
23	18	11	21	16	23
26	22	24	23	24	18
19	18	13	21	18	25
26	22	17	24	21	24
20	19	14	28	17	27
20	20	16	11	19	20
23	22	18	25	22	25
24	22	16	25	23	23
26	24	16	28	27	25
23	18	9	28	22	24
19	21	5	19	22	23
25	22	11	25	25	19
23	19	10	25	26	25
19	18	16	25	22	28
27	24	17	28	25	26
23	21	15	26	23	24
24	21	13	27	8	25
20	20	12	24	24	28
16	17	12	18	14	23
22	20	16	21	17	15
26	22	22	23	21	18
26	24	19	24	21	24
24	24	23	26	25	27
20	20	6	25	18	25
20	19	19	23	20	24
12	20	7	24	25	26
21	16	9	20	20	19
27	21	16	26	24	23
26	22	19	27	22	21
17	19	8	21	16	22
20	19	15	21	20	23
18	13	10	19	21	23
28	22	18	25	22	20
24	20	19	23	15	20
24	21	12	25	21	25
24	21	16	26	25	28
12	15	12	18	16	19
26	23	20	27	28	21
23	22	19	23	22	21
13	15	10	20	19	25
23	20	16	22	17	18
16	23	12	22	23	22
23	21	15	23	28	21
18	18	15	18	19	21
25	23	17	25	24	25
18	16	13	21	16	20
18	18	14	21	19	22
21	18	18	28	19	27
7	10	4	19	12	23
19	17	11	21	16	25
21	20	10	23	15	28
17	13	7	22	17	25
22	25	20	27	23	24
15	18	10	23	21	27
20	20	18	27	20	19
19	18	14	23	19	24
10	19	11	21	20	22
18	11	12	22	20	23
25	17	16	26	23	21
23	22	19	23	22	21
25	21	18	26	20	20
23	19	16	28	24	26
21	20	9	28	21	28
23	21	15	26	23	23
19	22	14	24	22	19
22	20	17	23	21	23
23	21	14	28	26	18
15	15	11	21	16	21
23	22	11	28	28	28
23	21	19	21	24	22
24	28	25	28	28	28
20	20	20	24	14	20
23	20	15	24	16	23
24	23	17	28	22	25
17	18	12	21	18	16
21	15	10	26	23	23
19	19	24	22	18	18
23	21	16	25	22	22
22	19	9	20	13	21
14	16	16	19	20	19
19	17	8	23	24	20
21	26	11	26	24	27
23	20	13	28	25	27
16	13	14	24	23	20
23	19	12	25	24	26
19	21	14	24	22	25
19	21	16	25	24	23
22	24	19	27	24	24
26	23	17	28	24	27
22	20	20	23	25	28
24	23	11	19	27	26
24	24	19	27	27	27
11	8	6	15	14	23
21	19	16	27	21	28
21	18	14	21	17	22
22	20	14	26	23	23
22	21	16	25	25	27
19	16	11	26	20	18
18	17	14	24	21	22
19	21	16	25	24	23
27	27	22	27	27	25
14	12	7	14	12	14
15	17	17	24	26	21
20	17	16	25	22	26
22	18	18	23	24	28
26	24	22	24	24	22
20	18	13	22	20	24
13	18	11	16	22	28
26	24	19	26	23	24
19	18	14	26	22	26
20	19	15	19	21	18
18	19	15	19	13	19
20	24	15	28	21	26
21	15	15	24	20	26
26	22	19	20	18	12
25	17	22	21	19	24
20	20	18	26	25	26
21	22	10	24	24	23




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ wold.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 & 2 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=270660&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=270660&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=270660&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 time2 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Correlations for all pairs of data series (method=pearson)
I1I2I3E1E2E3
I110.5650.5590.4830.255-0.014
I20.56510.4990.4060.4180.16
I30.5590.49910.3190.251-0.074
E10.4830.4060.31910.3980.333
E20.2550.4180.2510.39810.367
E3-0.0140.16-0.0740.3330.3671

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series (method=pearson) \tabularnewline
  & I1 & I2 & I3 & E1 & E2 & E3 \tabularnewline
I1 & 1 & 0.565 & 0.559 & 0.483 & 0.255 & -0.014 \tabularnewline
I2 & 0.565 & 1 & 0.499 & 0.406 & 0.418 & 0.16 \tabularnewline
I3 & 0.559 & 0.499 & 1 & 0.319 & 0.251 & -0.074 \tabularnewline
E1 & 0.483 & 0.406 & 0.319 & 1 & 0.398 & 0.333 \tabularnewline
E2 & 0.255 & 0.418 & 0.251 & 0.398 & 1 & 0.367 \tabularnewline
E3 & -0.014 & 0.16 & -0.074 & 0.333 & 0.367 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=270660&T=1

[TABLE]
[ROW][C]Correlations for all pairs of data series (method=pearson)[/C][/ROW]
[ROW][C] [/C][C]I1[/C][C]I2[/C][C]I3[/C][C]E1[/C][C]E2[/C][C]E3[/C][/ROW]
[ROW][C]I1[/C][C]1[/C][C]0.565[/C][C]0.559[/C][C]0.483[/C][C]0.255[/C][C]-0.014[/C][/ROW]
[ROW][C]I2[/C][C]0.565[/C][C]1[/C][C]0.499[/C][C]0.406[/C][C]0.418[/C][C]0.16[/C][/ROW]
[ROW][C]I3[/C][C]0.559[/C][C]0.499[/C][C]1[/C][C]0.319[/C][C]0.251[/C][C]-0.074[/C][/ROW]
[ROW][C]E1[/C][C]0.483[/C][C]0.406[/C][C]0.319[/C][C]1[/C][C]0.398[/C][C]0.333[/C][/ROW]
[ROW][C]E2[/C][C]0.255[/C][C]0.418[/C][C]0.251[/C][C]0.398[/C][C]1[/C][C]0.367[/C][/ROW]
[ROW][C]E3[/C][C]-0.014[/C][C]0.16[/C][C]-0.074[/C][C]0.333[/C][C]0.367[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=270660&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=270660&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=pearson)
I1I2I3E1E2E3
I110.5650.5590.4830.255-0.014
I20.56510.4990.4060.4180.16
I30.5590.49910.3190.251-0.074
E10.4830.4060.31910.3980.333
E20.2550.4180.2510.39810.367
E3-0.0140.16-0.0740.3330.3671







Correlations for all pairs of data series with p-values
pairPearson rSpearman rhoKendall tau
I1;I20.56470.56890.4408
p-value(0)(0)(0)
I1;I30.55940.52440.3939
p-value(0)(0)(0)
I1;E10.48280.47640.3534
p-value(0)(0)(0)
I1;E20.25490.28330.2059
p-value(4e-04)(1e-04)(1e-04)
I1;E3-0.01410.00950.0072
p-value(0.8476)(0.8967)(0.8919)
I2;I30.49850.48610.3718
p-value(0)(0)(0)
I2;E10.40630.40960.2993
p-value(0)(0)(0)
I2;E20.41760.45390.3342
p-value(0)(0)(0)
I2;E30.160.14530.1056
p-value(0.0278)(0.0461)(0.0463)
I3;E10.31860.29670.2121
p-value(0)(0)(1e-04)
I3;E20.25090.24580.1811
p-value(5e-04)(7e-04)(5e-04)
I3;E3-0.0736-0.0694-0.0477
p-value(0.314)(0.3426)(0.3639)
E1;E20.39820.4510.3349
p-value(0)(0)(0)
E1;E30.33320.36640.2739
p-value(0)(0)(0)
E2;E30.36710.36960.2699
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
I1;I2 & 0.5647 & 0.5689 & 0.4408 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
I1;I3 & 0.5594 & 0.5244 & 0.3939 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
I1;E1 & 0.4828 & 0.4764 & 0.3534 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
I1;E2 & 0.2549 & 0.2833 & 0.2059 \tabularnewline
p-value & (4e-04) & (1e-04) & (1e-04) \tabularnewline
I1;E3 & -0.0141 & 0.0095 & 0.0072 \tabularnewline
p-value & (0.8476) & (0.8967) & (0.8919) \tabularnewline
I2;I3 & 0.4985 & 0.4861 & 0.3718 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
I2;E1 & 0.4063 & 0.4096 & 0.2993 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
I2;E2 & 0.4176 & 0.4539 & 0.3342 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
I2;E3 & 0.16 & 0.1453 & 0.1056 \tabularnewline
p-value & (0.0278) & (0.0461) & (0.0463) \tabularnewline
I3;E1 & 0.3186 & 0.2967 & 0.2121 \tabularnewline
p-value & (0) & (0) & (1e-04) \tabularnewline
I3;E2 & 0.2509 & 0.2458 & 0.1811 \tabularnewline
p-value & (5e-04) & (7e-04) & (5e-04) \tabularnewline
I3;E3 & -0.0736 & -0.0694 & -0.0477 \tabularnewline
p-value & (0.314) & (0.3426) & (0.3639) \tabularnewline
E1;E2 & 0.3982 & 0.451 & 0.3349 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
E1;E3 & 0.3332 & 0.3664 & 0.2739 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
E2;E3 & 0.3671 & 0.3696 & 0.2699 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=270660&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]I1;I2[/C][C]0.5647[/C][C]0.5689[/C][C]0.4408[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]I1;I3[/C][C]0.5594[/C][C]0.5244[/C][C]0.3939[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]I1;E1[/C][C]0.4828[/C][C]0.4764[/C][C]0.3534[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]I1;E2[/C][C]0.2549[/C][C]0.2833[/C][C]0.2059[/C][/ROW]
[ROW][C]p-value[/C][C](4e-04)[/C][C](1e-04)[/C][C](1e-04)[/C][/ROW]
[ROW][C]I1;E3[/C][C]-0.0141[/C][C]0.0095[/C][C]0.0072[/C][/ROW]
[ROW][C]p-value[/C][C](0.8476)[/C][C](0.8967)[/C][C](0.8919)[/C][/ROW]
[ROW][C]I2;I3[/C][C]0.4985[/C][C]0.4861[/C][C]0.3718[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]I2;E1[/C][C]0.4063[/C][C]0.4096[/C][C]0.2993[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]I2;E2[/C][C]0.4176[/C][C]0.4539[/C][C]0.3342[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]I2;E3[/C][C]0.16[/C][C]0.1453[/C][C]0.1056[/C][/ROW]
[ROW][C]p-value[/C][C](0.0278)[/C][C](0.0461)[/C][C](0.0463)[/C][/ROW]
[ROW][C]I3;E1[/C][C]0.3186[/C][C]0.2967[/C][C]0.2121[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](1e-04)[/C][/ROW]
[ROW][C]I3;E2[/C][C]0.2509[/C][C]0.2458[/C][C]0.1811[/C][/ROW]
[ROW][C]p-value[/C][C](5e-04)[/C][C](7e-04)[/C][C](5e-04)[/C][/ROW]
[ROW][C]I3;E3[/C][C]-0.0736[/C][C]-0.0694[/C][C]-0.0477[/C][/ROW]
[ROW][C]p-value[/C][C](0.314)[/C][C](0.3426)[/C][C](0.3639)[/C][/ROW]
[ROW][C]E1;E2[/C][C]0.3982[/C][C]0.451[/C][C]0.3349[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]E1;E3[/C][C]0.3332[/C][C]0.3664[/C][C]0.2739[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]E2;E3[/C][C]0.3671[/C][C]0.3696[/C][C]0.2699[/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=270660&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=270660&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
I1;I20.56470.56890.4408
p-value(0)(0)(0)
I1;I30.55940.52440.3939
p-value(0)(0)(0)
I1;E10.48280.47640.3534
p-value(0)(0)(0)
I1;E20.25490.28330.2059
p-value(4e-04)(1e-04)(1e-04)
I1;E3-0.01410.00950.0072
p-value(0.8476)(0.8967)(0.8919)
I2;I30.49850.48610.3718
p-value(0)(0)(0)
I2;E10.40630.40960.2993
p-value(0)(0)(0)
I2;E20.41760.45390.3342
p-value(0)(0)(0)
I2;E30.160.14530.1056
p-value(0.0278)(0.0461)(0.0463)
I3;E10.31860.29670.2121
p-value(0)(0)(1e-04)
I3;E20.25090.24580.1811
p-value(5e-04)(7e-04)(5e-04)
I3;E3-0.0736-0.0694-0.0477
p-value(0.314)(0.3426)(0.3639)
E1;E20.39820.4510.3349
p-value(0)(0)(0)
E1;E30.33320.36640.2739
p-value(0)(0)(0)
E2;E30.36710.36960.2699
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.80.80.8
0.020.80.80.8
0.030.870.80.8
0.040.870.80.8
0.050.870.870.87
0.060.870.870.87
0.070.870.870.87
0.080.870.870.87
0.090.870.870.87
0.10.870.870.87

\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.8 & 0.8 & 0.8 \tabularnewline
0.02 & 0.8 & 0.8 & 0.8 \tabularnewline
0.03 & 0.87 & 0.8 & 0.8 \tabularnewline
0.04 & 0.87 & 0.8 & 0.8 \tabularnewline
0.05 & 0.87 & 0.87 & 0.87 \tabularnewline
0.06 & 0.87 & 0.87 & 0.87 \tabularnewline
0.07 & 0.87 & 0.87 & 0.87 \tabularnewline
0.08 & 0.87 & 0.87 & 0.87 \tabularnewline
0.09 & 0.87 & 0.87 & 0.87 \tabularnewline
0.1 & 0.87 & 0.87 & 0.87 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=270660&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.8[/C][C]0.8[/C][C]0.8[/C][/ROW]
[ROW][C]0.02[/C][C]0.8[/C][C]0.8[/C][C]0.8[/C][/ROW]
[ROW][C]0.03[/C][C]0.87[/C][C]0.8[/C][C]0.8[/C][/ROW]
[ROW][C]0.04[/C][C]0.87[/C][C]0.8[/C][C]0.8[/C][/ROW]
[ROW][C]0.05[/C][C]0.87[/C][C]0.87[/C][C]0.87[/C][/ROW]
[ROW][C]0.06[/C][C]0.87[/C][C]0.87[/C][C]0.87[/C][/ROW]
[ROW][C]0.07[/C][C]0.87[/C][C]0.87[/C][C]0.87[/C][/ROW]
[ROW][C]0.08[/C][C]0.87[/C][C]0.87[/C][C]0.87[/C][/ROW]
[ROW][C]0.09[/C][C]0.87[/C][C]0.87[/C][C]0.87[/C][/ROW]
[ROW][C]0.1[/C][C]0.87[/C][C]0.87[/C][C]0.87[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=270660&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=270660&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.80.80.8
0.020.80.80.8
0.030.870.80.8
0.040.870.80.8
0.050.870.870.87
0.060.870.870.87
0.070.870.870.87
0.080.870.870.87
0.090.870.870.87
0.10.870.870.87



Parameters (Session):
par1 = kendall ;
Parameters (R input):
par1 = kendall ;
R code (references can be found in the software module):
par1 <- 'pearson'
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')