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(1565 + ,129404 + ,20 + ,18 + ,63 + ,18158 + ,1134 + ,130358 + ,38 + ,17 + ,50 + ,30461 + ,192 + ,7215 + ,0 + ,0 + ,0 + ,1423 + ,2033 + ,112861 + ,49 + ,22 + ,51 + ,25629 + ,3283 + ,219904 + ,76 + ,30 + ,112 + ,48758 + ,5877 + ,402036 + ,104 + ,31 + ,118 + ,129230 + ,1322 + ,117604 + ,37 + ,19 + ,59 + ,27376 + ,1225 + ,131822 + ,57 + ,25 + ,90 + ,26706 + ,1463 + ,99729 + ,42 + ,30 + ,50 + ,26505 + ,2568 + ,256310 + ,62 + ,26 + ,79 + ,49801 + ,1810 + ,113066 + ,50 + ,20 + ,49 + ,46580 + ,1915 + ,165392 + ,66 + ,30 + ,91 + ,48352 + ,1452 + ,78240 + ,38 + ,15 + ,32 + ,13899 + ,2415 + ,152673 + ,48 + ,22 + ,82 + ,39342 + ,1254 + ,134368 + ,42 + ,17 + ,58 + ,27465 + ,1374 + ,125769 + ,47 + ,19 + ,65 + ,55211 + ,1504 + ,123467 + ,71 + ,28 + ,111 + ,74098 + ,999 + ,56232 + ,0 + ,12 + ,36 + ,13497 + ,2222 + ,108458 + ,50 + ,28 + ,89 + ,38338 + ,634 + ,22762 + ,12 + ,13 + ,28 + ,52505 + ,849 + ,48633 + ,16 + ,14 + ,35 + ,10663 + ,2189 + ,182081 + ,77 + ,27 + ,78 + ,74484 + ,1469 + ,140857 + ,29 + ,25 + ,67 + ,28895 + ,1791 + ,93773 + ,38 + ,30 + ,61 + ,32827 + ,1743 + ,133398 + ,50 + ,21 + ,58 + ,36188 + ,1180 + ,113933 + ,33 + ,17 + ,49 + ,28173 + ,1749 + ,153851 + ,49 + ,22 + ,77 + ,54926 + ,1101 + ,140711 + ,59 + ,28 + ,71 + ,38900 + ,2391 + ,303844 + ,55 + ,26 + ,85 + ,88530 + ,1826 + ,163810 + ,42 + ,17 + ,56 + ,35482 + ,1301 + ,123344 + ,40 + ,23 + ,71 + ,26730 + ,1433 + ,157640 + ,51 + ,20 + ,58 + ,29806 + ,1893 + ,103274 + ,45 + ,16 + ,34 + ,41799 + ,2525 + ,193500 + ,73 + ,20 + ,59 + ,54289 + ,2033 + ,178768 + ,51 + ,21 + ,77 + ,36805 + ,1 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1817 + ,181412 + ,46 + ,27 + ,75 + ,33146 + ,1506 + ,92342 + ,44 + ,14 + ,39 + ,23333 + ,1820 + ,100023 + ,31 + ,29 + ,83 + ,47686 + ,1649 + ,178277 + ,71 + ,31 + ,123 + ,77783 + ,1672 + ,145067 + ,61 + ,19 + ,67 + ,36042 + ,1433 + ,114146 + ,28 + ,30 + ,105 + ,34541 + ,864 + ,86039 + ,21 + ,23 + ,76 + ,75620 + ,1683 + ,125481 + ,42 + ,21 + ,57 + ,60610 + ,1024 + ,95535 + ,44 + ,22 + ,82 + ,55041 + ,1029 + ,129221 + ,40 + ,21 + ,64 + ,32087 + ,629 + ,61554 + ,15 + ,32 + ,57 + ,16356 + ,1679 + ,168048 + ,46 + ,20 + ,80 + ,40161 + ,1715 + ,159121 + ,43 + ,26 + ,94 + ,55459 + ,2093 + ,129362 + ,47 + ,25 + ,72 + ,36679 + ,658 + ,48188 + ,12 + ,22 + ,39 + ,22346 + ,1234 + ,95461 + ,46 + ,19 + ,60 + ,27377 + ,2059 + ,229864 + ,56 + ,24 + ,84 + ,50273 + ,1725 + ,191094 + ,47 + ,26 + ,69 + ,32104 + ,1504 + ,161082 + ,50 + ,27 + ,102 + ,27016 + ,1454 + ,111388 + ,35 + ,10 + ,28 + ,19715 + ,1620 + ,172614 + ,45 + ,26 + ,65 + ,33629 + ,733 + ,63205 + ,25 + ,23 + ,67 + ,27084 + ,894 + ,109102 + ,47 + ,21 + ,80 + ,32352 + ,2343 + ,137303 + ,28 + ,34 + ,79 + ,51845 + ,1503 + ,125304 + ,48 + ,29 + ,107 + ,26591 + ,1627 + ,88620 + ,32 + ,19 + ,60 + ,29677 + ,1119 + ,95808 + ,28 + ,19 + ,53 + ,54237 + ,897 + ,83419 + ,31 + ,23 + ,59 + ,20284 + ,855 + ,101723 + ,13 + ,22 + ,80 + ,22741 + ,1229 + ,94982 + ,38 + ,29 + ,89 + ,34178 + ,1991 + ,143566 + ,48 + ,31 + ,115 + ,69551 + ,2393 + ,113325 + ,68 + ,21 + ,59 + ,29653 + ,820 + ,81518 + ,32 + ,21 + ,66 + ,38071 + ,340 + ,31970 + ,5 + ,21 + ,42 + ,4157 + ,2443 + ,192268 + ,53 + ,15 + ,35 + ,28321 + ,1030 + ,91261 + ,33 + ,9 + ,3 + ,40195 + ,1091 + ,80820 + ,54 + ,23 + ,72 + ,48158 + ,1414 + ,85829 + ,37 + ,18 + ,38 + ,13310 + ,2192 + ,116322 + ,52 + ,31 + ,107 + ,78474 + ,1082 + ,56544 + ,0 + ,25 + ,73 + ,6386 + ,1764 + ,116173 + ,52 + ,24 + ,80 + ,31588 + ,2072 + ,118781 + ,51 + ,22 + ,69 + ,61254 + ,816 + ,60138 + ,16 + ,21 + ,46 + ,21152 + ,1121 + ,73422 + ,33 + ,26 + ,52 + ,41272 + ,810 + ,67751 + ,48 + ,22 + ,58 + ,34165 + ,1699 + ,214002 + ,33 + ,26 + ,85 + ,37054 + ,751 + ,51185 + ,24 + ,20 + ,13 + ,12368 + ,1309 + ,97181 + ,37 + ,25 + ,61 + ,23168 + ,732 + ,45100 + ,17 + ,19 + ,49 + ,16380 + ,1327 + ,115801 + ,32 + ,22 + ,47 + ,41242 + ,2246 + ,186310 + ,55 + ,25 + ,93 + ,48450 + ,968 + ,71960 + ,39 + ,22 + ,65 + ,20790 + ,1015 + ,80105 + ,31 + ,21 + ,64 + ,34585 + ,1100 + ,103613 + ,26 + ,20 + ,64 + ,35672 + ,1300 + ,98707 + ,37 + ,23 + ,57 + ,52168 + ,1982 + ,136234 + ,66 + ,22 + ,61 + ,53933 + ,1091 + ,136781 + ,35 + ,21 + ,71 + ,34474 + ,1107 + ,105863 + ,24 + ,12 + ,43 + ,43753 + ,666 + ,42228 + ,22 + ,9 + ,18 + ,36456 + ,1903 + ,179997 + ,37 + ,32 + ,103 + ,51183 + ,1608 + ,169406 + ,86 + ,24 + ,76 + ,52742 + ,223 + ,19349 + ,13 + ,1 + ,0 + ,3895 + ,1807 + ,160819 + ,21 + ,24 + ,83 + ,37076 + ,1466 + ,109510 + ,32 + ,25 + ,73 + ,24079 + ,552 + ,43803 + ,8 + ,4 + ,4 + ,2325 + ,708 + ,47062 + ,38 + ,15 + ,41 + ,29354 + ,1079 + ,110845 + ,45 + ,21 + ,57 + ,30341 + ,957 + ,92517 + ,24 + ,23 + ,52 + ,18992 + ,585 + ,58660 + ,23 + ,12 + ,24 + ,15292 + ,596 + ,27676 + ,2 + ,16 + ,17 + ,5842 + ,980 + ,98550 + ,52 + ,24 + ,89 + ,28918 + ,585 + ,43646 + ,5 + ,9 + ,20 + ,3738 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,975 + ,75566 + ,43 + ,25 + ,51 + ,95352 + ,750 + ,57359 + ,18 + ,17 + ,63 + ,37478 + ,1071 + ,104330 + ,44 + ,18 + ,48 + ,26839 + ,931 + ,70369 + ,45 + ,21 + ,70 + ,26783 + ,783 + ,65494 + ,29 + ,17 + ,32 + ,33392 + ,78 + ,3616 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,874 + ,143931 + ,32 + ,20 + ,72 + ,25446 + ,1327 + ,117946 + ,65 + ,26 + ,56 + ,59847 + ,1831 + ,137332 + ,26 + ,27 + ,66 + ,28162 + ,750 + ,84336 + ,24 + ,20 + ,77 + ,33298 + ,778 + ,43410 + ,7 + ,1 + ,3 + ,2781 + ,1373 + ,136250 + ,62 + ,24 + ,73 + ,37121 + ,807 + ,79015 + ,30 + ,14 + ,37 + ,22698 + ,1562 + ,101354 + ,49 + ,27 + ,57 + ,27615 + ,685 + ,57586 + ,3 + ,12 + ,32 + ,32689 + ,285 + ,19764 + ,10 + ,2 + ,4 + ,5752 + ,1336 + ,105757 + ,42 + ,16 + ,55 + ,23164 + ,954 + ,103651 + ,23 + ,23 + ,84 + ,20304 + ,1283 + ,113402 + ,40 + ,28 + ,90 + ,34409 + ,256 + ,11796 + ,1 + ,2 + ,1 + ,0 + ,81 + ,7627 + ,0 + ,0 + ,0 + ,0 + ,1214 + ,121085 + ,29 + ,17 + ,38 + ,92538 + ,41 + ,6836 + ,0 + ,1 + ,0 + ,0 + ,1634 + ,139563 + ,46 + ,17 + ,36 + ,46037 + ,42 + ,5118 + ,5 + ,0 + ,0 + ,0 + ,528 + ,40248 + ,8 + ,4 + ,7 + ,5444 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,890 + ,95079 + ,21 + ,25 + ,75 + ,23924 + ,1203 + ,80763 + ,21 + ,26 + ,52 + ,52230 + ,81 + ,7131 + ,0 + ,0 + ,0 + ,0 + ,61 + ,4194 + ,0 + ,0 + ,0 + ,0 + ,849 + ,60378 + ,15 + ,15 + ,45 + ,8019 + ,1035 + ,109173 + ,47 + ,20 + ,66 + ,34542 + ,964 + ,83484 + ,17 + ,19 + ,48 + ,21157) + ,dim=c(6 + ,144) + ,dimnames=list(c('pageviews' + ,'time' + ,'blogs' + ,'peerreviews' + ,'peerreviews+' + ,'compcharachters') + ,1:144)) > y <- array(NA,dim=c(6,144),dimnames=list(c('pageviews','time','blogs','peerreviews','peerreviews+','compcharachters'),1:144)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'spearman' > 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/13oq41323946069.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 15 warnings (use warnings() to see them) > 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] 6 > 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 36 warnings (use warnings() to see them) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/2rcpr1323946069.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) Spearman's rank correlation rho data: y[1, ] and y[2, ] S = 69041.1, p-value < 2.2e-16 alternative hypothesis: true rho is not equal to 0 sample estimates: rho 0.861263 Warning message: In cor.test.default(y[1, ], y[2, ], method = par1) : Cannot compute exact p-values 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 15 warnings (use warnings() to see them) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/30b6q1323946069.tab") > > try(system("convert tmp/13oq41323946069.ps tmp/13oq41323946069.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.108 0.088 1.199