Home » date » 2007 » Nov » 28 » attachments

Kandall tau correlation matrix1

R Software Module: rwasp_pairs.wasp (opens new window with default values)
Title produced by software: Kendall tau Correlation Matrix
Date of computation: Wed, 28 Nov 2007 03:50:21 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/28/t1196246516jwaw8dwywg3cs6e.htm/, Retrieved Wed, 28 Nov 2007 11:41:58 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,2286 707,6 721,8 105,3 1,1702 655,6 836,7 102,5 1,1692 812,9 817,8 101,8 1,1222 756,2 804,3 94,7 1,1139 527,9 773,3 104,6 1,1372 883,9 789,6 100,7 1,1663 604,4 882,5 97,6 1,1582 756,0 868,9 91,3 1,0848 760,8 885,7 89,5 1,0807 666,6 880,6 106,1 1,0773 672,1 846,2 115,2 1,0622 744,8 875,4 107,1 1,0183 695,5 799,6 96,3 1,0014 755,7 946,3 87,0 0,9811 951,0 987,3 96,8 0,9808 705,9 892,4 99,8 0,9778 536,8 885,1 94,1 0,9922 877,3 937,1 90,8 0,9554 692,4 935,9 87,1 0,9170 851,7 944,2 90,6 0,8858 876,1 930,9 90,1 0,8758 836,3 874,0 83,9 0,8700 795,9 891,9 70,6 0,8833 773,9 902,2 68,4 0,8924 640,4 767,0 66,0 0,8883 812,7 912,5 66,3 0,9059 878,7 918,6 75,0 0,9111 686,0 713,4 90,5 0,9005 538,9 849,9 91,0 0,8607 885,6 875,9 88,5 0,8532 824,3 1010,9 95,1 0,8742 829,8 1049,2 97,2 0,8920 697,7 900,5 92,1 0,9095 911,6 1111,6 90,0 0,9217 910,6 898,2 96,4 0,9383 774,7 1034,3 90,8 0,8973 811,3 996,7 90,6 0,8564 886,6 1188,9 114,2 0,8552 939,6 1092,5 111,5 0,8721 1221,8 952,0 113,4 0,9041 626,6 959,1 103,8 0,9397 944,2 846,1 99,3 0,9492 655,4 903,0 103,4 0,9060 887,6 1089,5 96,9 0,9470 685,5 879,9 83,3 0,9643 1031,7 1057,0 96,3 0,9834 752,5 932,6 95,0 1,0137 681,6 745,5 88,6 1,0110 640,0 817,2 87,6 1,0338 648,5 808,3 85,0 1,0706 766,7 832,9 78,2 1,0501 692,8 801,2 80,7 1,0604 495,1 773,1 71,8 1,0353 860,1 710,8 66,6 1,0378 722,0 820,4 58,5 1,0628 633,0 814,9 57,4 1,0704 640,4 833,5 56,1 1,0883 777,6 864,3 46,9 1,1208 619,8 844,9 38,4 1,1608 544,5 733,6 40,3
 
Text written by user:
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


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


Kendall tau rank correlations for all pairs of data series
pairtaup-value
tau( USD , import )-0.291042679039090.00102091102634099
tau( USD , export )-0.4033898305084755.26752700245975e-06
tau( USD , aardolie )-0.02883800867672750.744958435870249
tau( import , export )0.3735518657181332.48788200780670e-05
tau( import , aardolie )0.1357466280485780.125812099346807
tau( export , aardolie )0.1984733538339480.0251696255083149
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196246516jwaw8dwywg3cs6e/1o1oc1196247018.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196246516jwaw8dwywg3cs6e/1o1oc1196247018.ps (open in new window)


 
Parameters:
par1 = 1 ;
 
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='kendall')
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')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Kendall tau rank correlations for all pairs of data series',3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'pair',1,TRUE)
a<-table.element(a,'tau',1,TRUE)
a<-table.element(a,'p-value',1,TRUE)
a<-table.row.end(a)
n <- length(y[,1])
n
cor.test(y[1,],y[2,],method='kendall')
for (i in 1:(n-1))
{
for (j in (i+1):n)
{
a<-table.row.start(a)
dum <- paste('tau(',dimnames(t(x))[[2]][i])
dum <- paste(dum,',')
dum <- paste(dum,dimnames(t(x))[[2]][j])
dum <- paste(dum,')')
a<-table.element(a,dum,header=TRUE)
r <- cor.test(y[i,],y[j,],method='kendall')
a<-table.element(a,r$estimate)
a<-table.element(a,r$p.value)
a<-table.row.end(a)
}
}
a<-table.end(a)
table.save(a,file='mytable.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by