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(33 + ,62 + ,44 + ,46 + ,39 + ,64 + ,44 + ,46 + ,45 + ,62 + ,46 + ,41 + ,46 + ,64 + ,44 + ,43 + ,45 + ,64 + ,46 + ,39 + ,45 + ,69 + ,46 + ,36 + ,49 + ,69 + ,48 + ,34 + ,50 + ,65 + ,44 + ,31 + ,54 + ,56 + ,48 + ,27 + ,59 + ,58 + ,50 + ,27 + ,58 + ,53 + ,49 + ,30 + ,56 + ,62 + ,52 + ,28 + ,48 + ,55 + ,49 + ,31 + ,50 + ,60 + ,51 + ,25 + ,52 + ,59 + ,51 + ,26 + ,53 + ,58 + ,51 + ,22 + ,55 + ,53 + ,51 + ,27 + ,43 + ,57 + ,51 + ,38 + ,42 + ,57 + ,49 + ,39 + ,38 + ,53 + ,48 + ,45 + ,41 + ,54 + ,46 + ,48 + ,41 + ,53 + ,47 + ,46 + ,39 + ,57 + ,48 + ,47 + ,34 + ,57 + ,46 + ,55 + ,27 + ,55 + ,45 + ,63 + ,15 + ,49 + ,42 + ,83 + ,14 + ,50 + ,43 + ,100 + ,31 + ,49 + ,43 + ,76 + ,41 + ,54 + ,47 + ,68 + ,43 + ,58 + ,48 + ,63 + ,46 + ,58 + ,47 + ,63 + ,42 + ,52 + ,47 + ,62 + ,45 + ,56 + ,46 + ,62 + ,45 + ,52 + ,46 + ,64 + ,40 + ,59 + ,47 + ,72 + ,35 + ,53 + ,45 + ,67 + ,36 + ,52 + ,45 + ,67 + ,38 + ,53 + ,45 + ,67 + ,39 + ,51 + ,44 + ,69 + ,32 + ,50 + ,44 + ,78 + ,24 + ,56 + ,44 + ,80 + ,21 + ,52 + ,41 + ,85 + ,12 + ,46 + ,39 + ,90 + ,29 + ,48 + ,43 + ,83 + ,36 + ,46 + ,44 + ,84 + ,31 + ,48 + ,43 + ,84 + ,28 + ,48 + ,42 + ,89 + ,30 + ,49 + ,41 + ,82 + ,38 + ,53 + ,44 + ,76 + ,27 + ,48 + ,43 + ,97 + ,40 + ,51 + ,45 + ,82 + ,40 + ,48 + ,46 + ,79 + ,44 + ,50 + ,46 + ,73 + ,47 + ,55 + ,46 + ,72 + ,45 + ,52 + ,46 + ,74 + ,42 + ,53 + ,46 + ,77 + ,38 + ,52 + ,45 + ,78 + ,46 + ,55 + ,46 + ,68 + ,37 + ,53 + ,45 + ,71 + ,41 + ,53 + ,46 + ,68 + ,40 + ,56 + ,45 + ,70 + ,33 + ,54 + ,47 + ,79 + ,34 + ,52 + ,44 + ,78 + ,36 + ,55 + ,45 + ,79 + ,36 + ,54 + ,46 + ,78 + ,38 + ,59 + ,46 + ,77 + ,42 + ,56 + ,45 + ,72 + ,35 + ,56 + ,43 + ,72 + ,25 + ,51 + ,42 + ,84 + ,24 + ,53 + ,43 + ,83 + ,22 + ,52 + ,43 + ,82 + ,27 + ,51 + ,42 + ,78 + ,17 + ,46 + ,40 + ,77 + ,30 + ,49 + ,44 + ,75 + ,30 + ,46 + ,44 + ,77 + ,34 + ,55 + ,45 + ,73 + ,37 + ,57 + ,46 + ,64 + ,36 + ,53 + ,46 + ,64 + ,33 + ,52 + ,45 + ,71 + ,33 + ,53 + ,45 + ,65 + ,33 + ,50 + ,43 + ,68 + ,37 + ,54 + ,45 + ,64 + ,40 + ,53 + ,45 + ,65 + ,35 + ,50 + ,45 + ,56 + ,37 + ,51 + ,43 + ,57 + ,43 + ,52 + ,46 + ,51 + ,42 + ,47 + ,46 + ,52 + ,33 + ,51 + ,44 + ,79 + ,39 + ,49 + ,46 + ,59 + ,40 + ,53 + ,45 + ,54 + ,37 + ,52 + ,44 + ,55 + ,44 + ,45 + ,45 + ,47 + ,42 + ,53 + ,45 + ,52 + ,43 + ,51 + ,44 + ,52 + ,40 + ,48 + ,43 + ,54 + ,30 + ,48 + ,42 + ,49 + ,30 + ,48 + ,43 + ,48 + ,31 + ,48 + ,42 + ,44 + ,18 + ,40 + ,39 + ,47 + ,24 + ,43 + ,40 + ,43 + ,22 + ,40 + ,38 + ,45 + ,26 + ,39 + ,41 + ,40 + ,28 + ,39 + ,38 + ,38 + ,23 + ,36 + ,38 + ,46 + ,17 + ,41 + ,38 + ,51 + ,12 + ,39 + ,34 + ,49 + ,9 + ,40 + ,36 + ,57 + ,19 + ,39 + ,38 + ,61 + ,21 + ,46 + ,40 + ,61 + ,18 + ,40 + ,35 + ,81 + ,18 + ,37 + ,36 + ,97 + ,15 + ,37 + ,35 + ,105 + ,24 + ,44 + ,39 + ,108 + ,18 + ,41 + ,38 + ,113 + ,19 + ,40 + ,36 + ,111 + ,30 + ,36 + ,39 + ,111 + ,33 + ,38 + ,41 + ,110 + ,35 + ,43 + ,41 + ,109 + ,36 + ,42 + ,38 + ,105 + ,47 + ,45 + ,41 + ,97 + ,46 + ,46 + ,41 + ,97) + ,dim=c(4 + ,121) + ,dimnames=list(c('Alg' + ,'Spaar' + ,'Fin' + ,'Werk') + ,1:121)) > y <- array(NA,dim=c(4,121),dimnames=list(c('Alg','Spaar','Fin','Werk'),1:121)) > 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/1mfcq1258120245.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 = 7.6061, p-value = 2.82e-14 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.4840525 > 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/2cysn1258120245.tab") > > system("convert tmp/1mfcq1258120245.ps tmp/1mfcq1258120245.png") > > > proc.time() user system elapsed 0.558 0.231 0.632