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, 07 Dec 2018 15:06:05 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2018/Dec/07/t1544191876epgkwrw0eafvz1g.htm/, Retrieved Tue, 30 Apr 2024 07:00:23 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=315795, Retrieved Tue, 30 Apr 2024 07:00:23 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact86
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Kendall tau Correlation Matrix] [] [2018-12-07 14:06:05] [b1c103364afb3970dbcc55f58fe4e705] [Current]
Feedback Forum

Post a new message
Dataseries X:
'Middle East/Central 0.46 614.66
'Northern/Eastern Europe' 4534.37
'Africa' 0.73
'Africa' 0.52
'Latin America' 13205.1
'Latin America' 13540
'Middle East/Central 0.73 3426.39
'Latin America' NA
'Asia-Pacific' 0.93
'European Union' 51274.1
'Middle East/Central 0.75 7106.04
'Latin America' 22647.3
'Middle East/Central 0.82 24299
'Asia-Pacific' 0.56
'Latin America' 15722.8
'Northern/Eastern Europe' 6300.45
'European Union' 48053.3
'Africa' 0.48
'North America' 70626.3
'Asia-Pacific' 0.59
'Latin America' 2253.09
'Northern/Eastern Europe' 4708.85
'Africa' 0.69
'Latin America' 13237.6
'Latin America' NA
'Asia-Pacific' 0.85
'European Union' 7615.28
'Africa' 0.39
'Africa' 0.39
'Africa' 0.64
'Asia-Pacific' 0.55
'Africa' 0.5
'North America' 52145.4
'Latin America' NA
'Africa' 0.37
'Africa' 0.39
'Latin America' 14525.8
'Asia-Pacific' 0.72
'Latin America' 7305.22
'Africa' 0.5
'Africa' 0.57
'Africa' 0.42
'Latin America' 8979.96
'Africa' NA
'Northern/Eastern Europe' 14522.8
'Latin America' 5175.94
'European Union' 31454.7
'European Union' 21676.3
'European Union' 61413.6
'Africa' 0.46
'Latin America' 7088.01
'Latin America' 6085.89
'Latin America' 5192.88
'Africa' 0.69
'Latin America' 3696.33
'Africa' 0.58
'Africa' 0.39
'European Union' 17304.4
'Africa' 0.43
'Asia-Pacific' 0.72
'European Union' 50960.2
'European Union' 45430.3
'Latin America' NA
'Asia-Pacific' NA
'Africa' 0.67
'Africa' 0.44
'Middle East/Central 0.75 3710.7
'European Union' 46822.4
'Africa' 0.57
'European Union' 25987.4
'Latin America' 7410.48
'Latin America' NA
'Latin America' 3233.8
'Africa' 0.41
'Africa' 0.42
'Latin America' 3269.46
'Latin America' 749.13
'Latin America' 2269.51
'European Union' 13964.2
'Asia-Pacific' 0.6
'Asia-Pacific' 0.68
'Middle East/Central 0.76 7511.1
'Middle East/Central 0.65 5848.54
'European Union' 52853.6
'Middle East/Central 0.89 33718.9
'European Union' 38412
'Latin America' 5226.3
'Asia-Pacific' 0.89
'Middle East/Central 0.75 4615.17
'Middle East/Central 0.78 11278
'Africa' 0.54
'Asia-Pacific' NA
'Asia-Pacific' 0.89
'Middle East/Central 0.82 41830.5
'Middle East/Central 0.65 1116.37
'Asia-Pacific' 0.56
'European Union' 13732
'Middle East/Central 0.76 9143.86
'Africa' 0.48
'Africa' 0.42
'Africa' 0.74
'European Union' 14373.7
'European Union' 114665
'Northern/Eastern Europe' 5174.89
'Africa' 0.51
'Africa' 0.43
'Asia-Pacific' 0.77
'Africa' 0.41
'Latin America' NA
'Africa' 0.5
'Africa' 0.77
'Latin America' 10123.9
'Northern/Eastern Europe' 1971.03
'Asia-Pacific' 0.71
'Northern/Eastern Europe' 7251.6
'Latin America' NA
'Africa' 0.62
'Africa' 0.41
'Asia-Pacific' 0.53
'Africa' 0.62
'Asia-Pacific' NA
'Asia-Pacific' 0.54
'European Union' 53589.9
'Asia-Pacific' NA
'Asia-Pacific' 0.91
'Latin America' 1626.85
'Africa' 0.34
'Africa' 0.5
'Northern/Eastern Europe' 100172
'Middle East/Central 0.79 22622.8
'Asia-Pacific' 0.53
'Latin America' 8410.77
'Asia-Pacific' 0.5
'Latin America' 3557.31
'Latin America' 5684.73
'Asia-Pacific' 0.66
'European Union' 13769.5
'European Union' 23217.3
'Middle East/Central 0.85 99431.5
'Africa' NA
'European Union' 9213.94
'Northern/Eastern Europe' 13320.2
'Africa' 0.48
'Latin America' 12952.5
'Latin America' 7737.2
'Latin America' 6171.48
'Asia-Pacific' 0.7
'Africa' 0.55
'Middle East/Central 0.83 23593.8
'Africa' 0.46
'Northern/Eastern Europe' 6426.18
'Africa' 0.4
'Asia-Pacific' 0.91
'European Union' 18103.1
'European Union' 25040.5
'Asia-Pacific' 0.5
'Africa' NA
'Africa' 0.66
'European Union' 32008.7
'Asia-Pacific' 0.75
'Latin America' 8190.7
'Africa' 0.53
'European Union' 59381.9
'Northern/Eastern Europe' 88506.2
'Middle East/Central 0.62 NA
'Middle East/Central 0.62 836.17
'Africa' 0.51
'Asia-Pacific' 0.72
'Asia-Pacific' 0.6
'Africa' 0.47
'Asia-Pacific' 0.72
'Latin America' 18310.8
'Africa' 0.72
'Middle East/Central 0.76 10437.7
'Middle East/Central 0.68 5290.14
'Africa' 0.48
'Northern/Eastern Europe' 3589.63
'European Union' 40980.5
'Middle East/Central 0.83 40817.4
'North America' 49725
'Latin America' 14238.1
'Middle East/Central 0.67 1560.85
'Latin America' 10237.8
'Asia-Pacific' 0.66
'Asia-Pacific' NA
'Middle East/Central 0.5 1302.3
'Africa' 0.58
'Africa' 0.49





Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center
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 Outputview raw output of R engine  \tabularnewline
Computing time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \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=315795&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [ROW]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=315795&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=315795&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center
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.



Parameters (Session):
par1 = pearson ;
Parameters (R input):
par1 = pearson ;
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', ...)
}
x <- na.omit(x)
y <- t(na.omit(t(y)))
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])
print(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')