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(84.66 + ,100.03 + ,105.9 + ,107.25 + ,84.66 + ,99.15 + ,117.6 + ,105.80 + ,84.66 + ,97.22 + ,113.6 + ,102.90 + ,84.66 + ,95.85 + ,115.9 + ,100.00 + ,84.66 + ,96.04 + ,118.9 + ,98.55 + ,84.66 + ,108.94 + ,77.6 + ,108.70 + ,84.66 + ,110.70 + ,81.2 + ,110.14 + ,84.66 + ,110.24 + ,123.1 + ,113.04 + ,84.66 + ,109.31 + ,136.6 + ,115.94 + ,84.66 + ,107.34 + ,112.1 + ,117.39 + ,76.69 + ,107.97 + ,95.1 + ,118.84 + ,74.70 + ,109.43 + ,96.3 + ,120.29 + ,74.70 + ,108.98 + ,105.7 + ,118.84 + ,70.72 + ,107.48 + ,115 + ,115.94 + ,69.72 + ,107.31 + ,105.7 + ,114.49 + ,69.72 + ,105.57 + ,105.7 + ,110.14 + ,61.75 + ,106.86 + ,111.1 + ,110.14 + ,59.76 + ,120.00 + ,82.4 + ,120.29 + ,59.76 + ,122.19 + ,60 + ,121.74 + ,59.76 + ,121.83 + ,107.3 + ,121.74 + ,59.76 + ,119.23 + ,99.3 + ,121.74 + ,59.76 + ,115.37 + ,113.5 + ,121.74 + ,59.76 + ,116.94 + ,108.9 + ,124.64 + ,59.76 + ,118.53 + ,100.2 + ,128.99 + ,59.76 + ,118.22 + ,103.9 + ,127.54 + ,59.76 + ,117.05 + ,138.7 + ,120.29 + ,59.76 + ,114.58 + ,120.2 + ,108.70 + ,59.76 + ,113.12 + ,100.2 + ,104.35 + ,59.76 + ,114.40 + ,143.2 + ,107.25 + ,59.76 + ,125.10 + ,70.9 + ,127.54 + ,59.76 + ,128.74 + ,85.2 + ,134.78 + ,59.76 + ,129.13 + ,133 + ,134.78 + ,59.76 + ,128.86 + ,136.6 + ,126.09 + ,59.76 + ,125.24 + ,117.9 + ,118.84 + ,59.76 + ,125.51 + ,106.3 + ,120.29 + ,59.76 + ,124.54 + ,122.3 + ,123.19 + ,59.76 + ,124.22 + ,125.5 + ,124.64 + ,59.76 + ,123.19 + ,148.4 + ,123.19 + ,59.76 + ,120.80 + ,126.3 + ,118.84 + ,59.76 + ,119.61 + ,99.6 + ,117.39 + ,59.76 + ,119.94 + ,140.4 + ,114.49 + ,59.76 + ,130.84 + ,80.3 + ,124.64 + ,59.76 + ,132.56 + ,92.6 + ,126.09 + ,59.76 + ,132.42 + ,138.5 + ,126.09 + ,59.76 + ,129.02 + ,110.9 + ,123.19 + ,59.76 + ,125.50 + ,119.6 + ,121.74 + ,63.94 + ,125.875 + ,105 + ,123.19 + ,64.74 + ,125.08 + ,109 + ,126.09 + ,64.74 + ,124.38 + ,129.4 + ,126.09 + ,68.73 + ,122.21 + ,148.6 + ,124.64 + ,69.72 + ,121.03 + ,101.4 + ,123.19 + ,69.72 + ,120.73 + ,134.8 + ,120.29 + ,72.51 + ,120.77 + ,143.7 + ,115.94 + ,74.70 + ,130.59 + ,81.6 + ,118.84 + ,78.29 + ,131.91 + ,90.3 + ,117.39 + ,79.68 + ,130.67 + ,141.5 + ,117.39 + ,83.07 + ,123.86 + ,140.7 + ,115.94 + ,84.66 + ,119.24 + ,140.2 + ,114.49 + ,87.45 + ,117.46 + ,100.2 + ,114.49 + ,89.64 + ,118.16 + ,125.7 + ,115.94 + ,89.64 + ,115.69 + ,119.6 + ,115.94 + ,92.63 + ,112.07 + ,134.7 + ,114.49 + ,94.62 + ,110.85 + ,109 + ,115.94 + ,94.62 + ,107.72 + ,116.3 + ,111.59 + ,97.61 + ,105.11 + ,146.9 + ,104.35 + ,99.60 + ,117.06 + ,97.4 + ,108.70 + ,99.60 + ,119.00 + ,89.4 + ,105.80 + ,99.60 + ,114.17 + ,132.1 + ,101.45 + ,99.60 + ,111.10 + ,139.8 + ,101.45 + ,99.60 + ,107.47 + ,129 + ,101.45 + ,99.60 + ,108.40 + ,112.5 + ,104.35 + ,99.60 + ,108.96 + ,121.9 + ,105.80 + ,99.60 + ,106.98 + ,121.7 + ,102.90 + ,99.60 + ,103.84 + ,123.1 + ,98.55 + ,99.60 + ,103.33 + ,131.6 + ,92.75 + ,99.60 + ,98.93 + ,119.3 + ,88.41 + ,99.60 + ,100.66 + ,132.5 + ,94.20 + ,103.19 + ,111.37 + ,98.3 + ,111.59 + ,104.58 + ,112.47 + ,85.1 + ,114.49 + ,104.58 + ,109.17 + ,131.7 + ,108.70 + ,89.44 + ,106.69 + ,129.3 + ,100.00 + ,78.09 + ,105.78 + ,90.7 + ,95.65 + ,64.74 + ,108.89 + ,78.6 + ,100.00 + ,59.76 + ,111.27 + ,68.9 + ,111.59 + ,59.76 + ,112.27 + ,79.1 + ,115.94) + ,dim=c(4 + ,85) + ,dimnames=list(c('Belening' + ,'Nietwerkend' + ,'productie' + ,'werkloosh ') + ,1:85)) > y <- array(NA,dim=c(4,85),dimnames=list(c('Belening','Nietwerkend','productie','werkloosh '),1:85)) > 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/18kf21258122693.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/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 = -5.2608, p-value = 1.434e-07 alternative hypothesis: true tau is not equal to 0 sample estimates: tau -0.4137408 > 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/2k3or1258122693.tab") > > system("convert tmp/18kf21258122693.ps tmp/18kf21258122693.png") > > > proc.time() user system elapsed 0.522 0.204 0.585