R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(56 + ,79 + ,30 + ,112285 + ,21 + ,56 + ,58 + ,28 + ,84786 + ,23 + ,54 + ,60 + ,38 + ,83123 + ,22 + ,92 + ,121 + ,25 + ,119182 + ,22 + ,44 + ,43 + ,26 + ,116174 + ,21 + ,33 + ,69 + ,25 + ,57635 + ,22 + ,84 + ,78 + ,38 + ,66198 + ,21 + ,55 + ,44 + ,30 + ,57793 + ,21 + ,154 + ,158 + ,47 + ,97668 + ,21 + ,53 + ,102 + ,30 + ,133824 + ,21 + ,119 + ,77 + ,31 + ,101481 + ,23 + ,41 + ,82 + ,23 + ,99645 + ,21 + ,58 + ,101 + ,36 + ,99052 + ,21 + ,75 + ,80 + ,30 + ,67654 + ,22 + ,33 + ,50 + ,25 + ,65553 + ,22 + ,100 + ,73 + ,31 + ,82753 + ,21 + ,112 + ,81 + ,31 + ,85323 + ,22 + ,73 + ,105 + ,33 + ,72654 + ,23 + ,40 + ,47 + ,25 + ,30727 + ,22 + ,60 + ,94 + ,35 + ,117478 + ,22 + ,62 + ,44 + ,42 + ,74007 + ,21 + ,77 + ,107 + ,33 + ,101494 + ,21 + ,99 + ,84 + ,36 + ,79215 + ,21 + ,17 + ,0 + ,0 + ,1423 + ,20 + ,30 + ,33 + ,14 + ,31081 + ,21 + ,76 + ,42 + ,17 + ,22996 + ,25 + ,146 + ,96 + ,32 + ,83122 + ,21 + ,56 + ,56 + ,35 + ,60578 + ,21 + ,107 + ,57 + ,20 + ,39992 + ,20 + ,58 + ,59 + ,28 + ,79892 + ,24 + ,34 + ,39 + ,28 + ,49810 + ,23 + ,119 + ,76 + ,34 + ,100708 + ,21 + ,66 + ,91 + ,39 + ,82875 + ,24 + ,66 + ,76 + ,28 + ,72260 + ,21 + ,24 + ,8 + ,4 + ,5950 + ,23 + ,259 + ,79 + ,39 + ,115762 + ,23 + ,41 + ,76 + ,29 + ,80670 + ,21 + ,68 + ,101 + ,44 + ,143558 + ,22 + ,168 + ,94 + ,21 + ,117105 + ,20 + ,43 + ,27 + ,16 + ,23789 + ,18 + ,105 + ,123 + ,35 + ,105195 + ,22 + ,94 + ,105 + ,23 + ,149193 + ,21 + ,57 + ,41 + ,29 + ,95260 + ,21 + ,53 + ,72 + ,25 + ,55183 + ,23 + ,103 + ,67 + ,27 + ,106671 + ,22 + ,121 + ,75 + ,36 + ,73511 + ,21 + ,62 + ,114 + ,28 + ,92945 + ,21 + ,32 + ,22 + ,23 + ,22618 + ,21 + ,45 + ,69 + ,28 + ,83737 + ,22 + ,46 + ,105 + ,34 + ,69094 + ,21 + ,75 + ,88 + ,28 + ,95536 + ,21 + ,88 + ,73 + ,34 + ,225920 + ,23 + ,53 + ,62 + ,33 + ,61370 + ,21 + ,78 + ,100 + ,35 + ,84651 + ,22 + ,45 + ,24 + ,24 + ,15986 + ,22 + ,46 + ,67 + ,29 + ,95364 + ,20 + ,41 + ,46 + ,20 + ,26706 + ,21 + ,144 + ,57 + ,29 + ,89691 + ,21 + ,91 + ,135 + ,37 + ,126846 + ,21 + ,63 + ,124 + ,33 + ,102860 + ,21 + ,53 + ,33 + ,25 + ,51715 + ,22 + ,62 + ,98 + ,32 + ,55801 + ,21 + ,63 + ,58 + ,29 + ,111813 + ,24 + ,32 + ,68 + ,28 + ,120293 + ,22 + ,62 + ,131 + ,31 + ,161647 + ,24 + ,117 + ,110 + ,52 + ,115929 + ,21 + ,34 + ,37 + ,21 + ,24266 + ,22 + ,92 + ,130 + ,24 + ,162901 + ,22 + ,93 + ,93 + ,41 + ,109825 + ,21 + ,54 + ,118 + ,33 + ,129838 + ,24 + ,144 + ,39 + ,32 + ,37510 + ,21 + ,109 + ,81 + ,31 + ,87771 + ,22 + ,75 + ,51 + ,18 + ,44418 + ,19 + ,50 + ,28 + ,23 + ,192565 + ,22 + ,61 + ,40 + ,17 + ,35232 + ,23 + ,55 + ,56 + ,20 + ,40909 + ,20 + ,77 + ,27 + ,12 + ,13294 + ,20 + ,72 + ,83 + ,30 + ,140867 + ,23 + ,53 + ,28 + ,13 + ,44332 + ,20 + ,42 + ,59 + ,22 + ,61056 + ,20 + ,71 + ,133 + ,42 + ,101338 + ,23 + ,10 + ,12 + ,1 + ,1168 + ,25 + ,65 + ,106 + ,32 + ,65567 + ,21 + ,66 + ,44 + ,25 + ,32334 + ,22 + ,41 + ,71 + ,36 + ,40735 + ,21 + ,86 + ,116 + ,31 + ,91413 + ,22 + ,16 + ,4 + ,0 + ,855 + ,22 + ,42 + ,62 + ,24 + ,97068 + ,23 + ,19 + ,12 + ,13 + ,44339 + ,21 + ,19 + ,18 + ,8 + ,14116 + ,21 + ,45 + ,14 + ,13 + ,10288 + ,20 + ,65 + ,60 + ,19 + ,65622 + ,19 + ,95 + ,98 + ,33 + ,76643 + ,22 + ,64 + ,32 + ,38 + ,92696 + ,21 + ,38 + ,25 + ,24 + ,94785 + ,21 + ,65 + ,100 + ,43 + ,93815 + ,21 + ,52 + ,46 + ,43 + ,86687 + ,21 + ,62 + ,45 + ,14 + ,34553 + ,21 + ,65 + ,129 + ,41 + ,105547 + ,21 + ,95 + ,136 + ,45 + ,213688 + ,22 + ,29 + ,59 + ,31 + ,71220 + ,22 + ,247 + ,63 + ,31 + ,91721 + ,22 + ,29 + ,14 + ,30 + ,111194 + ,22 + ,118 + ,36 + ,16 + ,51009 + ,18 + ,110 + ,113 + ,37 + ,135777 + ,21 + ,67 + ,47 + ,30 + ,51513 + ,23 + ,42 + ,92 + ,35 + ,74163 + ,21 + ,64 + ,50 + ,20 + ,33416 + ,19 + ,81 + ,41 + ,18 + ,83305 + ,19 + ,95 + ,91 + ,31 + ,98952 + ,23 + ,67 + ,111 + ,31 + ,102372 + ,21 + ,63 + ,41 + ,21 + ,37238 + ,21 + ,83 + ,120 + ,39 + ,103772 + ,21 + ,32 + ,25 + ,18 + ,21399 + ,21 + ,83 + ,131 + ,39 + ,130115 + ,20 + ,31 + ,45 + ,14 + ,24874 + ,19 + ,67 + ,29 + ,7 + ,34988 + ,21 + ,66 + ,58 + ,17 + ,45549 + ,22 + ,70 + ,47 + ,30 + ,64466 + ,21 + ,103 + ,109 + ,37 + ,54990 + ,25 + ,34 + ,37 + ,32 + ,34777 + ,23 + ,40 + ,15 + ,17 + ,27114 + ,19 + ,31 + ,7 + ,24 + ,37636 + ,19 + ,42 + ,54 + ,22 + ,65461 + ,19 + ,46 + ,54 + ,12 + ,30080 + ,19 + ,33 + ,14 + ,19 + ,24094 + ,19 + ,18 + ,16 + ,13 + ,69008 + ,20 + ,35 + ,32 + ,15 + ,46090 + ,19 + ,66 + ,38 + ,15 + ,34029 + ,19 + ,60 + ,22 + ,17 + ,46300 + ,19 + ,54 + ,32 + ,16 + ,40662 + ,19 + ,53 + ,32 + ,18 + ,28987 + ,19 + ,39 + ,37 + ,17 + ,30594 + ,20 + ,45 + ,32 + ,16 + ,27913 + ,19 + ,36 + ,0 + ,23 + ,42744 + ,19 + ,28 + ,5 + ,22 + ,12934 + ,18 + ,30 + ,10 + ,13 + ,41385 + ,19 + ,22 + ,27 + ,16 + ,18653 + ,19 + ,31 + ,29 + ,20 + ,30976 + ,21 + ,55 + ,25 + ,22 + ,63339 + ,18 + ,54 + ,55 + ,17 + ,25568 + ,18 + ,14 + ,5 + ,17 + ,4154 + ,21 + ,81 + ,43 + ,12 + ,19474 + ,20 + ,43 + ,34 + ,17 + ,39067 + ,19 + ,30 + ,35 + ,23 + ,65892 + ,21 + ,23 + ,0 + ,17 + ,4143 + ,21 + ,38 + ,37 + ,14 + ,28579 + ,20 + ,53 + ,26 + ,21 + ,38084 + ,24 + ,45 + ,38 + ,18 + ,27717 + ,22 + ,39 + ,23 + ,18 + ,32928 + ,21 + ,24 + ,30 + ,17 + ,19499 + ,21 + ,35 + ,18 + ,15 + ,36874 + ,19 + ,151 + ,28 + ,21 + ,48259 + ,18 + ,30 + ,21 + ,14 + ,28207 + ,19 + ,57 + ,50 + ,15 + ,45833 + ,19 + ,40 + ,12 + ,15 + ,29156 + ,19 + ,77 + ,27 + ,22 + ,45588 + ,20 + ,35 + ,41 + ,21 + ,45097 + ,18 + ,63 + ,12 + ,18 + ,28394 + ,19 + ,44 + ,21 + ,17 + ,18632 + ,19 + ,19 + ,8 + ,4 + ,2325 + ,20 + ,13 + ,26 + ,10 + ,25139 + ,20 + ,42 + ,27 + ,16 + ,27975 + ,21 + ,42 + ,37 + ,18 + ,21792 + ,20 + ,49 + ,29 + ,12 + ,26263 + ,21 + ,30 + ,32 + ,16 + ,23686 + ,18 + ,49 + ,35 + ,21 + ,49303 + ,19 + ,12 + ,10 + ,2 + ,5752 + ,19 + ,20 + ,17 + ,17 + ,20055 + ,19 + ,27 + ,10 + ,16 + ,20154 + ,19 + ,14 + ,17 + ,16 + ,19540 + ,19) + ,dim=c(5 + ,171) + ,dimnames=list(c('log' + ,'blog' + ,'PR' + ,'size' + ,'age ') + ,1:171)) > y <- array(NA,dim=c(5,171),dimnames=list(c('log','blog','PR','size','age '),1:171)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'pearson' > 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/wessaorg/rcomp/tmp/1s6bm1323861495.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) 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/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/rcomp/createtable") > > n <- length(y[,1]) > n [1] 5 > 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) + } > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/2togq1323861495.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) Pearson's product-moment correlation data: y[1, ] and y[2, ] t = 7.6685, df = 169, p-value = 1.308e-12 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.3875517 0.6115194 sample estimates: cor 0.5080741 > 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) + } + } Warning messages: 1: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties 2: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties 3: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties 4: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties 5: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties 6: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties 7: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties 8: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties 9: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties 10: In cor.test.default(y[i, ], y[j, ], method = "spearman") : Cannot compute exact p-values with ties > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/3jdin1323861495.tab") > > try(system("convert tmp/1s6bm1323861495.ps tmp/1s6bm1323861495.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.140 0.117 1.344