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(17823.2 + ,16629.6 + ,1.2218 + ,114.1 + ,17872 + ,16670.7 + ,1.249 + ,110.3 + ,17420.4 + ,16614.8 + ,1.2991 + ,103.9 + ,16704.4 + ,16869.2 + ,1.3408 + ,101.6 + ,15991.2 + ,15663.9 + ,1.3119 + ,94.6 + ,16583.6 + ,16359.9 + ,1.3014 + ,95.9 + ,19123.5 + ,18447.7 + ,1.3201 + ,104.7 + ,17838.7 + ,16889 + ,1.2938 + ,102.8 + ,17209.4 + ,16505 + ,1.2694 + ,98.1 + ,18586.5 + ,18320.9 + ,1.2165 + ,113.9 + ,16258.1 + ,15052.1 + ,1.2037 + ,80.9 + ,15141.6 + ,15699.8 + ,1.2292 + ,95.7 + ,19202.1 + ,18135.3 + ,1.2256 + ,113.2 + ,17746.5 + ,16768.7 + ,1.2015 + ,105.9 + ,19090.1 + ,18883 + ,1.1786 + ,108.8 + ,18040.3 + ,19021 + ,1.1856 + ,102.3 + ,17515.5 + ,18101.9 + ,1.2103 + ,99 + ,17751.8 + ,17776.1 + ,1.1938 + ,100.7 + ,21072.4 + ,21489.9 + ,1.202 + ,115.5 + ,17170 + ,17065.3 + ,1.2271 + ,100.7 + ,19439.5 + ,18690 + ,1.277 + ,109.9 + ,19795.4 + ,18953.1 + ,1.265 + ,114.6 + ,17574.9 + ,16398.9 + ,1.2684 + ,85.4 + ,16165.4 + ,16895.6 + ,1.2811 + ,100.5 + ,19464.6 + ,18553 + ,1.2727 + ,114.8 + ,19932.1 + ,19270 + ,1.2611 + ,116.5 + ,19961.2 + ,19422.1 + ,1.2881 + ,112.9 + ,17343.4 + ,17579.4 + ,1.3213 + ,102 + ,18924.2 + ,18637.3 + ,1.2999 + ,106 + ,18574.1 + ,18076.7 + ,1.3074 + ,105.3 + ,21350.6 + ,20438.6 + ,1.3242 + ,118.8 + ,18594.6 + ,18075.2 + ,1.3516 + ,106.1 + ,19823.1 + ,19563 + ,1.3511 + ,109.3 + ,20844.4 + ,19899.2 + ,1.3419 + ,117.2 + ,19640.2 + ,19227.5 + ,1.3716 + ,92.5 + ,17735.4 + ,17789.6 + ,1.3622 + ,104.2 + ,19813.6 + ,19220.8 + ,1.3896 + ,112.5 + ,22160 + ,21968.9 + ,1.4227 + ,122.4 + ,20664.3 + ,21131.5 + ,1.4684 + ,113.3 + ,17877.4 + ,19484.6 + ,1.457 + ,100 + ,20906.5 + ,22168.7 + ,1.4718 + ,110.7 + ,21164.1 + ,20866.8 + ,1.4748 + ,112.8 + ,21374.4 + ,22176.2 + ,1.5527 + ,109.8 + ,22952.3 + ,23533.8 + ,1.5751 + ,117.3 + ,21343.5 + ,21479.6 + ,1.5557 + ,109.1 + ,23899.3 + ,24347.7 + ,1.5553 + ,115.9 + ,22392.9 + ,22751.6 + ,1.577 + ,96 + ,18274.1 + ,20328.3 + ,1.4975 + ,99.8 + ,22786.7 + ,23650.4 + ,1.437 + ,116.8 + ,22321.5 + ,23335.7 + ,1.3322 + ,115.7 + ,17842.2 + ,19614.9 + ,1.2732 + ,99.4 + ,16373.5 + ,18042.3 + ,1.3449 + ,94.3 + ,15993.8 + ,17282.5 + ,1.3239 + ,91 + ,16446.1 + ,16847.2 + ,1.2785 + ,93.2 + ,17729 + ,18159.5 + ,1.305 + ,103.1 + ,16643 + ,16540.9 + ,1.319 + ,94.1 + ,16196.7 + ,15952.7 + ,1.365 + ,91.8 + ,18252.1 + ,18357.8 + ,1.4016 + ,102.7 + ,17570.4 + ,16685.6 + ,1.4088 + ,82.6 + ,15836.8 + ,15799.5 + ,14268 + ,89.1) + ,dim=c(4 + ,60) + ,dimnames=list(c('INAC' + ,'EUDO' + ,'INV' + ,'UITV') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('INAC','EUDO','INV','UITV'),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/19mcu1258293880.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 = 8.5082, p-value < 2.2e-16 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.7536723 > 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/2y53t1258293880.tab") > > system("convert tmp/19mcu1258293880.ps tmp/19mcu1258293880.png") > > > proc.time() user system elapsed 0.484 0.206 0.556