| Home » date » 2007 » Dec » 13 » attachments | ||||||||||||||||||||
Kendall tau matrix: probleem met output | ||||||||||||||||||||
| R Software Module: rwasp_pairs.wasp (opens new window with default values) | ||||||||||||||||||||
| Title produced by software: Kendall tau Correlation Matrix | ||||||||||||||||||||
| Date of computation: Thu, 13 Dec 2007 04:08:55 -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/Dec/13/t1197543215qdmk6odo8q09ii6.htm/, Retrieved Thu, 13 Dec 2007 11:53:35 +0100 | ||||||||||||||||||||
| User-defined keywords: | ||||||||||||||||||||
| Dataseries X: | ||||||||||||||||||||
| » Textbox « » Textfile « » CSV « | ||||||||||||||||||||
| 15 044.5 15 082.0 0.9383 98.6 14 944.2 14 772.7 0.9217 98.0 16 754.8 16 083.0 0.9095 106.8 14 254.0 14 272.5 0.8920 96.6 15 454.9 15 223.3 0.8742 100.1 15 644.8 14 897.3 0.8532 107.7 14 568.3 13 062.6 0.8607 91.5 12 520.2 12 603.8 0.9005 97.8 14 803.0 13 629.8 0.9111 107.4 15 873.2 14 421.1 0.9059 117.5 14 755.3 13 978.3 0.8883 105.6 12 875.1 12 927.9 0.8924 97.4 14 291.1 13 429.9 0.8833 99.5 14 205.3 13 470.1 0.8700 98.0 15 859.4 14 785.8 0.8758 104.3 15 258.9 14 292.0 0.8858 100.6 15 498.6 14 308.8 0.9170 101.1 15 106.5 14 013.0 0.9554 103.9 15 023.6 13 240.9 0.9922 96.9 12 083.0 12 153.4 0.9778 95.5 15 761.3 14 289.7 0.9808 108.4 16 943.0 15 669.2 0.9811 117.0 15 070.3 14 169.5 1.0014 103.8 13 659.6 14 569.8 1.0183 100.8 14 768.9 14 469.1 1.0622 110.6 14 725.1 14 264.9 1.0773 104.0 15 998.1 15 320.9 1.0807 112.6 15 370.6 14 433.5 1.0848 107.3 14 956.9 13 691.5 1.1582 98.9 15 469.7 14 194.1 1.1663 109.8 15 101.8 13 519.2 1.1372 104.9 11 703.7 11 857.9 1.1139 102.2 16 283.6 14 615.9 1.1222 123.9 16 726.5 15 643.4 1.1692 124.9 14 968.9 14 077.2 1.1702 112.7 14 861.0 14 887.5 1.2286 121.9 14 583.3 14 159.9 1.2613 100.6 15 305.8 14 643.0 1.2646 104.3 17 903.9 17 192.5 1.2262 120.4 16 379.4 15 386.1 1.1985 107.5 15 420.3 14 287.1 1.2007 102.9 17 870.5 17 526.6 1.2138 125.6 15 912.8 14 497.0 1.2266 107.5 13 866.5 14 398.3 1.2176 108.8 17 823.2 16 629.6 1.2218 128.4 17 872.0 16 670.7 1.2490 121.1 17 420.4 16 614.8 1.2991 119.5 16 704.4 16 869.2 1.3408 128.7 15 991.2 15 663.9 1.3119 108.7 16 583.6 16 359.9 1.3014 105.5 19 123.5 18 447.7 1.3201 119.8 17 838.7 16 889.0 1.2938 111.3 17 209.4 16 505.0 1.2694 110.6 18 586.5 18 320.9 1.2165 120.1 16 258.1 15 052.1 1.2037 97.5 15 141.6 15 699.8 1.2292 107.7 19 202.1 18 135.3 1.2256 127.3 17 746.5 16 768.7 1.2015 117.2 19 090.1 18 883.0 1.1786 119.8 18 040.3 19 021.0 1.1856 116.2 | ||||||||||||||||||||
| Text written by user: | ||||||||||||||||||||
| Output produced by software: | ||||||||||||||||||||
| Charts produced by software: | | Parameters: | par1 = 1 ; par2 = 1 ; par3 = 1 ; par4 = 12 ; | | 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
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 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. | |||||||||||