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 computationMon, 12 Dec 2011 07:01:42 -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/12/t1323691321n4qwqipekow8q2m.htm/, Retrieved Fri, 03 May 2024 11:16:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=153928, Retrieved Fri, 03 May 2024 11:16:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact111
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Kendall tau Correlation Matrix] [Pearson Correlati...] [2011-12-12 10:39:52] [aba4febe8a2e49e81bdc61a6c01f5c21]
- R  D  [Kendall tau Correlation Matrix] [Pearson Correlati...] [2011-12-12 11:12:38] [aba4febe8a2e49e81bdc61a6c01f5c21]
-    D      [Kendall tau Correlation Matrix] [Pearson Correlati...] [2011-12-12 12:01:42] [3627de22d386f4cb93d383ef7c1ade7f] [Current]
Feedback Forum

Post a new message
Dataseries X:
6.70	10.25	3.55
6.80	10.40	3.60
6.90	10.65	3.75
7.00	10.67	3.67
7.00	10.34	3.34
7.00	10.41	3.41
7.00	10.51	3.51
7.10	10.49	3.39
7.30	10.53	3.23
7.60	10.70	3.10
7.90	10.77	2.87
8.10	11.11	3.01
8.20	11.11	2.91
8.30	10.62	2.32
8.50	11.07	2.58
8.50	10.96	2.46
8.50	10.78	2.28
8.50	10.30	1.80
8.50	10.16	1.66
8.40	9.10	0.70
8.30	8.92	0.62
8.20	8.47	0.27
8.10	7.98	-0.12
8.00	7.03	-0.97
8.10	6.91	-1.19
8.10	7.32	-0.78
8.00	6.32	-1.68
7.80	6.69	-1.11
7.60	7.23	-0.37
7.70	8.29	0.59
7.80	8.41	0.61
7.70	9.63	1.93
7.50	9.81	2.31
7.20	9.83	2.63
7.00	10.14	3.14
7.10	11.82	4.72
7.30	12.76	5.46
7.30	12.69	5.39
7.20	13.11	5.91
6.90	12.71	5.81
6.70	11.91	5.21
6.70	10.85	4.15
6.80	11.19	4.39
6.90	10.54	3.64
7.10	10.56	3.46
7.20	10.29	3.09
7.20	10.15	2.95
7.10	9.35	2.25
6.90	8.40	1.50
7.00	8.12	1.12
7.20	8.57	1.37
7.50	8.79	1.29
7.90	9.18	1.28
8.00	9.78	1.78
7.80	9.62	1.82
7.80	9.57	1.77
7.90	9.56	1.66
8.00	9.64	1.64




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

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







Correlations for all pairs of data series (method=pearson)
UnemploymentMiseryinflation
Unemployment1-0.317-0.587
Misery-0.31710.954
inflation-0.5870.9541

\begin{tabular}{lllllllll}
\hline
Correlations for all pairs of data series (method=pearson) \tabularnewline
  & Unemployment & Misery & inflation \tabularnewline
Unemployment & 1 & -0.317 & -0.587 \tabularnewline
Misery & -0.317 & 1 & 0.954 \tabularnewline
inflation & -0.587 & 0.954 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=153928&T=1

[TABLE]
[ROW][C]Correlations for all pairs of data series (method=pearson)[/C][/ROW]
[ROW][C] [/C][C]Unemployment[/C][C]Misery[/C][C]inflation[/C][/ROW]
[ROW][C]Unemployment[/C][C]1[/C][C]-0.317[/C][C]-0.587[/C][/ROW]
[ROW][C]Misery[/C][C]-0.317[/C][C]1[/C][C]0.954[/C][/ROW]
[ROW][C]inflation[/C][C]-0.587[/C][C]0.954[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=153928&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153928&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)
UnemploymentMiseryinflation
Unemployment1-0.317-0.587
Misery-0.31710.954
inflation-0.5870.9541







Correlations for all pairs of data series with p-values
pairPearson rSpearman rhoKendall tau
Unemployment;Misery-0.3166-0.2645-0.1935
p-value(0.0155)(0.0448)(0.0358)
Unemployment;inflation-0.5868-0.6281-0.4454
p-value(0)(0)(0)
Misery;inflation0.95390.89570.7548
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
Unemployment;Misery & -0.3166 & -0.2645 & -0.1935 \tabularnewline
p-value & (0.0155) & (0.0448) & (0.0358) \tabularnewline
Unemployment;inflation & -0.5868 & -0.6281 & -0.4454 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
Misery;inflation & 0.9539 & 0.8957 & 0.7548 \tabularnewline
p-value & (0) & (0) & (0) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=153928&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]Unemployment;Misery[/C][C]-0.3166[/C][C]-0.2645[/C][C]-0.1935[/C][/ROW]
[ROW][C]p-value[/C][C](0.0155)[/C][C](0.0448)[/C][C](0.0358)[/C][/ROW]
[ROW][C]Unemployment;inflation[/C][C]-0.5868[/C][C]-0.6281[/C][C]-0.4454[/C][/ROW]
[ROW][C]p-value[/C][C](0)[/C][C](0)[/C][C](0)[/C][/ROW]
[ROW][C]Misery;inflation[/C][C]0.9539[/C][C]0.8957[/C][C]0.7548[/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=153928&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153928&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
Unemployment;Misery-0.3166-0.2645-0.1935
p-value(0.0155)(0.0448)(0.0358)
Unemployment;inflation-0.5868-0.6281-0.4454
p-value(0)(0)(0)
Misery;inflation0.95390.89570.7548
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')