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(2350.44 + ,27 + ,36 + ,2440.25 + ,29 + ,35 + ,2408.64 + ,27 + ,37 + ,2472.81 + ,26 + ,40 + ,2407.6 + ,24 + ,41 + ,2454.62 + ,30 + ,31 + ,2448.05 + ,26 + ,34 + ,2497.84 + ,28 + ,31 + ,2645.64 + ,28 + ,33 + ,2756.76 + ,24 + ,42 + ,2849.27 + ,23 + ,41 + ,2921.44 + ,24 + ,42 + ,2981.85 + ,24 + ,41 + ,3080.58 + ,27 + ,40 + ,3106.22 + ,28 + ,35 + ,3119.31 + ,25 + ,35 + ,3061.26 + ,19 + ,47 + ,3097.31 + ,19 + ,46 + ,3161.69 + ,19 + ,45 + ,3257.16 + ,20 + ,41 + ,3277.01 + ,16 + ,40 + ,3295.32 + ,22 + ,38 + ,3363.99 + ,21 + ,40 + ,3494.17 + ,25 + ,36 + ,3667.03 + ,29 + ,27 + ,3813.06 + ,28 + ,27 + ,3917.96 + ,25 + ,34 + ,3895.51 + ,26 + ,28 + ,3801.06 + ,24 + ,31 + ,3570.12 + ,28 + ,27 + ,3701.61 + ,28 + ,28 + ,3862.27 + ,28 + ,19 + ,3970.1 + ,28 + ,20 + ,4138.52 + ,32 + ,14 + ,4199.75 + ,31 + ,15 + ,4290.89 + ,22 + ,42 + ,4443.91 + ,29 + ,22 + ,4502.64 + ,31 + ,17 + ,4356.98 + ,29 + ,18 + ,4591.27 + ,32 + ,10 + ,4696.96 + ,32 + ,15 + ,4621.4 + ,31 + ,15 + ,4562.84 + ,29 + ,17 + ,4202.52 + ,28 + ,12 + ,4296.49 + ,28 + ,11 + ,4435.23 + ,29 + ,7 + ,4105.18 + ,22 + ,10 + ,4116.68 + ,26 + ,6 + ,3844.49 + ,24 + ,8 + ,3720.98 + ,27 + ,3 + ,3674.4 + ,27 + ,1 + ,3857.62 + ,23 + ,9 + ,3801.06 + ,21 + ,14 + ,3504.37 + ,19 + ,12 + ,3032.6 + ,17 + ,20 + ,3047.03 + ,19 + ,24 + ,2962.34 + ,21 + ,24 + ,2197.82 + ,13 + ,44 + ,2014.45 + ,8 + ,60 + ,1862.83 + ,5 + ,68 + ,1905.41 + ,10 + ,71 + ,1810.99 + ,6 + ,76 + ,1670.07 + ,6 + ,74 + ,1864.44 + ,8 + ,74 + ,2052.02 + ,11 + ,73 + ,2029.6 + ,12 + ,72 + ,2070.83 + ,13 + ,68 + ,2293.41 + ,19 + ,60 + ,2443.27 + ,19 + ,60 + ,2513.17 + ,18 + ,60 + ,2466.92 + ,20 + ,58) + ,dim=c(3 + ,71) + ,dimnames=list(c('Bel' + ,'cons' + ,'werkl ') + ,1:71)) > y <- array(NA,dim=c(3,71),dimnames=list(c('Bel','cons','werkl '),1:71)) > 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/1vd8q1260881642.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 strwidth(labels, "user") : font width unknown for character 0xd 3: In text.default(x, y, txt, cex = cex, font = font) : font width unknown for character 0xd 4: In text.default(x, y, txt, cex = cex, font = font) : font width unknown for character 0xd 5: In text.default(x, y, txt, cex = cex, font = font) : font metrics unknown for character 0xd 6: 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/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] 3 > cor.test(y[1,],y[2,],method='kendall') Kendall's rank correlation tau data: y[1, ] and y[2, ] z = 6.3154, p-value = 2.695e-10 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.5244843 > 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/2um9b1260881642.tab") > > try(system("convert tmp/1vd8q1260881642.ps tmp/1vd8q1260881642.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.448 0.195 0.521