Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_pairs.wasp
Title produced by softwareKendall tau Correlation Matrix
Date of computationFri, 24 Dec 2010 16:25:11 +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/2010/Dec/24/t1293207807xzmjl5gp84pklo5.htm/, Retrieved Tue, 30 Apr 2024 05:30:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=115184, Retrieved Tue, 30 Apr 2024 05:30:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact92
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2010-12-05 18:56:24] [b98453cac15ba1066b407e146608df68]
- RMPD    [Kendall tau Correlation Matrix] [workshop 10 - spe...] [2010-12-24 16:25:11] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
0	6532	151352	1151176
0	7123	288170	790090
0	7146	134028	450033
0	8568	32168	783310
1	3369	87161	688779
1	6620	80570	696348
1	4519	102129	597793
0	2220	301670	821730
1	5336	112477	697458
1	2365	191778	700368
0	4069	79804	225986
0	7710	128294	348695
0	4525	93811	501709
0	6869	117520	413743
0	4628	69159	379825
1	3653	101792	336260
1	1265	210568	636765
1	7489	136996	481231
0	4901	121920	469107
0	2284	76403	211928
1	3160	108094	563925
1	4150	134759	511939
1	7285	188873	521016
1	1134	146216	543856
1	4658	156608	329304
0	2384	61348	423262
0	3748	50350	509665
0	5371	87720	455881
0	1285	99489	367772
1	9327	87419	406339
1	5565	94355	493408
0	1528	60326	232942
1	3122	94670	416002
1	7317	82425	337430
0	2675	59017	361517
0	880	80791	235561
1	2053	100423	408247
0	1424	131116	450296
1	4036	100269	418799
1	3045	27330	247405
0	5119	39039	378519
0	1431	106885	326638
0	554	79285	328233
0	1975	118881	386225
1	1286	77623	283662
0	1012	114768	370225
0	810	74015	269236
0	1280	69465	365732
1	666	117869	420383
0	1380	60982	345811
1	4608	90131	431809
0	876	138971	418876
0	814	39625	297476
0	514	102725	416776
1	5692	64239	357257
0	3642	90262	458343
0	540	103960	388386
0	2099	106611	358934
0	567	103345	407560
0	2001	95551	392558
1	2949	82903	373177
0	2253	63593	428370
1	6533	126910	369419
0	1889	37527	358649
1	3055	60247	376641
0	272	112995	467427
1	1414	70184	364885
0	2564	130140	436230
1	1383	73221	329118
1	1261	76114	317365
0	975	90534	286849
0	3366	108479	376685
0	576	113761	407198
0	1306	68696	377772
0	746	71561	271483
1	3192	59831	153661
1	2045	97890	513294
0	5477	101481	324881
1	1932	72954	264512
0	936	67939	420968
1	3437	48022	129302
0	5131	86111	191521
1	2397	74020	268673
1	1389	57530	353179
0	1503	56364	354624
0	402	84990	363713
0	2239	88590	456657
1	2234	77200	211742
0	837	61262	338381
0	875	67000	351483
0	1395	93099	372928
1	1659	107577	485538
1	2647	62920	279268
1	3294	75832	219060
0	94	60793	325314
0	422	57935	322046
0	34	60630	325599
0	1558	55637	377028
0	43	60887	323850
0	316	60505	331514





Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132
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 & 'George Udny Yule' @ 72.249.76.132 \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=115184&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]'George Udny Yule' @ 72.249.76.132[/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=115184&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115184&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'George Udny Yule' @ 72.249.76.132
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=spearman)
GroupCostsDividendsWealth
Group10.3190.1070.065
Costs0.31910.2140.309
Dividends0.1070.21410.537
Wealth 0.0650.3090.5371

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series (method=spearman) \tabularnewline
  & Group & Costs & Dividends & Wealth
 \tabularnewline
Group & 1 & 0.319 & 0.107 & 0.065 \tabularnewline
Costs & 0.319 & 1 & 0.214 & 0.309 \tabularnewline
Dividends & 0.107 & 0.214 & 1 & 0.537 \tabularnewline
Wealth
 & 0.065 & 0.309 & 0.537 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115184&T=1

