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(0.79934054945358 + ,0.30102999566398 + ,0.65321251377534 + ,0 + ,0.81954393554187 + ,1.6232492903979 + ,0.47712125471966 + ,0 + ,0.47712125471966 + ,0.32221929473392 + ,0.25527250510331 + ,1.83884909073726 + ,3.40602894496362 + ,3.66304097489397 + ,2.79518458968242 + ,0.47712125471966 + ,0.69897000433602 + ,0.60205999132796 + ,0.95904139232109 + ,-0.15490195998574 + ,1.43136376415899 + ,1.02325245963371 + ,2.25406445291434 + ,2.25527250510331 + ,0.60205999132796 + ,0.60205999132796 + ,0.60205999132796 + ,1.19865708695442 + ,0.5910646070265 + ,1.27875360095283 + ,-1.69897000433602 + ,-0.52287874528034 + ,1.54406804435028 + ,0 + ,0 + ,0 + ,0.7160033436348 + ,0 + ,1.48287358360875 + ,2.20411998265592 + ,2.22788670461367 + ,2.59328606702046 + ,0.60205999132796 + ,0.69897000433602 + ,0.60205999132796 + ,1.03742649794062 + ,0.55630250076729 + ,1.44715803134222 + ,0.51851393987789 + ,1.40823996531185 + ,1.79934054945358 + ,0 + ,0.30102999566398 + ,0 + ,0.91907809237607 + ,0.14612803567824 + ,1.69897000433602 + ,1.71733758272386 + ,2.64345267648619 + ,2.36172783601759 + ,0 + ,0 + ,0 + ,1.04139268515823 + ,0.17609125905568 + ,0.84509804001426 + ,-0.36653154442041 + ,0.80617997398389 + ,2.04921802267018 + ,0.69897000433602 + ,0.60205999132796 + ,0.60205999132796 + ,0.50514997831991 + ,-0.15490195998574 + ,1.47712125471966 + ,2.66745295288995 + ,2.62634036737504 + ,2.44870631990508 + ,0.69897000433602 + ,0.69897000433602 + ,0.69897000433602 + ,0.79934054945358 + ,0.32221929473392 + ,0.54406804435028 + ,-1.09691001300806 + ,0.079181246047625 + ,1.6232492903979 + ,0 + ,0 + ,0 + ,0.81954393554187 + ,0.61278385671974 + ,0.77815125038364 + ,-0.10237290870956 + ,0.54406804435028 + ,1.6232492903979 + ,0.30102999566398 + ,0.30102999566398 + ,0.30102999566398 + ,0.97772360528885 + ,0.079181246047625 + ,1.01703333929878 + ,-0.69897000433602 + ,0.69897000433602 + ,2.07918124604762 + ,0.30102999566398 + ,0.30102999566398 + ,0.30102999566398 + ,0.51851393987789 + ,-0.30102999566398 + ,1.30102999566398 + ,1.44185217577329 + ,2.06069784035361 + ,2.17026171539496 + ,0.69897000433602 + ,0.69897000433602 + ,0.69897000433602 + ,1.04139268515823 + ,0.53147891704226 + ,0.5910646070265 + ,-0.92081875395238 + ,0 + ,1.20411998265592 + ,0.47712125471966 + ,0 + ,0.30102999566398 + ,0.67209785793572 + ,0.17609125905568 + ,1.61278385671974 + ,1.92941892571429 + ,2.51188336097887 + ,2.49136169383427 + ,0 + ,0.47712125471966 + ,0 + ,1.01703333929878 + ,0.53147891704226 + ,0.95424250943932 + ,-1 + ,0.60205999132796 + ,1.44715803134222 + ,0.69897000433602 + ,0 + ,0.47712125471966 + ,0.86923171973098 + ,-0.096910013008056 + ,0.88081359228079 + ,0.01703333929878 + ,0.74036268949424 + ,1.83250891270624 + ,0.69897000433602 + ,0.47712125471966 + ,0.60205999132796 + ,0.32221929473392 + ,-0.096910013008056 + ,1.66275783168157 + ,2.71683772329952 + ,2.81624129999178 + ,2.52633927738984 + ,0.69897000433602 + ,0.69897000433602 + ,0.69897000433602 + ,1.25285303097989 + ,0.30102999566398 + ,1.38021124171161 + ,-2 + ,-0.60205999132796 + ,1.69897000433602 + ,0 + ,0 + ,0 + ,0.78532983501077 + ,0.27875360095283 + ,2 + ,1.79239168949825 + ,3.12057393120585 + ,2.42651126136458 + ,0 + ,0 + ,0 + ,1.07554696139253 + ,0.11394335230684 + ,0.50514997831991 + ,-1.69897000433602 + ,-0.39794000867204 + ,1.27875360095283 + ,0.60205999132796 + ,0 + ,0.47712125471966 + ,1.13987908640124 + ,0.7481880270062 + ,0.69897000433602 + ,0.23044892137827 + ,0.79934054945358 + ,1.07918124604762 + ,0.30102999566398 + ,0 + ,0 + ,1.15533603746506 + ,0.49136169383427 + ,0.81291335664286 + ,0.54406804435028 + ,1.03342375548695 + ,2.07918124604762 + ,0.30102999566398 + ,0 + ,0 + ,1.18184358794477 + ,0.25527250510331 + ,1.07918124604762 + ,-0.31875876262441 + ,1.19033169817029 + ,2.14612803567824 + ,0.30102999566398 + ,0.30102999566398 + ,0.30102999566398 + ,1 + ,-0.045757490560675 + ,1.30535136944662 + ,1 + ,2.06069784035361 + ,2.23044892137827 + ,0.60205999132796 + ,0.60205999132796 + ,0.60205999132796 + ,1.07554696139253 + ,0.25527250510331 + ,1.11394335230684 + ,0.20951501454263 + ,1.05690485133647 + ,1.23044892137827 + ,0.30102999566398 + ,0 + ,0.30102999566398 + ,0.81291335664286 + ,0.27875360095283 + ,1.43136376415899 + ,2.28330122870355 + ,2.25527250510331 + ,2.06069784035361 + ,0.60205999132796 + ,0.60205999132796 + ,0.60205999132796 + ,0.8750612633917 + ,-0.045757490560675 + ,1.25527250510331 + ,0.39794000867204 + ,1.08278537031645 + ,1.49136169383427 + ,0.69897000433602 + ,0.69897000433602 + ,0.69897000433602 + ,1.02530586526477 + ,0.41497334797082 + ,0.67209785793572 + ,-0.55284196865778 + ,0.27875360095283 + ,1.32221929473392 + ,0.47712125471966 + ,0 + ,0.47712125471966 + ,0.86923171973098 + ,0.38021124171161 + ,0.99122607569249 + ,0.62736585659273 + ,1.70243053644553 + ,1.7160033436348 + ,0 + ,0 + ,0 + ,0.92427928606188 + ,0.079181246047625 + ,1.46239799789896 + ,0.83250891270624 + ,2.25285303097989 + ,2.2148438480477 + ,0.30102999566398 + ,0.47712125471966 + ,0.30102999566398 + ,0.75587485567249 + ,-0.045757490560675 + ,0.84509804001426 + ,-0.1249387366083 + ,1.0899051114394 + ,2.35218251811136 + ,0.30102999566398 + ,0.30102999566398 + ,0.30102999566398 + ,0.69019608002851 + ,-0.30102999566398 + ,0.77815125038364 + ,0.55630250076729 + ,1.32221929473392 + ,2.35218251811136 + ,0.47712125471966 + ,0.30102999566398 + ,0.47712125471966 + ,0.50514997831991 + ,-0.22184874961636 + ,1.30102999566398 + ,1.74429298312268 + ,2.24303804868629 + ,2.17897694729317 + ,0.69897000433602 + ,0.69897000433602 + ,0.69897000433602 + ,1.04139268515823 + ,0.36172783601759 + ,0.65321251377534 + ,-0.045757490560675 + ,0.41497334797082 + ,1.77815125038364 + ,0.30102999566398 + ,0 + ,0.30102999566398 + ,0.69019608002851 + ,-0.30102999566398 + ,0.8750612633917 + ,0.30102999566398 + ,1.0899051114394 + ,2.30102999566398 + ,0.47712125471966 + ,0 + ,0.47712125471966 + ,1.12057393120585 + ,0.41497334797082 + ,0.36172783601759 + ,-1 + ,0.39794000867204 + ,1.66275783168157 + ,0.47712125471966 + ,0.30102999566398 + ,0.30102999566398 + ,0.98677173426624 + ,-0.22184874961636 + ,1.38021124171161 + ,0.6222140229663 + ,1.76342799356294 + ,2.32221929473392 + ,0.60205999132796 + ,0.47712125471966 + ,0.60205999132796 + ,1.10720996964787 + ,0.81954393554187 + ,0.47712125471966 + ,0.54406804435028 + ,0.5910646070265 + ,1.14612803567824 + ,0.30102999566398 + ,0 + ,0) + ,dim=c(9 + ,39) + ,dimnames=list(c('logSWS' + ,'logPS' + ,'logL' + ,'logWb' + ,'logWbr' + ,'logtg' + ,'logP' + ,'logS' + ,'logD') + ,1:39)) > y <- array(NA,dim=c(9,39),dimnames=list(c('logSWS','logPS','logL','logWb','logWbr','logtg','logP','logS','logD'),1:39)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'kendall' > main = 'Correlation Matrix' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, 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: > #Technical 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=par1) + 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/1w1oh1292595541.ps",horizontal=F,onefile=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) There were 36 warnings (use warnings() to see them) > 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") > > n <- length(y[,1]) > n [1] 9 > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,paste('Correlations for all pairs of data series (method=',par1,')',sep=''),n+1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,' ',header=TRUE) > for (i in 1:n) { + a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) + } > a<-table.row.end(a) > for (i in 1:n) { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) + for (j in 1:n) { + r <- cor.test(y[i,],y[j,],method=par1) + a<-table.element(a,round(r$estimate,3)) + } + a<-table.row.end(a) + } There were 50 or more warnings (use warnings() to see the first 50) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/202m51292595541.tab") > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Correlations for all pairs of data series with p-values',4,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'pair',1,TRUE) > a<-table.element(a,'Pearson r',1,TRUE) > a<-table.element(a,'Spearman rho',1,TRUE) > a<-table.element(a,'Kendall tau',1,TRUE) > a<-table.row.end(a) > cor.test(y[1,],y[2,],method=par1) Kendall's rank correlation tau data: y[1, ] and y[2, ] z = 3.6733, p-value = 0.0002395 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.4165028 Warning message: In cor.test.default(y[1, ], y[2, ], method = par1) : Cannot compute exact p-value with ties > for (i in 1:(n-1)) + { + for (j in (i+1):n) + { + a<-table.row.start(a) + dum <- paste(dimnames(t(x))[[2]][i],';',dimnames(t(x))[[2]][j],sep='') + a<-table.element(a,dum,header=TRUE) + rp <- cor.test(y[i,],y[j,],method='pearson') + a<-table.element(a,round(rp$estimate,4)) + rs <- cor.test(y[i,],y[j,],method='spearman') + a<-table.element(a,round(rs$estimate,4)) + rk <- cor.test(y[i,],y[j,],method='kendall') + a<-table.element(a,round(rk$estimate,4)) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'p-value',header=T) + a<-table.element(a,paste('(',round(rp$p.value,4),')',sep='')) + a<-table.element(a,paste('(',round(rs$p.value,4),')',sep='')) + a<-table.element(a,paste('(',round(rk$p.value,4),')',sep='')) + a<-table.row.end(a) + } + } There were 50 or more warnings (use warnings() to see the first 50) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/3wu2v1292595541.tab") > > try(system("convert tmp/1w1oh1292595541.ps tmp/1w1oh1292595541.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.166 0.341 2.427