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 computationFri, 09 Dec 2011 07:20:20 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/09/t1323433241quubmb90qosdxd2.htm/, Retrieved Fri, 03 May 2024 00:57:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=153292, Retrieved Fri, 03 May 2024 00:57:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Kendall tau Correlation Matrix] [] [2010-12-05 17:44:33] [b98453cac15ba1066b407e146608df68]
- RMPD    [Kendall tau Correlation Matrix] [Pearson Correlati...] [2011-12-09 12:20:20] [f9bdb25068ab2a4592adc645515299ca] [Current]
-    D      [Kendall tau Correlation Matrix] [Pearson Correlati...] [2011-12-09 12:30:15] [74b1e5a3104ff0b2404b2865a63336ad]
-   PD        [Kendall tau Correlation Matrix] [Pearson Correlati...] [2011-12-09 13:50:46] [74b1e5a3104ff0b2404b2865a63336ad]
-   P           [Kendall tau Correlation Matrix] [] [2011-12-23 13:40:19] [74be16979710d4c4e7c6647856088456]
Feedback Forum

Post a new message
Dataseries X:
1972	33907	71433	152	74272	99	765
1973	35981	53655	99	78867	128	1371
1974	36588	70556	92	80176	57	1880
1975	16967	74702	138	36541	95	232
1976	25333	61201	106	55107	205	230
1977	21027	686	95	45527	51	828
1978	21114	87586	145	46001	59	1833
1979	28777	6615	181	62854	194	906
1980	35612	89725	190	78112	27	1781
1981	24183	40420	150	52653	9	1264
1982	22262	49569	186	48467	24	1123
1983	20637	13963	174	44873	189	1461
1984	29948	62508	151	65605	37	820
1985	22093	90901	112	48016	81	107
1986	36997	89418	143	81110	72	1349
1987	31089	83237	120	68019	81	870
1988	19477	22183	169	42198	90	1471
1989	31301	24346	135	68531	216	731
1990	18497	74341	161	40071	216	1945
1991	30142	24188	98	65849	13	521
1992	21326	11781	142	46362	153	1920
1993	16779	23072	190	36313	185	1924
1994	38068	49119	169	83521	131	100
1995	29707	67776	130	64932	136	34
1996	35016	86910	160	76730	182	325
1997	26131	69358	176	56982	139	1677
1998	29251	16144	111	63793	42	1779
1999	22855	77863	165	49740	213	477
2000	31806	89070	117	69447	184	1007
2001	34124	34790	122	74708	44	1527




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153292&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'AstonUniversity' @ aston.wessa.net







Correlations for all pairs of data series (method=pearson)
JaarOmzetUitgavenPrijsGemiddeld_BudgetConsumentevertrouwenUitgaven
Jaar10.051-0.0370.1420.0510.2490.004
Omzet0.05110.27-0.2371-0.168-0.138
Uitgaven-0.0370.271-0.0050.27-0.019-0.193
Prijs0.142-0.237-0.0051-0.2340.2340.201
Gemiddeld_Budget0.05110.27-0.2341-0.167-0.137
Consumentevertrouwen0.249-0.168-0.0190.234-0.1671-0.14
Uitgaven0.004-0.138-0.1930.201-0.137-0.141

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series (method=pearson) \tabularnewline
  & Jaar & Omzet & Uitgaven & Prijs & Gemiddeld_Budget & Consumentevertrouwen & Uitgaven \tabularnewline
Jaar & 1 & 0.051 & -0.037 & 0.142 & 0.051 & 0.249 & 0.004 \tabularnewline
Omzet & 0.051 & 1 & 0.27 & -0.237 & 1 & -0.168 & -0.138 \tabularnewline
Uitgaven & -0.037 & 0.27 & 1 & -0.005 & 0.27 & -0.019 & -0.193 \tabularnewline
Prijs & 0.142 & -0.237 & -0.005 & 1 & -0.234 & 0.234 & 0.201 \tabularnewline
Gemiddeld_Budget & 0.051 & 1 & 0.27 & -0.234 & 1 & -0.167 & -0.137 \tabularnewline
Consumentevertrouwen & 0.249 & -0.168 & -0.019 & 0.234 & -0.167 & 1 & -0.14 \tabularnewline
Uitgaven & 0.004 & -0.138 & -0.193 & 0.201 & -0.137 & -0.14 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=153292&T=1

