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 computationTue, 14 Dec 2010 19:49:28 +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/14/t1292356050pite62es94ily9b.htm/, Retrieved Thu, 02 May 2024 15:43:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=110106, Retrieved Thu, 02 May 2024 15:43:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact116
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Kendall tau Correlation Matrix] [WS10 - Pearson Co...] [2010-12-11 11:29:07] [8ef49741e164ec6343c90c7935194465]
-    D    [Kendall tau Correlation Matrix] [cha] [2010-12-14 19:49:28] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
113	14.3	15.89
110	14.2	16.93
107	15.9	20.28
103	15.3	22.52
98	15.5	23.51
98	15.1	22.59
137	15	23.51
148	12.1	24.76
147	15.8	26.08
139	16.9	25.29
130	15.1	23.38
128	13.7	25.29
127	14.8	28.42
123	14.7	31.85
118	16	30.1
114	15.4	25.45
108	15	24.95
111	15.5	26.84
151	15.1	27.52
159	11.7	27.94
158	16.3	25.23
148	16.7	26.53
138	15	27.21
137	14.9	28.53
136	14.6	30.35
133	15.3	31.21
126	17.9	32.86
120	16.4	33.2
114	15.4	35.73
116	17.9	34.53
153	15.9	36.54
162	13.9	40.1
161	17.8	40.56
149	17.9	46.14
139	17.4	42.85
135	16.7	38.22
130	16	40.18
127	16.6	42.19
122	19.1	47.56
117	17.8	47.26
112	17.2	44.03
113	18.6	49.83
149	16.3	53.35
157	15.1	58.9
157	19.2	59.64
147	17.7	56.99
137	19.1	53.2
132	18	53.24
125	17.5	57.85
123	17.8	55.69
117	21.1	55.64
114	17.2	62.52
111	19.4	64.4
112	19.8	64.65
144	17.6	67.71
150	16.2	67.21
149	19.5	59.37
134	19.9	53.26
123	20	52.42
116	17.3	55.03




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110106&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110106&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110106&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'Gwilym Jenkins' @ 72.249.127.135







Correlations for all pairs of data series (method=pearson)
werklozen_-25buitenlandse_handel_van_belgieruwe_aardolie
werklozen_-251-0.10.177
buitenlandse_handel_van_belgie-0.110.704
ruwe_aardolie0.1770.7041

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series (method=pearson) \tabularnewline
  & werklozen_-25 & buitenlandse_handel_van_belgie & ruwe_aardolie \tabularnewline
werklozen_-25 & 1 & -0.1 & 0.177 \tabularnewline
buitenlandse_handel_van_belgie & -0.1 & 1 & 0.704 \tabularnewline
ruwe_aardolie & 0.177 & 0.704 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110106&T=1

[TABLE]
[ROW][C]Correlations for all pairs of data series (method=pearson)[/C][/ROW]
[ROW][C] [/C][C]werklozen_-25[/C][C]buitenlandse_handel_van_belgie[/C][C]ruwe_aardolie[/C][/ROW]
[ROW][C]werklozen_-25[/C][C]1[/C][C]-0.1[/C][C]0.177[/C][/ROW]
[ROW][C]buitenlandse_handel_van_belgie[/C][C]-0.1[/C][C]1[/C][C]0.704[/C][/ROW]
[ROW][C]ruwe_aardolie[/C][C]0.177[/C][C]0.704[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110106&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110106&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)
werklozen_-25buitenlandse_handel_van_belgieruwe_aardolie
werklozen_-251-0.10.177
buitenlandse_handel_van_belgie-0.110.704
ruwe_aardolie0.1770.7041







Correlations for all pairs of data series with p-values
pairPearson rSpearman rhoKendall tau
werklozen_-25;buitenlandse_handel_van_belgie-0.1005-0.0435-0.0258
p-value(0.4449)(0.7413)(0.7739)
werklozen_-25;ruwe_aardolie0.17690.2120.1264
p-value(0.1764)(0.1039)(0.1566)
buitenlandse_handel_van_belgie;ruwe_aardolie0.70420.70620.4986
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
werklozen_-25;buitenlandse_handel_van_belgie & -0.1005 & -0.0435 & -0.0258 \tabularnewline
p-value & (0.4449) & (0.7413) & (0.7739) \tabularnewline
werklozen_-25;ruwe_aardolie & 0.1769 & 0.212 & 0.1264 \tabularnewline
p-value & (0.1764) & (0.1039) & (0.1566) \tabularnewline
buitenlandse_handel_van_belgie;ruwe_aardolie & 0.7042 & 0.7062 & 0.4986 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110106&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]werklozen_-25;buitenlandse_handel_van_belgie[/C][C]-0.1005[/C][C]-0.0435[/C][C]-0.0258[/C][/ROW]
[ROW][C]p-value[/C][C](0.4449)[/C][C](0.7413)[/C][C](0.7739)[/C][/ROW]
[ROW][C]werklozen_-25;ruwe_aardolie[/C][C]0.1769[/C][C]0.212[/C][C]0.1264[/C][/ROW]
[ROW][C]p-value[/C][C](0.1764)[/C][C](0.1039)[/C][C](0.1566)[/C][/ROW]
[ROW][C]buitenlandse_handel_van_belgie;ruwe_aardolie[/C][C]0.7042[/C][C]0.7062[/C][C]0.4986[/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=110106&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110106&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
werklozen_-25;buitenlandse_handel_van_belgie-0.1005-0.0435-0.0258
p-value(0.4449)(0.7413)(0.7739)
werklozen_-25;ruwe_aardolie0.17690.2120.1264
p-value(0.1764)(0.1039)(0.1566)
buitenlandse_handel_van_belgie;ruwe_aardolie0.70420.70620.4986
p-value(0)(0)(0)



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