R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(101 + ,108.2 + ,108.5 + ,101 + ,100.3 + ,108.8 + ,112.3 + ,101 + ,100.1 + ,110.2 + ,116.6 + ,98.7 + ,99.8 + ,109.5 + ,115.5 + ,96.4 + ,99.9 + ,109.5 + ,120.1 + ,95.6 + ,99.9 + ,116 + ,132.9 + ,95.4 + ,100.2 + ,111.2 + ,128.1 + ,98.7 + ,99.7 + ,112.1 + ,129.3 + ,98.7 + ,100.4 + ,114 + ,132.5 + ,98.7 + ,100.9 + ,119.1 + ,131 + ,99.3 + ,101.3 + ,114.1 + ,124.9 + ,99.5 + ,101.4 + ,115.1 + ,120.8 + ,99.6 + ,101.3 + ,115.4 + ,122 + ,100.8 + ,100.9 + ,110.8 + ,122.1 + ,100.8 + ,100.9 + ,116 + ,127.4 + ,100.8 + ,100.9 + ,119.2 + ,135.2 + ,101 + ,101.1 + ,126.5 + ,137.3 + ,101.6 + ,101.1 + ,127.8 + ,135 + ,102.3 + ,101.3 + ,131.3 + ,136 + ,102.3 + ,101.8 + ,140.3 + ,138.4 + ,102.3 + ,102.9 + ,137.3 + ,134.7 + ,102.3 + ,103.2 + ,143 + ,138.4 + ,102.4 + ,103.3 + ,134.5 + ,133.9 + ,102.4 + ,104.5 + ,139.9 + ,133.6 + ,102.4 + ,105 + ,159.3 + ,141.2 + ,102.4 + ,104.9 + ,170.4 + ,151.8 + ,102.4 + ,104.9 + ,175 + ,155.4 + ,102.4 + ,105.4 + ,175.8 + ,156.6 + ,102.4 + ,106 + ,180.9 + ,161.6 + ,101.6 + ,105.7 + ,180.3 + ,160.7 + ,102.2 + ,105.9 + ,169.6 + ,156 + ,102.2 + ,106.2 + ,172.3 + ,159.5 + ,102.2 + ,106.4 + ,184.8 + ,168.7 + ,102.2 + ,106.9 + ,177.7 + ,169.9 + ,102.2 + ,107.3 + ,184.6 + ,169.9 + ,102.2 + ,107.9 + ,211.4 + ,185.9 + ,102.2 + ,109.2 + ,215.3 + ,190.8 + ,102.2 + ,110.2 + ,215.9 + ,195.8 + ,102.2 + ,110.2 + ,244.7 + ,211.9 + ,102.2 + ,110.5 + ,259.3 + ,227.1 + ,102.2 + ,110.6 + ,289 + ,251.3 + ,102.2 + ,110.8 + ,310.9 + ,256.7 + ,102.2 + ,111.3 + ,321 + ,251.9 + ,102.2 + ,111.1 + ,315.1 + ,251.2 + ,102.2 + ,111.2 + ,333.2 + ,270.3 + ,102.2 + ,111.2 + ,314.1 + ,267.2 + ,102.2 + ,111.1 + ,284.7 + ,243 + ,102.2 + ,111.5 + ,273.9 + ,229.9 + ,102.2 + ,112.1 + ,216 + ,187.2 + ,102.1 + ,111.4 + ,196.4 + ,178.2 + ,102.1 + ,110.4 + ,190.9 + ,175.2 + ,102.1 + ,110 + ,206.4 + ,192.4 + ,102.1 + ,110.4 + ,196.3 + ,187 + ,100.7 + ,110 + ,199.5 + ,184 + ,100.7 + ,110 + ,198.9 + ,194.1 + ,100.7 + ,109.3 + ,214.4 + ,212.7 + ,100.7 + ,109.7 + ,214.2 + ,217.5 + ,100.7 + ,109.6 + ,187.6 + ,200.5 + ,100.7 + ,109.6 + ,180.6 + ,205.9 + ,100.7 + ,109.4 + ,172.2 + ,196.5 + ,100.7) + ,dim=c(4 + ,60) + ,dimnames=list(c('AFPT' + ,'PIDG' + ,'PIDT' + ,'AFPD ') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('AFPT','PIDG','PIDT','AFPD '),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/freestat/rcomp/tmp/128681257935822.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) Warning messages: 1: In strwidth(labels, "user") : font width unknown for character 0xd 2: In text.default(x, y, txt, cex = cex, font = font) : font width unknown for character 0xd 3: In text.default(x, y, txt, cex = cex, font = font) : font metrics unknown for character 0xd > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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 = 9.1125, p-value < 2.2e-16 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.8118355 > 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/freestat/rcomp/tmp/2nxma1257935822.tab") > > system("convert tmp/128681257935822.ps tmp/128681257935822.png") > > > proc.time() user system elapsed 0.709 0.292 0.874