[TABLE]
[ROW][C]Correlations for all pairs of data series (method=pearson)[/C][/ROW]
[ROW][C] [/C][C]Jaar[/C][C]Omzet[/C][C]Uitgaven[/C][C]Prijs[/C][C]Gemiddeld_Budget[/C][C]Consumentevertrouwen[/C][C]Uitgaven[/C][/ROW]
[ROW][C]Jaar[/C][C]1[/C][C]0.051[/C][C]-0.037[/C][C]0.142[/C][C]0.051[/C][C]0.249[/C][C]0.004[/C][/ROW]
[ROW][C]Omzet[/C][C]0.051[/C][C]1[/C][C]0.27[/C][C]-0.237[/C][C]1[/C][C]-0.168[/C][C]-0.138[/C][/ROW]
[ROW][C]Uitgaven[/C][C]-0.037[/C][C]0.27[/C][C]1[/C][C]-0.005[/C][C]0.27[/C][C]-0.019[/C][C]-0.193[/C][/ROW]
[ROW][C]Prijs[/C][C]0.142[/C][C]-0.237[/C][C]-0.005[/C][C]1[/C][C]-0.234[/C][C]0.234[/C][C]0.201[/C][/ROW]
[ROW][C]Gemiddeld_Budget[/C][C]0.051[/C][C]1[/C][C]0.27[/C][C]-0.234[/C][C]1[/C][C]-0.167[/C][C]-0.137[/C][/ROW]
[ROW][C]Consumentevertrouwen[/C][C]0.249[/C][C]-0.168[/C][C]-0.019[/C][C]0.234[/C][C]-0.167[/C][C]1[/C][C]-0.14[/C][/ROW]
[ROW][C]Uitgaven[/C][C]0.004[/C][C]-0.138[/C][C]-0.193[/C][C]0.201[/C][C]-0.137[/C][C]-0.14[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=153292&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153292&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)
JaarOmzetUitgavenPrijsGemiddeld_BudgetConsumentevertrouwenUitgaven
Jaar10.051-0.0370.1420.0510.2490.004
Omzet0.05110.27-0.2371-0.168-0.138
Uitgaven-0.0370.271-0.0050.27-0.019-0.193
Prijs0.142-0.237-0.0051-0.2340.2340.201
Gemiddeld_Budget0.05110.27-0.2341-0.167-0.137
Consumentevertrouwen0.249-0.168-0.0190.234-0.1671-0.14
Uitgaven0.004-0.138-0.1930.201-0.137-0.141







