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 computationTue, 16 Dec 2014 13:51:54 +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/16/t1418738494mfdw6jms4hnz7db.htm/, Retrieved Sun, 19 May 2024 12:57:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=269581, Retrieved Sun, 19 May 2024 12:57:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact77
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Kendall tau Correlation Matrix] [] [2014-12-16 13:51:54] [37e054ac358b2aa7c2a1d0b751dfa890] [Current]
Feedback Forum

Post a new message
Dataseries X:
23 26 17 27 0 1
22 20 31 30 0 1
26 19 33 24 1 1
41 25 33 16 0 1
23 19 28 27 1 1
33 22 26 18 1 1
31 21 28 24 1 1
35 28 37 24 0 1
28 20 22 18 1 1
31 24 27 22 1 1
23 26 32 25 1 1
25 20 16 16 1 1
30 26 27 18 1 1
30 19 20 24 1 1
19 25 30 24 0 1
32 28 31 29 0 1
50 27 32 22 0 0
27 21 27 21 1 1
36 23 24 23 0 1
31 21 31 24 1 0
26 29 33 23 0 1
32 29 27 19 1 1
35 21 29 24 0 1
30 30 37 20 1 1
38 28 34 24 1 1
41 27 34 30 1 0
27 22 25 17 0 0
28 23 30 22 1 1
24 21 21 24 0 1
21 15 14 20 0 1
39 16 26 23 0 1
33 31 24 19 1 1
28 18 24 22 1 1
47 25 25 24 1 1
26 25 33 20 1 1
25 15 26 24 1 1
34 24 23 26 0 1
30 20 27 24 1 0
30 24 31 24 1 1
25 28 31 24 0 1
19 15 15 21 1 1
28 20 26 22 1 1
39 33 27 29 1 1
20 13 13 23 1 1
30 21 32 22 1 0
31 24 27 25 0 1
19 23 23 23 1 1
25 21 24 24 1 0
52 33 41 30 0 1
33 24 37 24 1 0
22 23 23 24 1 0
32 20 30 20 1 0
17 14 17 16 1 1
31 25 26 27 1 0
20 34 19 13 1 1
29 22 35 29 1 1
37 25 22 27 0 0
21 21 27 24 1 1
23 21 21 24 0 0
30 21 28 23 1 0
21 24 24 22 1 1
24 22 32 26 0 1
40 28 39 26 0 1
20 18 18 21 1 1
33 23 31 23 0 1
20 16 19 20 1 0
26 24 30 28 0 1
22 27 37 29 1 1
32 18 20 16 1 1
13 11 15 25 0 0
28 26 34 28 0 1
32 26 25 24 0 1
27 23 22 24 1 0
32 20 34 24 1 1
23 20 29 12 0 1
28 25 24 22 1 1
23 22 33 22 0 1
29 29 29 24 1 0
26 22 23 26 0 1
15 19 25 24 0 0
14 21 17 26 1 1
19 25 28 22 0 0
19 17 20 23 0 0
26 27 23 29 0 0
33 21 18 16 1 0
35 23 35 18 0 0
28 22 23 22 1 0
25 21 16 23 1 0
41 29 32 30 0 0
28 15 22 24 0 0
25 23 34 21 0 0
26 18 23 23 1 0
41 26 36 14 1 0
28 23 24 25 1 0
26 18 21 17 0 0
24 21 21 24 1 0
32 16 21 23 0 0
25 21 28 22 1 0
22 23 25 16 1 0
29 21 29 22 1 0
36 27 34 30 1 0
40 23 25 25 1 0
27 15 23 21 0 0
35 19 33 22 1 0
18 24 26 23 1 0
36 24 27 24 0 0
27 22 33 22 0 0
31 24 30 21 0 0
16 17 22 26 0 0
26 28 28 24 0 0
20 25 32 27 1 0











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
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.

\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
R Framework error message & 
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=269581&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]
[ROW][C]R Framework error message[/C][C]
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=269581&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=269581&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
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.







