Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software ModulePatrick.Wessarwasp_pairs.wasp
Title produced by softwareKendall tau Correlation Matrix
Date of computationSun, 19 Dec 2010 19:05:25 +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/19/t12927854204jpcimsjodxsfvu.htm/, Retrieved Sat, 04 May 2024 21:46:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=112677, Retrieved Sat, 04 May 2024 21:46:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
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]
F   PD  [Kendall tau Correlation Matrix] [] [2010-12-12 17:09:17] [de55ccbf69577500a5f46ed42a101114]
-   PD      [Kendall tau Correlation Matrix] [] [2010-12-19 19:05:25] [6b31f806e9ccc1f74a26091056f791cb] [Current]
Feedback Forum

Post a new message
Dataseries X:
4606.07	54.64		14.36
4176.60	52.39		14.62
4331.53	52.51		13.51
3987.30	52.92		14.95
4205.86	55.22		16.72
4331.37	55.41		16.33
4106.30	57.02		15.21
4009.33	58.55		16.69
3857.64	57.49		15.81
3929.00	55.52		16.02
4210.47	57.84		16.7
4445.82	58.69		15.99
4497.07	59.74		17.68
4443.71	60.7		18.89
4529.25	60.74		18.72
4634.22	64.32		21.14
4772.67	66.9		20.97
4881.52	70.93		23.75
5153.13	75.89		23.05
5324.19	80.6		23.45
5209.36	81.39		21.74
5108.92	81.33		19.37
5130.88	77.04		21.1
5195.68	79.54		21.2
5050.42	81.93		22.67
5101.03	80.79		22.24
5139.84	81.98		23.78
5234.31	85.94		23.27
5435.73	86.6		25.74
5633.57	87.42		26.1
5498.28	93.14		27.49
5668.13	95.76		31.41
5537.64	99.75		28.79
5442.78	97.71		26.76
5491.50	94.99		26.41
5501.20	96.41		27.05
5658.08	96.28		29.43
5686.16	100.14	32.1
5801.24	99.9		36.84
5678.40	102.87	34.22
5793.68	107.37	36.53
5866.10	115.68	40.99
6087.27	124.33	45.97
6058.70	128.44	43.6
6171.63	130.19	47.84
6385.55	148.4		51.47
6180.05	169.14	51.31
6159.65	153.98	48.47
6271.59	163.13	48.28
6365.59	165.4		46.56
6420.76	166.35	43.83
6628.97	173.73	51.17
6731.85	174.23	49.59
6884.40	177.04	49.11
6927.25	170.78	49.97
6796.18	174.01	50.07
6903.69	183.76	53.3
7189.46	201.95	57.08
7435.08	205.38	68.54
7379.99	197.36	71.62
7174.80	196.53	67.64
7233.46	179.94	64.79
7597.58	174.84	80.97
7790.04	179.86	88.42
7466.77	172.77	110.22
7350.45	162.56	99
6850.64	178.4		95.95
6717.18	190.83	107.94
6600.54	201.07	97.82
6979.58	198.95	111.64
6971.45	190.46	114.73
6411.48	186.27	117.58
6276.01	187.96	99.19
6190.56	174.99	90.19
5618.64	164.1		59.74
4595.00	131.48	44.51
4287.38	116.14	23.94
4385.35	103.43	21.29
3927.01	96.87		20.77
3495.28	93.68		25.07
3757.45	96.49		32.95
4076.75	105.22	40.05
4475.36	110.11	44.59
4396.44	118.47	40.28
4766.91	122.15	41.19
4907.38	137.35	38.14
5069.67	134.83	41.85
4983.56	138.34	43.76
5245.81	141.98	50.16
5241.07	149.45	52.94
5003.74	154.68	47.69
5075.38	145.98	51.52
5358.33	156.33	58.69
5298.80	176.28	50.44
4784.64	159.08	45.72
4579.82	151.18	43.24
4982.42	162.63	51.49
4776.39	174.2		50.43
5157.48	180.51	58.73
5305.21	185.31	65.12
5187.20	186.33	64.13




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 & 3 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=112677&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]3 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=112677&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112677&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 time3 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=kendall)
World_LeadersCommodityRio_Tinto
World_Leaders10.5680.581
Commodity0.56810.826
Rio_Tinto 0.5810.8261

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series (method=kendall) \tabularnewline
  & World_Leaders & Commodity & Rio_Tinto
 \tabularnewline
World_Leaders & 1 & 0.568 & 0.581 \tabularnewline
Commodity & 0.568 & 1 & 0.826 \tabularnewline
Rio_Tinto
 & 0.581 & 0.826 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112677&T=1

[TABLE]
[ROW][C]Correlations for all pairs of data series (method=kendall)[/C][/ROW]
[ROW][C] [/C][C]World_Leaders[/C][C]Commodity[/C][C]Rio_Tinto
[/C][/ROW]
[ROW][C]World_Leaders[/C][C]1[/C][C]0.568[/C][C]0.581[/C][/ROW]
[ROW][C]Commodity[/C][C]0.568[/C][C]1[/C][C]0.826[/C][/ROW]
[ROW][C]Rio_Tinto
[/C][C]0.581[/C][C]0.826[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112677&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112677&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)
World_LeadersCommodityRio_Tinto
World_Leaders10.5680.581
Commodity0.56810.826
Rio_Tinto 0.5810.8261







Correlations for all pairs of data series with p-values
pairPearson rSpearman rhoKendall tau
World_Leaders;Commodity0.7490.73150.5683
p-value(0)(0)(0)
World_Leaders;Rio_Tinto 0.73360.75350.5806
p-value(0)(0)(0)
Commodity;Rio_Tinto 0.85430.95560.8261
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
World_Leaders;Commodity & 0.749 & 0.7315 & 0.5683 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
World_Leaders;Rio_Tinto
 & 0.7336 & 0.7535 & 0.5806 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
Commodity;Rio_Tinto
 & 0.8543 & 0.9556 & 0.8261 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112677&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]World_Leaders;Commodity[/C][C]0.749[/C][C]0.7315[/C][C]0.5683[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]World_Leaders;Rio_Tinto
[/C][C]0.7336[/C][C]0.7535[/C][C]0.5806[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]Commodity;Rio_Tinto
[/C][C]0.8543[/C][C]0.9556[/C][C]0.8261[/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=112677&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112677&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
World_Leaders;Commodity0.7490.73150.5683
p-value(0)(0)(0)
World_Leaders;Rio_Tinto 0.73360.75350.5806
p-value(0)(0)(0)
Commodity;Rio_Tinto 0.85430.95560.8261
p-value(0)(0)(0)



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')
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')