Correlations for all pairs of data series with p-values
pairPearson rSpearman rhoKendall tau
Jaar;Omzet0.05140.05720.0391
p-value(0.7874)(0.7635)(0.7772)
Jaar;Uitgaven-0.0368-0.0278-0.0023
p-value(0.8471)(0.8842)(1)
Jaar;Prijs0.14160.130.0714
p-value(0.4554)(0.4937)(0.5801)
Jaar;Gemiddeld_Budget0.05110.05720.0391
p-value(0.7887)(0.7635)(0.7772)
Jaar;Consumentevertrouwen0.24890.21180.1452
p-value(0.1848)(0.2611)(0.2609)
Jaar;Uitgaven0.00360.01490.0023
p-value(0.9851)(0.9382)(1)
Omzet;Uitgaven0.26950.29250.2046
p-value(0.1497)(0.1167)(0.117)
Omzet;Prijs-0.2367-0.231-0.1406
p-value(0.2078)(0.2194)(0.2763)
Omzet;Gemiddeld_Budget111
p-value(0)(0)(0)
Omzet;Consumentevertrouwen-0.1675-0.1923-0.1406
p-value(0.3762)(0.3088)(0.2763)
Omzet;Uitgaven-0.1381-0.1893-0.1218
p-value(0.4668)(0.3149)(0.3567)
Uitgaven;Prijs-0.0046-0.0122-0.0161
p-value(0.9806)(0.9488)(0.9006)
Uitgaven;Gemiddeld_Budget0.27020.29250.2046
p-value(0.1487)(0.1167)(0.117)
Uitgaven;Consumentevertrouwen-0.0194-0.0287-0.0253
p-value(0.919)(0.8803)(0.8444)
Uitgaven;Uitgaven-0.1928-0.1608-0.0989
p-value(0.3074)(0.3942)(0.457)
Prijs;Gemiddeld_Budget-0.2339-0.231-0.1406
p-value(0.2134)(0.2194)(0.2763)
Prijs;Consumentevertrouwen0.23440.21770.1547
p-value(0.2124)(0.2479)(0.2317)
Prijs;Uitgaven0.20150.21630.1359
p-value(0.2857)(0.251)(0.2924)
Gemiddeld_Budget;Consumentevertrouwen-0.1675-0.1923-0.1406
p-value(0.3764)(0.3088)(0.2763)
Gemiddeld_Budget;Uitgaven-0.1369-0.1893-0.1218
p-value(0.4707)(0.3149)(0.3567)
Consumentevertrouwen;Uitgaven-0.1401-0.1024-0.0622
p-value(0.4603)(0.5904)(0.6299)

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series with p-values \tabularnewline
pair & Pearson r & Spearman rho & Kendall tau \tabularnewline
Jaar;Omzet & 0.0514 & 0.0572 & 0.0391 \tabularnewline
p-value & (0.7874) & (0.7635) & (0.7772) \tabularnewline
Jaar;Uitgaven & -0.0368 & -0.0278 & -0.0023 \tabularnewline
p-value & (0.8471) & (0.8842) & (1) \tabularnewline
Jaar;Prijs & 0.1416 & 0.13 & 0.0714 \tabularnewline
p-value & (0.4554) & (0.4937) & (0.5801) \tabularnewline
Jaar;Gemiddeld_Budget & 0.0511 & 0.0572 & 0.0391 \tabularnewline
p-value & (0.7887) & (0.7635) & (0.7772) \tabularnewline
Jaar;Consumentevertrouwen & 0.2489 & 0.2118 & 0.1452 \tabularnewline
p-value & (0.1848) & (0.2611) & (0.2609) \tabularnewline
Jaar;Uitgaven & 0.0036 & 0.0149 & 0.0023 \tabularnewline
p-value & (0.9851) & (0.9382) & (1) \tabularnewline
Omzet;Uitgaven & 0.2695 & 0.2925 & 0.2046 \tabularnewline
p-value & (0.1497) & (0.1167) & (0.117) \tabularnewline
Omzet;Prijs & -0.2367 & -0.231 & -0.1406 \tabularnewline
p-value & (0.2078) & (0.2194) & (0.2763) \tabularnewline
Omzet;Gemiddeld_Budget & 1 & 1 & 1 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
Omzet;Consumentevertrouwen & -0.1675 & -0.1923 & -0.1406 \tabularnewline
p-value & (0.3762) & (0.3088) & (0.2763) \tabularnewline
Omzet;Uitgaven & -0.1381 & -0.1893 & -0.1218 \tabularnewline
p-value & (0.4668) & (0.3149) & (0.3567) \tabularnewline
Uitgaven;Prijs & -0.0046 & -0.0122 & -0.0161 \tabularnewline
p-value & (0.9806) & (0.9488) & (0.9006) \tabularnewline
Uitgaven;Gemiddeld_Budget & 0.2702 & 0.2925 & 0.2046 \tabularnewline
p-value & (0.1487) & (0.1167) & (0.117) \tabularnewline
Uitgaven;Consumentevertrouwen & -0.0194 & -0.0287 & -0.0253 \tabularnewline
p-value & (0.919) & (0.8803) & (0.8444) \tabularnewline
Uitgaven;Uitgaven & -0.1928 & -0.1608 & -0.0989 \tabularnewline
p-value & (0.3074) & (0.3942) & (0.457) \tabularnewline
Prijs;Gemiddeld_Budget & -0.2339 & -0.231 & -0.1406 \tabularnewline
p-value & (0.2134) & (0.2194) & (0.2763) \tabularnewline
Prijs;Consumentevertrouwen & 0.2344 & 0.2177 & 0.1547 \tabularnewline
p-value & (0.2124) & (0.2479) & (0.2317) \tabularnewline
Prijs;Uitgaven & 0.2015 & 0.2163 & 0.1359 \tabularnewline
p-value & (0.2857) & (0.251) & (0.2924) \tabularnewline
Gemiddeld_Budget;Consumentevertrouwen & -0.1675 & -0.1923 & -0.1406 \tabularnewline
p-value & (0.3764) & (0.3088) & (0.2763) \tabularnewline
Gemiddeld_Budget;Uitgaven & -0.1369 & -0.1893 & -0.1218 \tabularnewline
p-value & (0.4707) & (0.3149) & (0.3567) \tabularnewline
Consumentevertrouwen;Uitgaven & -0.1401 & -0.1024 & -0.0622 \tabularnewline
p-value & (0.4603) & (0.5904) & (0.6299) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=153292&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]Jaar;Omzet[/C][C]0.0514[/C][C]0.0572[/C][C]0.0391[/C][/ROW]
[ROW][C]p-value[/C][C](0.7874)[/C][C](0.7635)[/C][C](0.7772)[/C][/ROW]
[ROW][C]Jaar;Uitgaven[/C][C]-0.0368[/C][C]-0.0278[/C][C]-0.0023[/C][/ROW]
[ROW][C]p-value[/C][C](0.8471)[/C][C](0.8842)[/C][C](1)[/C][/ROW]
[ROW][C]Jaar;Prijs[/C][C]0.1416[/C][C]0.13[/C][C]0.0714[/C][/ROW]
[ROW][C]p-value[/C][C](0.4554)[/C][C](0.4937)[/C][C](0.5801)[/C][/ROW]
[ROW][C]Jaar;Gemiddeld_Budget[/C][C]0.0511[/C][C]0.0572[/C][C]0.0391[/C][/ROW]
[ROW][C]p-value[/C][C](0.7887)[/C][C](0.7635)[/C][C](0.7772)[/C][/ROW]
[ROW][C]Jaar;Consumentevertrouwen[/C][C]0.2489[/C][C]0.2118[/C][C]0.1452[/C][/ROW]
[ROW][C]p-value[/C][C](0.1848)[/C][C](0.2611)[/C][C](0.2609)[/C][/ROW]
[ROW][C]Jaar;Uitgaven[/C][C]0.0036[/C][C]0.0149[/C][C]0.0023[/C][/ROW]
[ROW][C]p-value[/C][C](0.9851)[/C][C](0.9382)[/C][C](1)[/C][/ROW]
[ROW][C]Omzet;Uitgaven[/C][C]0.2695[/C][C]0.2925[/C][C]0.2046[/C][/ROW]
[ROW][C]p-value[/C][C](0.1497)[/C][C](0.1167)[/C][C](0.117)[/C][/ROW]
[ROW][C]Omzet;Prijs[/C][C]-0.2367[/C][C]-0.231[/C][C]-0.1406[/C][/ROW]
[ROW][C]p-value[/C][C](0.2078)[/C][C](0.2194)[/C][C](0.2763)[/C][/ROW]
[ROW][C]Omzet;Gemiddeld_Budget[/C][C]1[/C][C]1[/C][C]1[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]Omzet;Consumentevertrouwen[/C][C]-0.1675[/C][C]-0.1923[/C][C]-0.1406[/C][/ROW]
[ROW][C]p-value[/C][C](0.3762)[/C][C](0.3088)[/C][C](0.2763)[/C][/ROW]
[ROW][C]Omzet;Uitgaven[/C][C]-0.1381[/C][C]-0.1893[/C][C]-0.1218[/C][/ROW]
[ROW][C]p-value[/C][C](0.4668)[/C][C](0.3149)[/C][C](0.3567)[/C][/ROW]
[ROW][C]Uitgaven;Prijs[/C][C]-0.0046[/C][C]-0.0122[/C][C]-0.0161[/C][/ROW]
[ROW][C]p-value[/C][C](0.9806)[/C][C](0.9488)[/C][C](0.9006)[/C][/ROW]
[ROW][C]Uitgaven;Gemiddeld_Budget[/C][C]0.2702[/C][C]0.2925[/C][C]0.2046[/C][/ROW]
[ROW][C]p-value[/C][C](0.1487)[/C][C](0.1167)[/C][C](0.117)[/C][/ROW]
[ROW][C]Uitgaven;Consumentevertrouwen[/C][C]-0.0194[/C][C]-0.0287[/C][C]-0.0253[/C][/ROW]
[ROW][C]p-value[/C][C](0.919)[/C][C](0.8803)[/C][C](0.8444)[/C][/ROW]
[ROW][C]Uitgaven;Uitgaven[/C][C]-0.1928[/C][C]-0.1608[/C][C]-0.0989[/C][/ROW]
[ROW][C]p-value[/C][C](0.3074)[/C][C](0.3942)[/C][C](0.457)[/C][/ROW]
[ROW][C]Prijs;Gemiddeld_Budget[/C][C]-0.2339[/C][C]-0.231[/C][C]-0.1406[/C][/ROW]
[ROW][C]p-value[/C][C](0.2134)[/C][C](0.2194)[/C][C](0.2763)[/C][/ROW]
[ROW][C]Prijs;Consumentevertrouwen[/C][C]0.2344[/C][C]0.2177[/C][C]0.1547[/C][/ROW]
[ROW][C]p-value[/C][C](0.2124)[/C][C](0.2479)[/C][C](0.2317)[/C][/ROW]
[ROW][C]Prijs;Uitgaven[/C][C]0.2015[/C][C]0.2163[/C][C]0.1359[/C][/ROW]
[ROW][C]p-value[/C][C](0.2857)[/C][C](0.251)[/C][C](0.2924)[/C][/ROW]
[ROW][C]Gemiddeld_Budget;Consumentevertrouwen[/C][C]-0.1675[/C][C]-0.1923[/C][C]-0.1406[/C][/ROW]
[ROW][C]p-value[/C][C](0.3764)[/C][C](0.3088)[/C][C](0.2763)[/C][/ROW]
[ROW][C]Gemiddeld_Budget;Uitgaven[/C][C]-0.1369[/C][C]-0.1893[/C][C]-0.1218[/C][/ROW]
[ROW][C]p-value[/C][C](0.4707)[/C][C](0.3149)[/C][C](0.3567)[/C][/ROW]
[ROW][C]Consumentevertrouwen;Uitgaven[/C][C]-0.1401[/C][C]-0.1024[/C][C]-0.0622[/C][/ROW]
[ROW][C]p-value[/C][C](0.4603)[/C][C](0.5904)[/C][C](0.6299)[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=153292&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153292&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
Jaar;Omzet0.05140.05720.0391
p-value(0.7874)(0.7635)(0.7772)
Jaar;Uitgaven-0.0368-0.0278-0.0023
p-value(0.8471)(0.8842)(1)
Jaar;Prijs0.14160.130.0714
p-value(0.4554)(0.4937)(0.5801)
Jaar;Gemiddeld_Budget0.05110.05720.0391
p-value(0.7887)(0.7635)(0.7772)
Jaar;Consumentevertrouwen0.24890.21180.1452
p-value(0.1848)(0.2611)(0.2609)
Jaar;Uitgaven0.00360.01490.0023
p-value(0.9851)(0.9382)(1)
Omzet;Uitgaven0.26950.29250.2046
p-value(0.1497)(0.1167)(0.117)
Omzet;Prijs-0.2367-0.231-0.1406
p-value(0.2078)(0.2194)(0.2763)
Omzet;Gemiddeld_Budget111
p-value(0)(0)(0)
Omzet;Consumentevertrouwen-0.1675-0.1923-0.1406
p-value(0.3762)(0.3088)(0.2763)
Omzet;Uitgaven-0.1381-0.1893-0.1218
p-value(0.4668)(0.3149)(0.3567)
Uitgaven;Prijs-0.0046-0.0122-0.0161
p-value(0.9806)(0.9488)(0.9006)
Uitgaven;Gemiddeld_Budget0.27020.29250.2046
p-value(0.1487)(0.1167)(0.117)
Uitgaven;Consumentevertrouwen-0.0194-0.0287-0.0253
p-value(0.919)(0.8803)(0.8444)
Uitgaven;Uitgaven-0.1928-0.1608-0.0989
p-value(0.3074)(0.3942)(0.457)
Prijs;Gemiddeld_Budget-0.2339-0.231-0.1406
p-value(0.2134)(0.2194)(0.2763)
Prijs;Consumentevertrouwen0.23440.21770.1547
p-value(0.2124)(0.2479)(0.2317)
Prijs;Uitgaven0.20150.21630.1359
p-value(0.2857)(0.251)(0.2924)
Gemiddeld_Budget;Consumentevertrouwen-0.1675-0.1923-0.1406
p-value(0.3764)(0.3088)(0.2763)
Gemiddeld_Budget;Uitgaven-0.1369-0.1893-0.1218
p-value(0.4707)(0.3149)(0.3567)
Consumentevertrouwen;Uitgaven-0.1401-0.1024-0.0622
p-value(0.4603)(0.5904)(0.6299)



Parameters (Session):
par1 = pearson ;
Parameters (R input):
par1 = pearson ;
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')
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)
}
}
a<-table.end(a)
table.save(a,file='mytable1.tab')