Correlations for all pairs of data series (method=kendall)
anderenpositiefnegatieforganisatiegenderGroupN
anderen10.2740.2990.045-0.029-0.014
positief0.27410.3770.194-0.0730.095
negatief0.2990.37710.148-0.0680.058
organisatie0.0450.1940.1481-0.1620.008
gender-0.029-0.073-0.068-0.16210.026
GroupN-0.0140.0950.0580.0080.0261

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series (method=kendall) \tabularnewline
  & anderen & positief & negatief & organisatie & gender & GroupN \tabularnewline
anderen & 1 & 0.274 & 0.299 & 0.045 & -0.029 & -0.014 \tabularnewline
positief & 0.274 & 1 & 0.377 & 0.194 & -0.073 & 0.095 \tabularnewline
negatief & 0.299 & 0.377 & 1 & 0.148 & -0.068 & 0.058 \tabularnewline
organisatie & 0.045 & 0.194 & 0.148 & 1 & -0.162 & 0.008 \tabularnewline
gender & -0.029 & -0.073 & -0.068 & -0.162 & 1 & 0.026 \tabularnewline
GroupN & -0.014 & 0.095 & 0.058 & 0.008 & 0.026 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=269581&T=1

[TABLE]
[ROW][C]Correlations for all pairs of data series (method=kendall)[/C][/ROW]
[ROW][C] [/C][C]anderen[/C][C]positief[/C][C]negatief[/C][C]organisatie[/C][C]gender[/C][C]GroupN[/C][/ROW]
[ROW][C]anderen[/C][C]1[/C][C]0.274[/C][C]0.299[/C][C]0.045[/C][C]-0.029[/C][C]-0.014[/C][/ROW]
[ROW][C]positief[/C][C]0.274[/C][C]1[/C][C]0.377[/C][C]0.194[/C][C]-0.073[/C][C]0.095[/C][/ROW]
[ROW][C]negatief[/C][C]0.299[/C][C]0.377[/C][C]1[/C][C]0.148[/C][C]-0.068[/C][C]0.058[/C][/ROW]
[ROW][C]organisatie[/C][C]0.045[/C][C]0.194[/C][C]0.148[/C][C]1[/C][C]-0.162[/C][C]0.008[/C][/ROW]
[ROW][C]gender[/C][C]-0.029[/C][C]-0.073[/C][C]-0.068[/C][C]-0.162[/C][C]1[/C][C]0.026[/C][/ROW]
[ROW][C]GroupN[/C][C]-0.014[/C][C]0.095[/C][C]0.058[/C][C]0.008[/C][C]0.026[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=269581&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=269581&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)
anderenpositiefnegatieforganisatiegenderGroupN
anderen10.2740.2990.045-0.029-0.014
positief0.27410.3770.194-0.0730.095
negatief0.2990.37710.148-0.0680.058
organisatie0.0450.1940.1481-0.1620.008
gender-0.029-0.073-0.068-0.16210.026
GroupN-0.0140.0950.0580.0080.0261







