Home » date » 2007 » Nov » 22 » attachments

Kendall tau correlation Matrix

R Software Module: rwasp_pairs.wasp (opens new window with default values)
Title produced by software: Kendall tau Correlation Matrix
Date of computation: Thu, 22 Nov 2007 06:36:00 -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/22/t1195738099v5nyah5enj4fyci.htm/, Retrieved Thu, 22 Nov 2007 14:28:21 +0100
 
User-defined keywords:
W10Q3G7
 
Dataseries X:
» Textbox « » Textfile « » CSV «
513 140 373 96 87 503 132 371 86 75 471 117 354 82 74 471 114 357 92 91 476 113 363 99 101 475 110 364 101 103 470 107 363 102 106 461 103 358 100 102 455 98 357 101 105 456 98 357 100 105 517 137 380 99 100 525 148 378 97 95 523 147 376 97 96 519 139 380 97 98 509 130 379 96 99 512 128 384 92 92 519 127 392 91 84 517 123 394 87 81 510 118 392 82 72 509 114 396 89 89 501 108 392 91 96 507 111 396 90 91 569 151 419 87 88 580 159 421 89 90 578 158 420 95 98 565 148 418 85 87 547 138 410 94 100 555 137 418 94 100 562 136 426 97 104 561 133 428 99 107 555 126 430 97 105 544 120 424 96 102 537 114 423 94 98 543 116 427 100 106 594 153 441 96 97 611 162 449 98 101 613 161 452 98 100 611 149 462 94 93 594 139 455 93 94 595 135 461 94 96 591 130 461 94 96 589 127 463 97 98 584 122 462 98 102 573 117 456 95 95 567 112 455 89 85 569 113 456 89 84 621 149 472 89 82 629 157 472 90 87 628 157 471 86 77 612 147 465 92 90 595 137 459 91 90 597 132 465 95 94 593 125 468 99 97 590 123 467 98 96 580 117 463 95 93 574 114 460 96 93 573 111 462 94 93 573 112 461 98 97 620 144 476 98 100 626 150 476 98 95 620 149 471 98 97 588 134 453 102 103 566 123 443 101 102 557 116 442 92 93 561 117 444 99 99 549 111 438 101 100 532 105 427 99 97 526 102 424 102 104 511 95 416 102 102 499 93 406 101 103 555 124 431 99 100 565 130 434 98 90 542 124 418 98 90
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Kendall tau rank correlations for all pairs of data series
pairtaup-value
tau( TW , <25j )0.469234239911066.08564953985535e-09
tau( TW , Vanaf25j )0.7656891097593680
tau( TW , CV )-0.1071707013101520.193432586234783
tau( TW , AE )-0.1318704820849730.105732360984308
tau( <25j , Vanaf25j )0.2265464535453010.00506783763444885
tau( <25j , CV )-0.2290108738975560.0056202526450304
tau( <25j , AE )-0.1866578090644470.0225092851158304
tau( Vanaf25j , CV )-0.03749564696652210.649634510480416
tau( Vanaf25j , AE )-0.09352101570790170.252044848168310
tau( CV , AE )0.6904565645187432.22044604925031e-16
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/22/t1195738099v5nyah5enj4fyci/1j2131195738559.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/22/t1195738099v5nyah5enj4fyci/1j2131195738559.ps (open in new window)


 
Parameters:
 
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