R version 2.6.0 (2007-10-03) Copyright (C) 2007 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(88.74 + ,88.95 + ,89.59 + ,0.42 + ,88.92 + ,88.81 + ,89.61 + ,0.74 + ,88.77 + ,88.90 + ,89.36 + ,1.02 + ,89.17 + ,90.15 + ,89.53 + ,1.51 + ,89.61 + ,90.92 + ,90.17 + ,1.86 + ,89.52 + ,90.78 + ,89.97 + ,1.59 + ,89.74 + ,90.81 + ,89.98 + ,1.03 + ,89.40 + ,89.46 + ,89.92 + ,0.44 + ,89.36 + ,89.22 + ,90.07 + ,0.82 + ,89.38 + ,88.89 + ,90.13 + ,0.86 + ,89.36 + ,89.41 + ,90.08 + ,0.57 + ,89.29 + ,89.59 + ,89.76 + ,0.59 + ,89.59 + ,90.25 + ,89.78 + ,0.95 + ,89.79 + ,90.20 + ,89.81 + ,0.98 + ,89.86 + ,90.27 + ,90.08 + ,1.23 + ,90.21 + ,90.71 + ,90.62 + ,1.17 + ,90.37 + ,91.18 + ,90.68 + ,0.84 + ,90.19 + ,90.66 + ,90.49 + ,0.74 + ,90.33 + ,89.72 + ,90.96 + ,0.65 + ,90.22 + ,88.72 + ,91.28 + ,0.91 + ,90.42 + ,88.91 + ,91.58 + ,1.19 + ,90.54 + ,89.15 + ,91.72 + ,1.3 + ,90.73 + ,89.15 + ,92 + ,1.53 + ,91.02 + ,89.08 + ,92.57 + ,1.94 + ,91.19 + ,89.28 + ,92.58 + ,1.79 + ,91.53 + ,89.47 + ,93.15 + ,1.95 + ,91.88 + ,89.53 + ,93.7 + ,2.26 + ,92.06 + ,90.72 + ,93.34 + ,2.04 + ,92.32 + ,90.91 + ,93.93 + ,2.16 + ,92.67 + ,91.38 + ,94.41 + ,2.75 + ,92.85 + ,91.49 + ,94.3 + ,2.79 + ,92.82 + ,90.90 + ,94.44 + ,2.88 + ,93.46 + ,90.93 + ,96.09 + ,3.36 + ,93.23 + ,90.57 + ,95.99 + ,2.97 + ,93.54 + ,91.28 + ,96.23 + ,3.1 + ,93.29 + ,90.83 + ,95.64 + ,2.49 + ,93.20 + ,91.50 + ,94.88 + ,2.2 + ,93.60 + ,91.58 + ,95.48 + ,2.25 + ,93.81 + ,92.49 + ,95.52 + ,2.09 + ,94.62 + ,94.16 + ,96.18 + ,2.79 + ,95.22 + ,95.46 + ,96.82 + ,3.14 + ,95.38 + ,95.80 + ,96.81 + ,2.93 + ,95.31 + ,95.32 + ,96.25 + ,2.65 + ,95.30 + ,95.41 + ,96.24 + ,2.67 + ,95.57 + ,95.35 + ,96.95 + ,2.26 + ,95.42 + ,95.68 + ,96.25 + ,2.35 + ,95.53 + ,95.59 + ,96.04 + ,2.13 + ,95.33 + ,94.96 + ,95.78 + ,2.18 + ,95.90 + ,96.92 + ,95.86 + ,2.90 + ,96.06 + ,96.06 + ,96.02 + ,2.63 + ,96.31 + ,96.59 + ,96.34 + ,2.67 + ,96.34 + ,96.67 + ,96.84 + ,1.81 + ,96.49 + ,97.27 + ,96.73 + ,1.33 + ,96.22 + ,96.38 + ,96.34 + ,0.88 + ,96.53 + ,96.47 + ,96.60 + ,1.28 + ,96.50 + ,96.05 + ,96.64 + ,1.26 + ,96.77 + ,96.76 + ,97.20 + ,1.26 + ,96.66 + ,96.51 + ,97.50 + ,1.29 + ,96.58 + ,96.55 + ,96.99 + ,1.10 + ,96.63 + ,95.97 + ,97.08 + ,1.37 + ,97.06 + ,97.00 + ,97.55 + ,1.21 + ,97.73 + ,97.46 + ,98.42 + ,1.74 + ,98.01 + ,97.90 + ,98.78 + ,1.76 + ,97.76 + ,98.42 + ,97.49 + ,1.48 + ,97.49 + ,98.54 + ,96.99 + ,1.04 + ,97.77 + ,99.00 + ,97.16 + ,1.62 + ,97.96 + ,98.94 + ,97.29 + ,1.49 + ,98.23 + ,99.02 + ,97.80 + ,1.79 + ,98.51 + ,100.07 + ,98.12 + ,1.80 + ,98.19 + ,98.72 + ,98.03 + ,1.58 + ,98.37 + ,98.73 + ,98.11 + ,1.86 + ,98.31 + ,98.04 + ,98.07 + ,1.74 + ,98.60 + ,99.08 + ,98.21 + ,1.59 + ,98.97 + ,99.22 + ,98.48 + ,1.26 + ,99.11 + ,99.57 + ,98.83 + ,1.13 + ,99.64 + ,100.44 + ,99.20 + ,1.92 + ,100.03 + ,100.84 + ,99.88 + ,2.61 + ,99.98 + ,100.75 + ,99.71 + ,2.26 + ,100.32 + ,100.49 + ,100.03 + ,2.41 + ,100.44 + ,99.98 + ,100.60 + ,2.26 + ,100.51 + ,99.96 + ,100.85 + ,2.03 + ,101.00 + ,99.76 + ,101.96 + ,2.86 + ,100.88 + ,100.11 + ,101.40 + ,2.55 + ,100.55 + ,99.79 + ,100.81 + ,2.27 + ,100.83 + ,100.29 + ,100.66 + ,2.26 + ,101.51 + ,101.12 + ,101.55 + ,2.57 + ,102.16 + ,102.65 + ,102.23 + ,3.07 + ,102.39 + ,102.71 + ,102.90 + ,2.76 + ,102.54 + ,103.39 + ,102.68 + ,2.51 + ,102.85 + ,102.80 + ,103.41 + ,2.87 + ,103.47 + ,102.07 + ,104.62 + ,3.14 + ,103.57 + ,102.15 + ,104.93 + ,3.11 + ,103.69 + ,101.21 + ,105.88 + ,3.16 + ,103.50 + ,101.27 + ,105.18 + ,2.47 + ,103.47 + ,101.86 + ,104.54 + ,2.57 + ,103.45 + ,101.65 + ,104.58 + ,2.89 + ,103.48 + ,101.94 + ,104.34 + ,2.63 + ,103.93 + ,102.62 + ,104.66 + ,2.38 + ,103.89 + ,102.71 + ,104.73 + ,1.69 + ,104.40 + ,103.39 + ,105.44 + ,1.96 + ,104.79 + ,104.51 + ,105.72 + ,2.19 + ,104.77 + ,104.09 + ,105.68 + ,1.87 + ,105.13 + ,104.29 + ,105.90 + ,1.60 + ,105.26 + ,104.57 + ,105.97 + ,1.63 + ,104.96 + ,105.39 + ,105.21 + ,1.22 + ,104.75 + ,105.15 + ,104.75 + ,1.21 + ,105.01 + ,106.13 + ,104.89 + ,1.49 + ,105.15 + ,105.46 + ,105.26 + ,1.64 + ,105.20 + ,106.47 + ,104.84 + ,1.66 + ,105.77 + ,106.62 + ,105.47 + ,1.77 + ,105.78 + ,106.52 + ,105.40 + ,1.82 + ,106.26 + ,108.04 + ,105.73 + ,1.78 + ,106.13 + ,107.15 + ,105.72 + ,1.28 + ,106.12 + ,107.32 + ,105.63 + ,1.29 + ,106.57 + ,107.76 + ,105.97 + ,1.37 + ,106.44 + ,107.26 + ,105.92 + ,1.12 + ,106.54 + ,107.89 + ,106.32 + ,1.51) + ,dim=c(4 + ,117) + ,dimnames=list(c('1' + ,'2' + ,'3' + ,'4 ') + ,1:117)) > y <- array(NA,dim=c(4,117),dimnames=list(c('1','2','3','4 '),1:117)) > 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: Wessa P., (2007), Multivariate Correlation Matrix (v1.0.3) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_pairs.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > 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/16a1y1196027768.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 4: In text.default(x, y, txt, cex = cex, font = font) : font width unknown for character 0xd > dev.off() null device 1 > 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 = 14.2355, p-value < 2.2e-16 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.890838 > 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/25n4y1196027768.tab") > > system("convert tmp/16a1y1196027768.ps tmp/16a1y1196027768.png") > > > proc.time() user system elapsed 0.808 0.245 0.884