[TABLE]
[ROW][C]Correlations for all pairs of data series (method=spearman)[/C][/ROW]
[ROW][C] [/C][C]Group[/C][C]Costs[/C][C]Dividends[/C][C]Wealth
[/C][/ROW]
[ROW][C]Group[/C][C]1[/C][C]0.319[/C][C]0.107[/C][C]0.065[/C][/ROW]
[ROW][C]Costs[/C][C]0.319[/C][C]1[/C][C]0.214[/C][C]0.309[/C][/ROW]
[ROW][C]Dividends[/C][C]0.107[/C][C]0.214[/C][C]1[/C][C]0.537[/C][/ROW]
[ROW][C]Wealth
[/C][C]0.065[/C][C]0.309[/C][C]0.537[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115184&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115184&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=spearman)
GroupCostsDividendsWealth
Group10.3190.1070.065
Costs0.31910.2140.309
Dividends0.1070.21410.537
Wealth 0.0650.3090.5371







Correlations for all pairs of data series with p-values
pairPearson rSpearman rhoKendall tau
Group;Costs0.25090.31890.2617
p-value(0.0118)(0.0012)(0.0015)
Group;Dividends0.06490.10750.0882
p-value(0.5211)(0.2871)(0.2849)
Group;Wealth 0.0390.06510.0534
p-value(0.7004)(0.5202)(0.5174)
Costs;Dividends0.22530.21410.1455
p-value(0.0242)(0.0326)(0.032)
Costs;Wealth 0.35510.30910.2093
p-value(3e-04)(0.0018)(0.002)
Dividends;Wealth 0.57050.53710.3673
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
Group;Costs & 0.2509 & 0.3189 & 0.2617 \tabularnewline
p-value & (0.0118) & (0.0012) & (0.0015) \tabularnewline
Group;Dividends & 0.0649 & 0.1075 & 0.0882 \tabularnewline
p-value & (0.5211) & (0.2871) & (0.2849) \tabularnewline
Group;Wealth
 & 0.039 & 0.0651 & 0.0534 \tabularnewline
p-value & (0.7004) & (0.5202) & (0.5174) \tabularnewline
Costs;Dividends & 0.2253 & 0.2141 & 0.1455 \tabularnewline
p-value & (0.0242) & (0.0326) & (0.032) \tabularnewline
Costs;Wealth
 & 0.3551 & 0.3091 & 0.2093 \tabularnewline
p-value & (3e-04) & (0.0018) & (0.002) \tabularnewline
Dividends;Wealth
 & 0.5705 & 0.5371 & 0.3673 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115184&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]Group;Costs[/C][C]0.2509[/C][C]0.3189[/C][C]0.2617[/C][/ROW]
[ROW][C]p-value[/C][C](0.0118)[/C][C](0.0012)[/C][C](0.0015)[/C][/ROW]
[ROW][C]Group;Dividends[/C][C]0.0649[/C][C]0.1075[/C][C]0.0882[/C][/ROW]
[ROW][C]p-value[/C][C](0.5211)[/C][C](0.2871)[/C][C](0.2849)[/C][/ROW]
[ROW][C]Group;Wealth
[/C][C]0.039[/C][C]0.0651[/C][C]0.0534[/C][/ROW]
[ROW][C]p-value[/C][C](0.7004)[/C][C](0.5202)[/C][C](0.5174)[/C][/ROW]
[ROW][C]Costs;Dividends[/C][C]0.2253[/C][C]0.2141[/C][C]0.1455[/C][/ROW]
[ROW][C]p-value[/C][C](0.0242)[/C][C](0.0326)[/C][C](0.032)[/C][/ROW]
[ROW][C]Costs;Wealth
[/C][C]0.3551[/C][C]0.3091[/C][C]0.2093[/C][/ROW]
[ROW][C]p-value[/C][C](3e-04)[/C][C](0.0018)[/C][C](0.002)[/C][/ROW]
[ROW][C]Dividends;Wealth
[/C][C]0.5705[/C][C]0.5371[/C][C]0.3673[/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=115184&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115184&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
Group;Costs0.25090.31890.2617
p-value(0.0118)(0.0012)(0.0015)
Group;Dividends0.06490.10750.0882
p-value(0.5211)(0.2871)(0.2849)
Group;Wealth 0.0390.06510.0534
p-value(0.7004)(0.5202)(0.5174)
Costs;Dividends0.22530.21410.1455
p-value(0.0242)(0.0326)(0.032)
Costs;Wealth 0.35510.30910.2093
p-value(3e-04)(0.0018)(0.002)
Dividends;Wealth 0.57050.53710.3673
p-value(0)(0)(0)



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