Correlations for all pairs of data series with p-values
pairPearson rSpearman rhoKendall tau
anderen;positief0.43450.37430.2736
p-value(0)(1e-04)(0)
anderen;negatief0.47130.41720.2994
p-value(0)(0)(0)
anderen;organisatie0.10660.06640.0454
p-value(0.2656)(0.4889)(0.5072)
anderen;gender-0.0649-0.0343-0.0286
p-value(0.4989)(0.7209)(0.7191)
anderen;GroupN-0.0042-0.0164-0.0137
p-value(0.9653)(0.864)(0.8631)
positief;negatief0.53150.50350.3773
p-value(0)(0)(0)
positief;organisatie0.19880.2530.1935
p-value(0.0365)(0.0074)(0.0052)
positief;gender-0.0356-0.0865-0.0731
p-value(0.7104)(0.3668)(0.3644)
positief;GroupN0.13450.11220.0948
p-value(0.1593)(0.241)(0.2393)
negatief;organisatie0.25070.20480.148
p-value(0.008)(0.0311)(0.031)
negatief;gender-0.0973-0.0812-0.0679
p-value(0.3097)(0.3971)(0.3947)
negatief;GroupN0.05320.06890.0576
p-value(0.579)(0.4725)(0.47)
organisatie;gender-0.1681-0.1889-0.1622
p-value(0.0778)(0.0471)(0.0476)
organisatie;GroupN-0.01130.00970.0084
p-value(0.9061)(0.9193)(0.9187)
gender;GroupN0.02550.02550.0255
p-value(0.7901)(0.7901)(0.7887)

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series with p-values \tabularnewline
pair & Pearson r & Spearman rho & Kendall tau \tabularnewline
anderen;positief & 0.4345 & 0.3743 & 0.2736 \tabularnewline
p-value & (0) & (1e-04) & (0) \tabularnewline
anderen;negatief & 0.4713 & 0.4172 & 0.2994 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
anderen;organisatie & 0.1066 & 0.0664 & 0.0454 \tabularnewline
p-value & (0.2656) & (0.4889) & (0.5072) \tabularnewline
anderen;gender & -0.0649 & -0.0343 & -0.0286 \tabularnewline
p-value & (0.4989) & (0.7209) & (0.7191) \tabularnewline
anderen;GroupN & -0.0042 & -0.0164 & -0.0137 \tabularnewline
p-value & (0.9653) & (0.864) & (0.8631) \tabularnewline
positief;negatief & 0.5315 & 0.5035 & 0.3773 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
positief;organisatie & 0.1988 & 0.253 & 0.1935 \tabularnewline
p-value & (0.0365) & (0.0074) & (0.0052) \tabularnewline
positief;gender & -0.0356 & -0.0865 & -0.0731 \tabularnewline
p-value & (0.7104) & (0.3668) & (0.3644) \tabularnewline
positief;GroupN & 0.1345 & 0.1122 & 0.0948 \tabularnewline
p-value & (0.1593) & (0.241) & (0.2393) \tabularnewline
negatief;organisatie & 0.2507 & 0.2048 & 0.148 \tabularnewline
p-value & (0.008) & (0.0311) & (0.031) \tabularnewline
negatief;gender & -0.0973 & -0.0812 & -0.0679 \tabularnewline
p-value & (0.3097) & (0.3971) & (0.3947) \tabularnewline
negatief;GroupN & 0.0532 & 0.0689 & 0.0576 \tabularnewline
p-value & (0.579) & (0.4725) & (0.47) \tabularnewline
organisatie;gender & -0.1681 & -0.1889 & -0.1622 \tabularnewline
p-value & (0.0778) & (0.0471) & (0.0476) \tabularnewline
organisatie;GroupN & -0.0113 & 0.0097 & 0.0084 \tabularnewline
p-value & (0.9061) & (0.9193) & (0.9187) \tabularnewline
gender;GroupN & 0.0255 & 0.0255 & 0.0255 \tabularnewline
p-value & (0.7901) & (0.7901) & (0.7887) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=269581&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]anderen;positief[/C][C]0.4345[/C][C]0.3743[/C][C]0.2736[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](1e-04)[/C][C](0)[/C][/ROW]
[ROW][C]anderen;negatief[/C][C]0.4713[/C][C]0.4172[/C][C]0.2994[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]anderen;organisatie[/C][C]0.1066[/C][C]0.0664[/C][C]0.0454[/C][/ROW]
[ROW][C]p-value[/C][C](0.2656)[/C][C](0.4889)[/C][C](0.5072)[/C][/ROW]
[ROW][C]anderen;gender[/C][C]-0.0649[/C][C]-0.0343[/C][C]-0.0286[/C][/ROW]
[ROW][C]p-value[/C][C](0.4989)[/C][C](0.7209)[/C][C](0.7191)[/C][/ROW]
[ROW][C]anderen;GroupN[/C][C]-0.0042[/C][C]-0.0164[/C][C]-0.0137[/C][/ROW]
[ROW][C]p-value[/C][C](0.9653)[/C][C](0.864)[/C][C](0.8631)[/C][/ROW]
[ROW][C]positief;negatief[/C][C]0.5315[/C][C]0.5035[/C][C]0.3773[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]positief;organisatie[/C][C]0.1988[/C][C]0.253[/C][C]0.1935[/C][/ROW]
[ROW][C]p-value[/C][C](0.0365)[/C][C](0.0074)[/C][C](0.0052)[/C][/ROW]
[ROW][C]positief;gender[/C][C]-0.0356[/C][C]-0.0865[/C][C]-0.0731[/C][/ROW]
[ROW][C]p-value[/C][C](0.7104)[/C][C](0.3668)[/C][C](0.3644)[/C][/ROW]
[ROW][C]positief;GroupN[/C][C]0.1345[/C][C]0.1122[/C][C]0.0948[/C][/ROW]
[ROW][C]p-value[/C][C](0.1593)[/C][C](0.241)[/C][C](0.2393)[/C][/ROW]
[ROW][C]negatief;organisatie[/C][C]0.2507[/C][C]0.2048[/C][C]0.148[/C][/ROW]
[ROW][C]p-value[/C][C](0.008)[/C][C](0.0311)[/C][C](0.031)[/C][/ROW]
[ROW][C]negatief;gender[/C][C]-0.0973[/C][C]-0.0812[/C][C]-0.0679[/C][/ROW]
[ROW][C]p-value[/C][C](0.3097)[/C][C](0.3971)[/C][C](0.3947)[/C][/ROW]
[ROW][C]negatief;GroupN[/C][C]0.0532[/C][C]0.0689[/C][C]0.0576[/C][/ROW]
[ROW][C]p-value[/C][C](0.579)[/C][C](0.4725)[/C][C](0.47)[/C][/ROW]
[ROW][C]organisatie;gender[/C][C]-0.1681[/C][C]-0.1889[/C][C]-0.1622[/C][/ROW]
[ROW][C]p-value[/C][C](0.0778)[/C][C](0.0471)[/C][C](0.0476)[/C][/ROW]
[ROW][C]organisatie;GroupN[/C][C]-0.0113[/C][C]0.0097[/C][C]0.0084[/C][/ROW]
[ROW][C]p-value[/C][C](0.9061)[/C][C](0.9193)[/C][C](0.9187)[/C][/ROW]
[ROW][C]gender;GroupN[/C][C]0.0255[/C][C]0.0255[/C][C]0.0255[/C][/ROW]
[ROW][C]p-value[/C][C](0.7901)[/C][C](0.7901)[/C][C](0.7887)[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=269581&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=269581&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
anderen;positief0.43450.37430.2736
p-value(0)(1e-04)(0)
anderen;negatief0.47130.41720.2994
p-value(0)(0)(0)
anderen;organisatie0.10660.06640.0454
p-value(0.2656)(0.4889)(0.5072)
anderen;gender-0.0649-0.0343-0.0286
p-value(0.4989)(0.7209)(0.7191)
anderen;GroupN-0.0042-0.0164-0.0137
p-value(0.9653)(0.864)(0.8631)
positief;negatief0.53150.50350.3773
p-value(0)(0)(0)
positief;organisatie0.19880.2530.1935
p-value(0.0365)(0.0074)(0.0052)
positief;gender-0.0356-0.0865-0.0731
p-value(0.7104)(0.3668)(0.3644)
positief;GroupN0.13450.11220.0948
p-value(0.1593)(0.241)(0.2393)
negatief;organisatie0.25070.20480.148
p-value(0.008)(0.0311)(0.031)
negatief;gender-0.0973-0.0812-0.0679
p-value(0.3097)(0.3971)(0.3947)
negatief;GroupN0.05320.06890.0576
p-value(0.579)(0.4725)(0.47)
organisatie;gender-0.1681-0.1889-0.1622
p-value(0.0778)(0.0471)(0.0476)
organisatie;GroupN-0.01130.00970.0084
p-value(0.9061)(0.9193)(0.9187)
gender;GroupN0.02550.02550.0255
p-value(0.7901)(0.7901)(0.7887)







Meta Analysis of Correlation Tests
Number of significant by total number of Correlations
Type I errorPearson rSpearman rhoKendall tau
0.010.270.270.27
0.020.270.270.27
0.030.270.270.27
0.040.330.330.33
0.050.330.40.4
0.060.330.40.4
0.070.330.40.4
0.080.40.40.4
0.090.40.40.4
0.10.40.40.4

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=269581&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.270.270.27
0.020.270.270.27
0.030.270.270.27
0.040.330.330.33
0.050.330.40.4
0.060.330.40.4
0.070.330.40.4
0.080.40.40.4
0.090.40.40.4
0.10.40.40.4



Parameters (Session):
par1 = kendall ;
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')