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(126.2 + ,111.2 + ,88.8 + ,95.1 + ,127.0 + ,116.7 + ,64.6 + ,97.0 + ,127.1 + ,114.8 + ,50.0 + ,112.7 + ,123.6 + ,100.0 + ,94.1 + ,102.9 + ,125.0 + ,98.8 + ,120.8 + ,97.4 + ,134.7 + ,106.3 + ,82.2 + ,111.4 + ,140.7 + ,119.5 + ,86.4 + ,87.4 + ,137.9 + ,120.7 + ,78.5 + ,96.8 + ,142.1 + ,121.1 + ,60.4 + ,114.1 + ,137.5 + ,112.4 + ,96.3 + ,110.3 + ,136.4 + ,108.2 + ,82.3 + ,103.9 + ,140.7 + ,113.6 + ,91.2 + ,101.6 + ,120.0 + ,106.7 + ,126.3 + ,94.6 + ,123.8 + ,114.3 + ,131.8 + ,95.9 + ,132.2 + ,117.3 + ,135.8 + ,104.7 + ,136.4 + ,109.6 + ,135.3 + ,102.8 + ,144.2 + ,109.9 + ,116.2 + ,98.1 + ,144.9 + ,112.5 + ,104.4 + ,113.9 + ,138.9 + ,116.1 + ,112.5 + ,80.9 + ,129.3 + ,112.0 + ,108.0 + ,95.7 + ,133.3 + ,113.3 + ,94.0 + ,113.2 + ,137.5 + ,107.9 + ,83.2 + ,105.9 + ,140.0 + ,108.2 + ,82.9 + ,108.8 + ,146.3 + ,114.8 + ,116.1 + ,102.3 + ,124.6 + ,105.6 + ,146.9 + ,99.0 + ,130.2 + ,111.9 + ,122.1 + ,100.7 + ,139.0 + ,113.6 + ,74.8 + ,115.5 + ,149.1 + ,108.4 + ,96.1 + ,100.7 + ,151.9 + ,111.1 + ,101.4 + ,109.9 + ,149.0 + ,112.5 + ,68.0 + ,114.6 + ,127.8 + ,112.6 + ,57.3 + ,85.4 + ,113.8 + ,108.7 + ,56.6 + ,100.5 + ,117.5 + ,108.9 + ,36.3 + ,114.8 + ,123.2 + ,104.5 + ,40.7 + ,116.5 + ,127.3 + ,105.9 + ,48.1 + ,112.9 + ,131.5 + ,111.1 + ,65.9 + ,102.0 + ,110.8 + ,102.2 + ,92.7 + ,106.0 + ,112.7 + ,108.3 + ,90.8 + ,105.3 + ,116.9 + ,112.3 + ,80.5 + ,118.8 + ,127.3 + ,110.8 + ,87.3 + ,106.1 + ,130.8 + ,108.6 + ,59.3 + ,109.3 + ,130.6 + ,103.8 + ,46.9 + ,117.2 + ,124.1 + ,96.6 + ,49.1 + ,92.5 + ,113.8 + ,88.0 + ,38.9 + ,104.2 + ,112.3 + ,85.6 + ,44.9 + ,112.5 + ,112.5 + ,88.8 + ,75.4 + ,122.4 + ,112.7 + ,92.9 + ,94.8 + ,113.3 + ,120.4 + ,98.8 + ,124.1 + ,100.0 + ,104.6 + ,88.8 + ,193.3 + ,110.7 + ,107.9 + ,90.5 + ,186.7 + ,112.8 + ,108.5 + ,87.7 + ,194.2 + ,109.8 + ,110.9 + ,81.9 + ,203.4 + ,117.3 + ,111.5 + ,80.2 + ,241.2 + ,109.1 + ,124.5 + ,86.3 + ,210.9 + ,115.9 + ,133.3 + ,94.3 + ,211.8 + ,96.0 + ,125.9 + ,94.6 + ,187.2 + ,99.8 + ,121.1 + ,92.2 + ,162.5 + ,116.8 + ,108.9 + ,88.8 + ,158.9 + ,115.7 + ,105.5 + ,88.2 + ,101.3 + ,99.4 + ,114.8 + ,96.3 + ,105.6 + ,94.3) + ,dim=c(4 + ,60) + ,dimnames=list(c('WLMan' + ,'WLVrouw' + ,'Infl' + ,'Prod') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('WLMan','WLVrouw','Infl','Prod'),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/1m1a41258134310.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 = 5.691, p-value = 1.263e-08 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.506243 > 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/2vt3w1258134310.tab") > > system("convert tmp/1m1a41258134310.ps tmp/1m1a41258134310.png") > > > proc.time() user system elapsed 0.495 0.216 0.566