R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- array(list(2150 + ,2 + ,595 + ,118.2 + ,2533 + ,2 + ,591 + ,117 + ,2058 + ,2 + ,589 + ,115.3 + ,2160 + ,2 + ,584 + ,116.5 + ,2260 + ,2 + ,573 + ,123.9 + ,2498 + ,2 + ,567 + ,121.2 + ,2695 + ,2 + ,569 + ,123.1 + ,2799 + ,2 + ,621 + ,124.4 + ,2947 + ,2 + ,629 + ,113.2 + ,2930 + ,2 + ,628 + ,119.2 + ,2318 + ,2 + ,612 + ,116 + ,2540 + ,2 + ,595 + ,121 + ,2570 + ,2 + ,597 + ,120.2 + ,2669 + ,2 + ,593 + ,90.9 + ,2450 + ,2 + ,590 + ,115.2 + ,2842 + ,2.21 + ,580 + ,117.9 + ,3440 + ,2.25 + ,574 + ,113.6 + ,2678 + ,2.25 + ,573 + ,122.7 + ,2981 + ,2.45 + ,573 + ,124.3 + ,2260 + ,2.5 + ,620 + ,110.6 + ,2844 + ,2.5 + ,626 + ,144.2 + ,2546 + ,2.64 + ,620 + ,121.5 + ,2456 + ,2.75 + ,588 + ,114.7 + ,2295 + ,2.93 + ,566 + ,119.7 + ,2379 + ,3 + ,557 + ,122.9 + ,2479 + ,3.17 + ,561 + ,120.3 + ,2057 + ,3.25 + ,549 + ,128.2 + ,2280 + ,3.39 + ,532 + ,115.4 + ,2351 + ,3.5 + ,526 + ,125 + ,2276 + ,3.5 + ,511 + ,117.7 + ,2548 + ,3.65 + ,499 + ,119.2 + ,2311 + ,3.75 + ,555 + ,118.4 + ,2201 + ,3.75 + ,565 + ,123.6 + ,2725 + ,3.9 + ,542 + ,125.6 + ,2408 + ,4 + ,527 + ,123.2 + ,2139 + ,4 + ,510 + ,119.6 + ,1898 + ,4 + ,514 + ,116.7 + ,2537 + ,4 + ,517 + ,119.1 + ,2069 + ,4 + ,508 + ,121.8 + ,2063 + ,4 + ,493 + ,122.9 + ,2526 + ,4 + ,490 + ,119.9 + ,2440 + ,4 + ,469 + ,117.4 + ,2191 + ,4 + ,478 + ,111.6 + ,2797 + ,4 + ,528 + ,137.8 + ,2074 + ,4 + ,534 + ,129.3 + ,2628 + ,4 + ,518 + ,117.4 + ,2287 + ,4.18 + ,506 + ,119.1 + ,2146 + ,4.25 + ,502 + ,111.8 + ,2430 + ,4.25 + ,516 + ,110.8 + ,2141 + ,3.97 + ,528 + ,105.2 + ,1827 + ,3.42 + ,533 + ,91.8 + ,2082 + ,2.75 + ,536 + ,92.4 + ,1788 + ,2.31 + ,537 + ,68.2 + ,1743 + ,2 + ,524 + ,73.8 + ,2245 + ,1.66 + ,536 + ,72.5 + ,1963 + ,1.31 + ,587 + ,78.1 + ,1828 + ,1.09 + ,597 + ,73.9 + ,2527 + ,1 + ,581 + ,78.1 + ,2114 + ,1 + ,564 + ,82.2 + ,2424 + ,1 + ,558 + ,81.6) + ,dim=c(4 + ,60) + ,dimnames=list(c('Bvrg' + ,'R' + ,'Ump' + ,'Tpa') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('Bvrg','R','Ump','Tpa'),1:60)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > main = 'Kendall tau Correlation Plot' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > 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', ...) + } > postscript(file="/var/www/html/rcomp/tmp/12s4q1260629305.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > pairs(t(y),diag.panel=panel.hist, upper.panel=panel.smooth, lower.panel=panel.tau, main=main) > dev.off() null device 1 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/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 [1] 4 > cor.test(y[1,],y[2,],method='kendall') Kendall's rank correlation tau data: y[1, ] and y[2, ] z = -0.8156, p-value = 0.4147 alternative hypothesis: true tau is not equal to 0 sample estimates: tau -0.07548599 > 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="/var/www/html/rcomp/tmp/2fvc21260629305.tab") > try(system("convert tmp/12s4q1260629305.ps tmp/12s4q1260629305.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.493 0.216 0.565