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(140824 + ,70 + ,96 + ,144 + ,32033 + ,272545 + ,110459 + ,66 + ,71 + ,133 + ,20654 + ,180141 + ,105079 + ,75 + ,70 + ,170 + ,16346 + ,228925 + ,112098 + ,104 + ,134 + ,148 + ,35926 + ,218443 + ,43929 + ,52 + ,67 + ,88 + ,10621 + ,171533 + ,76173 + ,28 + ,8 + ,129 + ,10024 + ,70849 + ,187326 + ,125 + ,160 + ,128 + ,43068 + ,532492 + ,22807 + ,19 + ,1 + ,67 + ,1271 + ,33186 + ,144408 + ,59 + ,83 + ,132 + ,34416 + ,217320 + ,66485 + ,44 + ,82 + ,120 + ,20318 + ,213274 + ,79089 + ,111 + ,92 + ,169 + ,24409 + ,309323 + ,81625 + ,122 + ,117 + ,218 + ,20648 + ,242739 + ,68788 + ,76 + ,56 + ,122 + ,12347 + ,194882 + ,103297 + ,81 + ,139 + ,191 + ,21857 + ,364569 + ,69446 + ,86 + ,80 + ,162 + ,11034 + ,255231 + ,114948 + ,180 + ,175 + ,223 + ,33433 + ,384524 + ,167949 + ,75 + ,114 + ,156 + ,35902 + ,334118 + ,125081 + ,162 + ,100 + ,144 + ,22355 + ,343085 + ,125818 + ,56 + ,103 + ,111 + ,31219 + ,176082 + ,136588 + ,87 + ,135 + ,199 + ,21983 + ,266736 + ,112431 + ,70 + ,123 + ,187 + ,40085 + ,278265 + ,103037 + ,104 + ,87 + ,144 + ,18507 + ,442703 + ,82317 + ,42 + ,66 + ,89 + ,16278 + ,180393 + ,118906 + ,55 + ,103 + ,208 + ,24662 + ,189897 + ,83515 + ,125 + ,149 + ,165 + ,31452 + ,242176 + ,104581 + ,129 + ,113 + ,146 + ,32580 + ,241883 + ,103129 + ,129 + ,99 + ,158 + ,22883 + ,267318 + ,83243 + ,88 + ,117 + ,154 + ,27652 + ,277501 + ,37110 + ,52 + ,57 + ,117 + ,9845 + ,155915 + ,113344 + ,72 + ,141 + ,158 + ,20190 + ,365373 + ,139165 + ,80 + ,130 + ,195 + ,46201 + ,291907 + ,86652 + ,79 + ,47 + ,186 + ,10971 + ,236819 + ,112302 + ,95 + ,140 + ,197 + ,34811 + ,342856 + ,69652 + ,39 + ,43 + ,141 + ,3029 + ,101014 + ,119442 + ,100 + ,141 + ,168 + ,38941 + ,409551 + ,69867 + ,56 + ,83 + ,159 + ,4958 + ,273950 + ,101629 + ,122 + ,112 + ,161 + ,32344 + ,425253 + ,70168 + ,84 + ,79 + ,139 + ,19433 + ,227636 + ,31081 + ,33 + ,33 + ,55 + ,12558 + ,115658 + ,103925 + ,201 + ,137 + ,166 + ,36524 + ,375992 + ,92622 + ,82 + ,125 + ,151 + ,26041 + ,334004 + ,79011 + ,71 + ,76 + ,148 + ,16637 + ,186648 + ,93487 + ,76 + ,78 + ,115 + ,28395 + ,206196 + ,64520 + ,64 + ,68 + ,181 + ,16747 + ,182286 + ,93473 + ,82 + ,50 + ,73 + ,9105 + ,153778 + ,114360 + ,153 + ,101 + ,147 + ,11941 + ,455401 + ,33032 + ,42 + ,20 + ,82 + ,7935 + ,78800 + ,96125 + ,77 + ,101 + ,201 + ,19499 + ,208277 + ,151911 + ,121 + ,149 + ,193 + ,22938 + ,358127 + ,89256 + ,59 + ,99 + ,164 + ,25314 + ,176734 + ,95676 + ,76 + ,95 + ,158 + ,28527 + ,224649 + ,5950 + ,24 + ,8 + ,12 + ,2694 + ,24188 + ,149695 + ,326 + ,88 + ,163 + ,20867 + ,380576 + ,32551 + ,17 + ,21 + ,67 + ,3597 + ,65029 + ,31701 + ,64 + ,30 + ,52 + ,5296 + ,101097 + ,100087 + ,60 + ,97 + ,134 + ,32982 + ,279128 + ,169707 + ,86 + ,130 + ,230 + ,38975 + ,328024 + ,150491 + ,198 + ,132 + ,145 + ,42721 + ,359138 + ,120192 + ,145 + ,161 + ,153 + ,41455 + ,369539 + ,95893 + ,86 + ,89 + ,155 + ,23923 + ,266240 + ,151715 + ,146 + ,160 + ,198 + ,26719 + ,388953 + ,176225 + ,119 + ,139 + ,101 + ,53405 + ,305351 + ,59900 + ,118 + ,104 + ,169 + ,12526 + ,281929 + ,104767 + ,89 + ,92 + ,163 + ,26584 + ,264889 + ,114799 + ,68 + ,52 + ,139 + ,37062 + ,229585 + ,72128 + ,68 + ,117 + ,116 + ,25696 + ,235052 + ,143592 + ,135 + ,93 + ,145 + ,24634 + ,209030 + ,89626 + ,151 + ,85 + ,167 + ,27269 + ,240070 + ,131072 + ,84 + ,143 + ,135 + ,25270 + ,243937 + ,126817 + ,70 + ,143 + ,102 + ,24634 + ,175816 + ,81351 + ,70 + ,99 + ,173 + ,17828 + ,239337 + ,22618 + ,32 + ,22 + ,88 + ,3007 + ,73566 + ,88977 + ,86 + ,78 + ,175 + ,20065 + ,242622 + ,92059 + ,55 + ,83 + ,133 + ,24648 + ,196387 + ,81897 + ,64 + ,131 + ,148 + ,21588 + ,209049 + ,108146 + ,88 + ,140 + ,169 + ,25217 + ,363250 + ,126372 + ,96 + ,148 + ,143 + ,30927 + ,362030 + ,249771 + ,108 + ,80 + ,154 + ,18487 + ,217036 + ,71154 + ,65 + ,133 + ,148 + ,18050 + ,208824 + ,71571 + ,66 + ,95 + ,134 + ,17696 + ,195793 + ,55918 + ,48 + ,62 + ,109 + ,17326 + ,153654 + ,160141 + ,128 + ,161 + ,175 + ,39361 + ,475859 + ,38692 + ,69 + ,30 + ,99 + ,9648 + ,145943 + ,102812 + ,106 + ,118 + ,122 + ,26759 + ,287359 + ,56622 + ,25 + ,49 + ,28 + ,7905 + ,80953 + ,15986 + ,55 + ,52 + ,101 + ,4527 + ,150216 + ,123534 + ,60 + ,76 + ,139 + ,41517 + ,179317 + ,108535 + ,213 + ,85 + ,143 + ,21261 + ,394546 + ,93879 + ,120 + ,146 + ,206 + ,36099 + ,345373 + ,144551 + ,106 + ,165 + ,171 + ,39039 + ,179811 + ,56750 + ,100 + ,84 + ,150 + ,13841 + ,283459 + ,127654 + ,81 + ,165 + ,154 + ,23841 + ,274449 + ,65594 + ,65 + ,48 + ,114 + ,8589 + ,190312 + ,59938 + ,77 + ,149 + ,140 + ,15049 + ,280628 + ,146975 + ,85 + ,75 + ,156 + ,39038 + ,329007 + ,161100 + ,39 + ,83 + ,140 + ,34974 + ,189654 + ,168553 + ,59 + ,110 + ,127 + ,39932 + ,259365 + ,183500 + ,83 + ,164 + ,141 + ,43840 + ,297464 + ,165986 + ,155 + ,154 + ,251 + ,43146 + ,399815 + ,184923 + ,113 + ,165 + ,126 + ,50099 + ,402133 + ,140358 + ,138 + ,121 + ,198 + ,40312 + ,291970 + ,149959 + ,67 + ,150 + ,155 + ,32616 + ,296670 + ,57224 + ,188 + ,73 + ,138 + ,11338 + ,189276 + ,43750 + ,14 + ,13 + ,71 + ,7409 + ,43287 + ,48029 + ,83 + ,89 + ,84 + ,18213 + ,185969 + ,104978 + ,148 + ,105 + ,167 + ,45873 + ,250254 + ,100046 + ,50 + ,129 + ,155 + ,39844 + ,268391 + ,101047 + ,92 + ,169 + ,162 + ,28317 + ,314131 + ,197426 + ,81 + ,28 + ,112 + ,24797 + ,156967 + ,160902 + ,97 + ,118 + ,168 + ,7471 + ,161884 + ,147172 + ,74 + ,79 + ,157 + ,27259 + ,334485 + ,109432 + ,89 + ,147 + ,164 + ,23201 + ,300526 + ,1168 + ,11 + ,12 + ,0 + ,238 + ,23623 + ,83248 + ,73 + ,146 + ,155 + ,28830 + ,195817 + ,25162 + ,25 + ,23 + ,32 + ,3913 + ,61857 + ,45724 + ,50 + ,83 + ,169 + ,9935 + ,163871 + ,110529 + ,120 + ,163 + ,140 + ,27738 + ,428191 + ,855 + ,16 + ,4 + ,0 + ,338 + ,21054 + ,101382 + ,52 + ,81 + ,111 + ,13326 + ,252805 + ,14116 + ,22 + ,18 + ,25 + ,3988 + ,31961 + ,89506 + ,118 + ,114 + ,146 + ,24347 + ,331849 + ,135356 + ,68 + ,76 + ,183 + ,27111 + ,243223 + ,116066 + ,93 + ,55 + ,181 + ,3938 + ,177264 + ,144244 + ,54 + ,44 + ,107 + ,17416 + ,152043 + ,8773 + ,34 + ,16 + ,27 + ,1888 + ,38214 + ,102153 + ,43 + ,81 + ,163 + ,18700 + ,224597 + ,117440 + ,82 + ,137 + ,198 + ,36809 + ,357602 + ,104128 + ,61 + ,50 + ,205 + ,24959 + ,198104 + ,134238 + ,85 + ,142 + ,187 + ,37343 + ,423741 + ,134047 + ,99 + ,157 + ,187 + ,21849 + ,338606 + ,279488 + ,129 + ,141 + ,210 + ,49809 + ,417175 + ,79756 + ,36 + ,71 + ,151 + ,21654 + ,187992 + ,66089 + ,43 + ,42 + ,131 + ,8728 + ,102424 + ,102070 + ,347 + ,94 + ,171 + ,20920 + ,302158 + ,146760 + ,182 + ,117 + ,172 + ,27195 + ,437141 + ,154771 + ,56 + ,63 + ,164 + ,1037 + ,146250 + ,165933 + ,134 + ,127 + ,172 + ,42570 + ,395382 + ,64593 + ,78 + ,55 + ,143 + ,17672 + ,162422 + ,92280 + ,49 + ,117 + ,151 + ,34245 + ,278077 + ,67150 + ,96 + ,110 + ,158 + ,16786 + ,282410 + ,128692 + ,115 + ,39 + ,125 + ,20954 + ,219493 + ,124089 + ,122 + ,95 + ,169 + ,16378 + ,384177 + ,125386 + ,92 + ,128 + ,145 + ,31852 + ,246963 + ,37238 + ,63 + ,41 + ,79 + ,2805 + ,173260 + ,140015 + ,103 + ,146 + ,190 + ,38086 + ,333967 + ,150047 + ,58 + ,147 + ,192 + ,21166 + ,168994 + ,154451 + ,87 + ,119 + ,132 + ,34672 + ,253330 + ,156349 + ,109 + ,185 + ,168 + ,36171 + ,305217 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1 + ,6023 + ,10 + ,4 + ,0 + ,2065 + ,14688 + ,0 + ,1 + ,0 + ,0 + ,0 + ,98 + ,0 + ,2 + ,0 + ,0 + ,0 + ,455 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,84601 + ,88 + ,75 + ,133 + ,19354 + ,260345 + ,68946 + ,162 + ,157 + ,204 + ,22124 + ,409163 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,4 + ,0 + ,0 + ,0 + ,203 + ,1644 + ,5 + ,7 + ,0 + ,556 + ,7199 + ,6179 + ,20 + ,12 + ,15 + ,2089 + ,46660 + ,3926 + ,5 + ,0 + ,4 + ,2658 + ,17547 + ,52789 + ,45 + ,37 + ,152 + ,1813 + ,116969 + ,0 + ,2 + ,0 + ,0 + ,0 + ,969 + ,100350 + ,70 + ,59 + ,125 + ,17372 + ,229447) + ,dim=c(6 + ,164) + ,dimnames=list(c('totalsize' + ,'logins' + ,'bloggedcomputations' + ,'feedback' + ,'totalrevisions' + ,'timespent') + ,1:164)) > y <- array(NA,dim=c(6,164),dimnames=list(c('totalsize','logins','bloggedcomputations','feedback','totalrevisions','timespent'),1:164)) > 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' > 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/1vq4a1324374338.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) > 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) + } > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/243at1324374338.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.8492, df = 162, p-value = 5.391e-13 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.4041645 0.6276627 sample estimates: cor 0.5249029 > 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/3e4d11324374338.tab") > > try(system("convert tmp/1vq4a1324374338.ps tmp/1vq4a1324374338.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.205 0.098 1.299