R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(252101 + ,62 + ,438 + ,92 + ,34 + ,104 + ,124252 + ,165119 + ,134577 + ,59 + ,330 + ,58 + ,30 + ,111 + ,98956 + ,107269 + ,198520 + ,62 + ,609 + ,62 + ,38 + ,93 + ,98073 + ,93497 + ,189326 + ,94 + ,1015 + ,108 + ,34 + ,119 + ,106816 + ,100269 + ,137449 + ,44 + ,294 + ,55 + ,25 + ,57 + ,41449 + ,91627 + ,65295 + ,27 + ,164 + ,8 + ,31 + ,80 + ,76173 + ,47552 + ,439387 + ,103 + ,1912 + ,134 + ,29 + ,107 + ,177551 + ,233933 + ,33186 + ,19 + ,111 + ,1 + ,18 + ,22 + ,22807 + ,6853 + ,178368 + ,51 + ,698 + ,64 + ,30 + ,103 + ,126938 + ,104380 + ,186657 + ,38 + ,556 + ,77 + ,29 + ,72 + ,61680 + ,98431 + ,265539 + ,97 + ,717 + ,86 + ,39 + ,127 + ,72117 + ,156949 + ,191088 + ,96 + ,495 + ,93 + ,50 + ,168 + ,79738 + ,81817 + ,138866 + ,57 + ,544 + ,44 + ,33 + ,100 + ,57793 + ,59238 + ,296878 + ,66 + ,959 + ,106 + ,46 + ,143 + ,91677 + ,101138 + ,192648 + ,72 + ,540 + ,63 + ,38 + ,79 + ,64631 + ,107158 + ,333462 + ,162 + ,1486 + ,160 + ,52 + ,183 + ,106385 + ,155499 + ,243571 + ,58 + ,635 + ,104 + ,32 + ,123 + ,161961 + ,156274 + ,263451 + ,130 + ,940 + ,86 + ,35 + ,81 + ,112669 + ,121777 + ,155679 + ,49 + ,452 + ,93 + ,25 + ,74 + ,114029 + ,105037 + ,227053 + ,71 + ,617 + ,119 + ,42 + ,158 + ,124550 + ,118661 + ,240028 + ,63 + ,695 + ,107 + ,40 + ,133 + ,105416 + ,131187 + ,388549 + ,90 + ,1046 + ,86 + ,35 + ,128 + ,72875 + ,145026 + ,156540 + ,34 + ,405 + ,50 + ,25 + ,84 + ,81964 + ,107016 + ,148421 + ,43 + ,477 + ,92 + ,46 + ,184 + ,104880 + ,87242 + ,177732 + ,97 + ,1012 + ,123 + ,36 + ,127 + ,76302 + ,91699 + ,191441 + ,106 + ,842 + ,81 + ,35 + ,128 + ,96740 + ,110087 + ,249893 + ,122 + ,994 + ,93 + ,38 + ,118 + ,93071 + ,145447 + ,236812 + ,76 + ,530 + ,113 + ,35 + ,125 + ,78912 + ,143307 + ,142329 + ,45 + ,515 + ,52 + ,28 + ,89 + ,35224 + ,61678 + ,259667 + ,53 + ,766 + ,113 + ,37 + ,122 + ,90694 + ,210080 + ,231625 + ,66 + ,734 + ,112 + ,40 + ,151 + ,125369 + ,165005 + ,176062 + ,67 + ,551 + ,44 + ,42 + ,122 + ,80849 + ,97806 + ,286683 + ,79 + ,718 + ,123 + ,44 + ,162 + ,104434 + ,184471 + ,87485 + ,33 + ,280 + ,38 + ,33 + ,121 + ,65702 + ,27786 + ,322865 + ,83 + ,1055 + ,111 + ,35 + ,132 + ,108179 + ,184458 + ,247082 + ,51 + ,950 + ,77 + ,37 + ,110 + ,63583 + ,98765 + ,346011 + ,106 + ,1038 + ,92 + ,39 + ,135 + ,95066 + ,178441 + ,191653 + ,74 + ,552 + ,74 + ,32 + ,80 + ,62486 + ,100619 + ,114673 + ,31 + ,275 + ,33 + ,17 + ,46 + ,31081 + ,58391 + ,284224 + ,162 + ,986 + ,105 + ,34 + ,127 + ,94584 + ,151672 + ,284195 + ,72 + ,1336 + ,108 + ,33 + ,103 + ,87408 + ,124437 + ,155363 + ,60 + ,565 + ,66 + ,35 + ,95 + ,68966 + ,79929 + ,177306 + ,67 + ,571 + ,69 + ,32 + ,100 + ,88766 + ,123064 + ,144571 + ,49 + ,404 + ,62 + ,35 + ,102 + ,57139 + ,50466 + ,140319 + ,73 + ,985 + ,50 + ,45 + ,45 + ,90586 + ,100991 + ,405267 + ,135 + ,1851 + ,91 + ,38 + ,122 + ,109249 + ,79367 + ,78800 + ,42 + ,330 + ,20 + ,26 + ,66 + ,33032 + ,56968 + ,201970 + ,69 + ,611 + ,101 + ,45 + ,159 + ,96056 + ,106257 + ,302674 + ,99 + ,1249 + ,129 + ,44 + ,153 + ,146648 + ,178412 + ,164733 + ,50 + ,812 + ,93 + ,40 + ,131 + ,80613 + ,98520 + ,194221 + ,68 + ,501 + ,89 + ,33 + ,113 + ,87026 + ,153670 + ,24188 + ,24 + ,218 + ,8 + ,4 + ,7 + ,5950 + ,15049 + ,346142 + ,282 + ,787 + ,80 + ,41 + ,147 + ,131106 + ,174478 + ,65029 + ,17 + ,255 + ,21 + ,18 + ,61 + ,32551 + ,25109 + ,101097 + ,64 + ,454 + ,30 + ,14 + ,41 + ,31701 + ,45824 + ,246088 + ,46 + ,944 + ,86 + ,33 + ,108 + ,91072 + ,116772 + ,273108 + ,75 + ,600 + ,116 + ,49 + ,184 + ,159803 + ,189150 + ,282220 + ,160 + ,977 + ,106 + ,32 + ,115 + ,143950 + ,194404 + ,275505 + ,120 + ,872 + ,127 + ,37 + ,132 + ,112368 + ,185881 + ,214872 + ,74 + ,690 + ,75 + ,32 + ,113 + ,82124 + ,67508 + ,335121 + ,124 + ,1176 + ,138 + ,41 + ,141 + ,144068 + ,188597 + ,267171 + ,107 + ,1013 + ,114 + ,25 + ,65 + ,162627 + ,203618 + ,189637 + ,89 + ,894 + ,55 + ,42 + ,94 + ,55062 + ,87232 + ,229512 + ,78 + ,777 + ,67 + ,35 + ,121 + ,95329 + ,110875 + ,209798 + ,61 + ,521 + ,45 + ,33 + ,112 + ,105612 + ,144756 + ,201345 + ,60 + ,409 + ,88 + ,28 + ,81 + ,62853 + ,129825 + ,163833 + ,114 + ,493 + ,67 + ,31 + ,116 + ,125976 + ,92189 + ,204250 + ,129 + ,757 + ,75 + ,40 + ,132 + ,79146 + ,121158 + ,197813 + ,67 + ,736 + ,114 + ,32 + ,104 + ,108461 + ,96219 + ,132955 + ,60 + ,511 + ,123 + ,25 + ,80 + ,99971 + ,84128 + ,216092 + ,59 + ,789 + ,86 + ,42 + ,145 + ,77826 + ,97960 + ,73566 + ,32 + ,385 + ,22 + ,23 + ,67 + ,22618 + ,23824 + ,213198 + ,67 + ,644 + ,67 + ,42 + ,159 + ,84892 + ,103515 + ,181713 + ,50 + ,664 + ,77 + ,38 + ,90 + ,92059 + ,91313 + ,148698 + ,49 + ,505 + ,105 + ,34 + ,120 + ,77993 + ,85407 + ,300103 + ,70 + ,878 + ,119 + ,38 + ,126 + ,104155 + ,95871 + ,251437 + ,78 + ,769 + ,88 + ,32 + ,118 + ,109840 + ,143846 + ,197295 + ,101 + ,499 + ,78 + ,37 + ,112 + ,238712 + ,155387 + ,158163 + ,55 + ,546 + ,112 + ,34 + ,123 + ,67486 + ,74429 + ,155529 + ,57 + ,551 + ,66 + ,33 + ,98 + ,68007 + ,74004 + ,132672 + ,41 + ,565 + ,58 + ,25 + ,78 + ,48194 + ,71987 + ,377213 + ,102 + ,1087 + ,132 + ,40 + ,119 + ,134796 + ,150629 + ,145905 + ,66 + ,649 + ,30 + ,26 + ,99 + ,38692 + ,68580 + ,223701 + ,87 + ,540 + ,100 + ,40 + ,81 + ,93587 + ,119855 + ,80953 + ,25 + ,437 + ,49 + ,8 + ,27 + ,56622 + ,55792 + ,130805 + ,47 + ,732 + ,26 + ,27 + ,77 + ,15986 + ,25157 + ,135082 + ,48 + ,308 + ,67 + ,32 + ,118 + ,113402 + ,90895 + ,305270 + ,160 + ,1243 + ,57 + ,33 + ,122 + ,97967 + ,117510 + ,271806 + ,95 + ,783 + ,95 + ,50 + ,103 + ,74844 + ,144774 + ,150949 + ,96 + ,933 + ,139 + ,37 + ,129 + ,136051 + ,77529 + ,225805 + ,79 + ,710 + ,73 + ,33 + ,69 + ,50548 + ,103123 + ,197389 + ,68 + ,563 + ,134 + ,34 + ,121 + ,112215 + ,104669 + ,156583 + ,56 + ,508 + ,37 + ,28 + ,81 + ,59591 + ,82414 + ,232718 + ,68 + ,968 + ,108 + ,36 + ,135 + ,59938 + ,82390 + ,261601 + ,70 + ,838 + ,58 + ,32 + ,116 + ,137639 + ,128446 + ,178489 + ,35 + ,523 + ,78 + ,32 + ,123 + ,143372 + ,111542 + ,200657 + ,44 + ,500 + ,88 + ,31 + ,111 + ,138599 + ,136048 + ,259244 + ,69 + ,694 + ,142 + ,35 + ,100 + ,174110 + ,197257 + ,313075 + ,130 + ,1060 + ,127 + ,58 + ,221 + ,135062 + ,162079 + ,346933 + ,100 + ,1232 + ,139 + ,27 + ,95 + ,175681 + ,206286 + ,246440 + ,104 + ,735 + ,108 + ,45 + ,153 + ,130307 + ,109858 + ,252444 + ,58 + ,757 + ,128 + ,37 + ,118 + ,139141 + ,182125 + ,159965 + ,159 + ,574 + ,62 + ,32 + ,50 + ,44244 + ,74168 + ,43287 + ,14 + ,214 + ,13 + ,19 + ,64 + ,43750 + ,19630 + ,172239 + ,68 + ,661 + ,89 + ,22 + ,34 + ,48029 + ,88634 + ,185198 + ,121 + ,640 + ,83 + ,35 + ,76 + ,95216 + ,128321 + ,227681 + ,43 + ,1015 + ,116 + ,36 + ,112 + ,92288 + ,118936 + ,260464 + ,81 + ,893 + ,157 + ,36 + ,115 + ,94588 + ,127044 + ,106288 + ,54 + ,293 + ,28 + ,23 + ,69 + ,197426 + ,178377 + ,109632 + ,77 + ,446 + ,83 + ,36 + ,108 + ,151244 + ,69581 + ,268905 + ,58 + ,538 + ,72 + ,36 + ,130 + ,139206 + ,168019 + ,266805 + ,78 + ,627 + ,134 + ,42 + ,110 + ,106271 + ,113598 + ,23623 + ,11 + ,156 + ,12 + ,1 + ,0 + ,1168 + ,5841 + ,152474 + ,66 + ,577 + ,106 + ,32 + ,83 + ,71764 + ,93116 + ,61857 + ,25 + ,192 + ,23 + ,11 + ,30 + ,25162 + ,24610 + ,144889 + ,43 + ,437 + ,83 + ,40 + ,106 + ,45635 + ,60611 + ,346600 + ,99 + ,1054 + ,126 + ,34 + ,91 + ,101817 + ,226620 + ,21054 + ,16 + ,146 + ,4 + ,0 + ,0 + ,855 + ,6622 + ,224051 + ,45 + ,751 + ,71 + ,27 + ,69 + ,100174 + ,121996 + ,31414 + ,19 + ,200 + ,18 + ,8 + ,9 + ,14116 + ,13155 + ,261043 + ,105 + ,1050 + ,98 + ,35 + ,123 + ,85008 + ,154158 + ,206108 + ,58 + ,601 + ,66 + ,44 + ,150 + ,124254 + ,78489 + ,154984 + ,74 + ,430 + ,44 + ,40 + ,125 + ,105793 + ,22007 + ,112933 + ,45 + ,467 + ,29 + ,28 + ,81 + ,117129 + ,72530 + ,38214 + ,34 + ,276 + ,16 + ,8 + ,21 + ,8773 + ,13983 + ,158671 + ,33 + ,528 + ,56 + ,35 + ,124 + ,94747 + ,73397 + ,302148 + ,71 + ,898 + ,112 + ,47 + ,168 + ,107549 + ,143878 + ,177918 + ,55 + ,411 + ,46 + ,46 + ,149 + ,97392 + ,119956 + ,350552 + ,70 + ,1362 + ,129 + ,42 + ,147 + ,126893 + ,181558 + ,275578 + ,91 + ,743 + ,139 + ,48 + ,145 + ,118850 + ,208236 + ,368746 + ,106 + ,1069 + ,136 + ,49 + ,172 + ,234853 + ,237085 + ,172464 + ,31 + ,431 + ,66 + ,35 + ,126 + ,74783 + ,110297 + ,94381 + ,35 + ,380 + ,42 + ,32 + ,89 + ,66089 + ,61394 + ,244295 + ,281 + ,790 + ,70 + ,36 + ,137 + ,95684 + ,81420 + ,382487 + ,154 + ,1367 + ,97 + ,42 + ,149 + ,139537 + ,191154 + ,114525 + ,40 + ,449 + ,49 + ,35 + ,121 + ,144253 + ,11798 + ,345884 + ,120 + ,1495 + ,113 + ,42 + ,149 + ,153824 + ,135724 + ,147989 + ,72 + ,651 + ,55 + ,34 + ,93 + ,63995 + ,68614 + ,216638 + ,45 + ,494 + ,100 + ,36 + ,119 + ,84891 + ,139926 + ,192862 + ,72 + ,667 + ,80 + ,36 + ,102 + ,61263 + ,105203 + ,184818 + ,107 + ,510 + ,29 + ,32 + ,45 + ,106221 + ,80338 + ,336707 + ,105 + ,1472 + ,95 + ,33 + ,104 + ,113587 + ,121376 + ,215836 + ,76 + ,675 + ,114 + ,35 + ,111 + ,113864 + ,124922 + ,173260 + ,63 + ,716 + ,41 + ,21 + ,78 + ,37238 + ,10901 + ,271773 + ,89 + ,814 + ,128 + ,40 + ,120 + ,119906 + ,135471 + ,130908 + ,52 + ,556 + ,142 + ,49 + ,176 + ,135096 + ,66395 + ,204009 + ,75 + ,887 + ,88 + ,33 + ,109 + ,151611 + ,134041 + ,245514 + ,92 + ,663 + ,147 + ,39 + ,132 + ,144645 + ,153554 + ,1 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,14688 + ,10 + ,85 + ,4 + ,0 + ,0 + ,6023 + ,7953 + ,98 + ,1 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,455 + ,2 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,195765 + ,75 + ,607 + ,56 + ,33 + ,78 + ,77457 + ,98922 + ,326038 + ,121 + ,934 + ,121 + ,42 + ,104 + ,62464 + ,165395 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,203 + ,4 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,7199 + ,5 + ,74 + ,7 + ,0 + ,0 + ,1644 + ,4245 + ,46660 + ,20 + ,259 + ,12 + ,5 + ,13 + ,6179 + ,21509 + ,17547 + ,5 + ,69 + ,0 + ,1 + ,4 + ,3926 + ,7670 + ,107465 + ,38 + ,267 + ,37 + ,38 + ,65 + ,42087 + ,15167 + ,969 + ,2 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,173102 + ,58 + ,517 + ,47 + ,28 + ,55 + ,87656 + ,63891) + ,dim=c(8 + ,164) + ,dimnames=list(c('Time_in_RFC' + ,'Logins' + ,'CompendiumViews' + ,'BloggedComputations' + ,'ReviewedCompendiums' + ,'LongFeedbackmessages' + ,'Characters' + ,'WritingTime') + ,1:164)) > y <- array(NA,dim=c(8,164),dimnames=list(c('Time_in_RFC','Logins','CompendiumViews','BloggedComputations','ReviewedCompendiums','LongFeedbackmessages','Characters','WritingTime'),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' > #'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/rcomp/tmp/1k7zd1324653357.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/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/rcomp/createtable") > > n <- length(y[,1]) > n [1] 8 > 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/www/rcomp/tmp/20gnu1324653357.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 = 12.7571, df = 162, p-value < 2.2e-16 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.6221628 0.7768830 sample estimates: cor 0.7079155 > 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 28 warnings (use warnings() to see them) > a<-table.end(a) > table.save(a,file="/var/www/rcomp/tmp/3nfdv1324653357.tab") > > try(system("convert tmp/1k7zd1324653357.ps tmp/1k7zd1324653357.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.990 0.060 2.034