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 + ,1794 + ,71 + ,159 + ,165 + ,278691 + ,186099 + ,110459 + ,1351 + ,70 + ,149 + ,135 + ,197623 + ,113854 + ,105079 + ,2024 + ,78 + ,178 + ,121 + ,233139 + ,99776 + ,112098 + ,2724 + ,106 + ,164 + ,148 + ,221690 + ,106194 + ,43929 + ,1306 + ,53 + ,100 + ,73 + ,177540 + ,100792 + ,76173 + ,631 + ,28 + ,129 + ,49 + ,70849 + ,47552 + ,187326 + ,5171 + ,130 + ,156 + ,185 + ,566234 + ,250931 + ,22807 + ,381 + ,19 + ,67 + ,5 + ,33186 + ,6853 + ,144408 + ,2135 + ,61 + ,148 + ,125 + ,226511 + ,115466 + ,66485 + ,1919 + ,45 + ,132 + ,93 + ,245577 + ,110896 + ,79089 + ,2183 + ,113 + ,169 + ,154 + ,313453 + ,169351 + ,81625 + ,2262 + ,123 + ,230 + ,98 + ,248379 + ,94853 + ,68788 + ,1999 + ,78 + ,122 + ,70 + ,200620 + ,72591 + ,103297 + ,3005 + ,81 + ,191 + ,148 + ,367785 + ,101345 + ,69446 + ,2246 + ,87 + ,162 + ,100 + ,266325 + ,113713 + ,114948 + ,5053 + ,183 + ,237 + ,150 + ,394271 + ,165354 + ,167949 + ,2362 + ,76 + ,156 + ,197 + ,335567 + ,164263 + ,125081 + ,3490 + ,168 + ,157 + ,114 + ,407650 + ,135213 + ,125818 + ,1476 + ,57 + ,123 + ,169 + ,182016 + ,111669 + ,136588 + ,2397 + ,88 + ,203 + ,200 + ,267365 + ,134163 + ,112431 + ,2545 + ,72 + ,187 + ,148 + ,279428 + ,140303 + ,103037 + ,3071 + ,105 + ,152 + ,140 + ,484574 + ,150773 + ,82317 + ,1534 + ,43 + ,89 + ,74 + ,196721 + ,111848 + ,118906 + ,1774 + ,56 + ,227 + ,128 + ,197899 + ,102509 + ,83515 + ,3756 + ,130 + ,165 + ,140 + ,255978 + ,96785 + ,104581 + ,3019 + ,132 + ,162 + ,116 + ,255126 + ,116136 + ,103129 + ,2985 + ,131 + ,174 + ,147 + ,281816 + ,158376 + ,83243 + ,2010 + ,89 + ,154 + ,132 + ,278027 + ,153990 + ,37110 + ,1636 + ,55 + ,129 + ,70 + ,173134 + ,64057 + ,113344 + ,3126 + ,76 + ,174 + ,144 + ,382760 + ,230054 + ,139165 + ,2522 + ,83 + ,195 + ,155 + ,302413 + ,184531 + ,86652 + ,2099 + ,81 + ,186 + ,165 + ,251255 + ,114198 + ,112302 + ,2429 + ,96 + ,197 + ,161 + ,355456 + ,198299 + ,69652 + ,1117 + ,45 + ,157 + ,31 + ,109546 + ,33750 + ,119442 + ,3550 + ,102 + ,168 + ,199 + ,427915 + ,189723 + ,69867 + ,2764 + ,56 + ,159 + ,78 + ,273950 + ,100826 + ,101629 + ,3743 + ,124 + ,161 + ,121 + ,427825 + ,188355 + ,70168 + ,2021 + ,87 + ,153 + ,112 + ,247287 + ,104470 + ,31081 + ,947 + ,33 + ,55 + ,41 + ,115658 + ,58391 + ,103925 + ,3681 + ,205 + ,166 + ,158 + ,386534 + ,164808 + ,92622 + ,3380 + ,83 + ,151 + ,123 + ,340132 + ,134097 + ,79011 + ,1842 + ,71 + ,148 + ,104 + ,194127 + ,80238 + ,93487 + ,1909 + ,79 + ,129 + ,94 + ,213258 + ,133252 + ,64520 + ,1819 + ,65 + ,181 + ,73 + ,182398 + ,54518 + ,93473 + ,2598 + ,84 + ,93 + ,52 + ,157164 + ,121850 + ,114360 + ,5557 + ,153 + ,150 + ,71 + ,457592 + ,79367 + ,33032 + ,918 + ,42 + ,82 + ,21 + ,78800 + ,56968 + ,96125 + ,2386 + ,81 + ,229 + ,155 + ,213831 + ,106314 + ,151911 + ,4144 + ,122 + ,193 + ,174 + ,368086 + ,191889 + ,89256 + ,2430 + ,62 + ,176 + ,136 + ,203104 + ,104864 + ,95676 + ,2158 + ,77 + ,179 + ,128 + ,244371 + ,160792 + ,5950 + ,496 + ,24 + ,12 + ,7 + ,24188 + ,15049 + ,149695 + ,2688 + ,331 + ,181 + ,165 + ,399093 + ,191179 + ,32551 + ,744 + ,17 + ,67 + ,21 + ,65029 + ,25109 + ,31701 + ,1161 + ,64 + ,52 + ,35 + ,101097 + ,45824 + ,100087 + ,3214 + ,61 + ,148 + ,137 + ,297973 + ,129711 + ,169707 + ,2793 + ,88 + ,230 + ,174 + ,352671 + ,210012 + ,150491 + ,3962 + ,203 + ,148 + ,257 + ,367083 + ,194679 + ,120192 + ,2758 + ,148 + ,160 + ,207 + ,371178 + ,197680 + ,95893 + ,2316 + ,88 + ,155 + ,103 + ,269973 + ,81180 + ,151715 + ,4066 + ,149 + ,198 + ,171 + ,389761 + ,197765 + ,176225 + ,3293 + ,121 + ,104 + ,279 + ,315924 + ,214738 + ,59900 + ,3094 + ,121 + ,169 + ,83 + ,285807 + ,96252 + ,104767 + ,2755 + ,90 + ,163 + ,130 + ,282351 + ,124527 + ,114799 + ,1606 + ,73 + ,151 + ,131 + ,250558 + ,153242 + ,72128 + ,1989 + ,70 + ,116 + ,126 + ,254710 + ,145707 + ,143592 + ,2137 + ,138 + ,153 + ,158 + ,215915 + ,113963 + ,89626 + ,2889 + ,154 + ,195 + ,138 + ,247349 + ,134904 + ,131072 + ,2536 + ,86 + ,149 + ,200 + ,260919 + ,114268 + ,126817 + ,1729 + ,71 + ,106 + ,104 + ,182308 + ,94333 + ,81351 + ,2673 + ,72 + ,179 + ,111 + ,256761 + ,102204 + ,22618 + ,893 + ,32 + ,88 + ,26 + ,73566 + ,23824 + ,88977 + ,2338 + ,88 + ,185 + ,115 + ,263796 + ,111563 + ,92059 + ,1958 + ,56 + ,133 + ,127 + ,207899 + ,91313 + ,81897 + ,2217 + ,67 + ,164 + ,140 + ,228779 + ,89770 + ,108146 + ,2355 + ,89 + ,169 + ,121 + ,363571 + ,100125 + ,126372 + ,3099 + ,98 + ,153 + ,183 + ,382785 + ,165278 + ,249771 + ,1974 + ,109 + ,166 + ,68 + ,220401 + ,181712 + ,71154 + ,2472 + ,67 + ,164 + ,112 + ,225097 + ,80906 + ,71571 + ,2117 + ,68 + ,146 + ,103 + ,215445 + ,75881 + ,55918 + ,1968 + ,49 + ,141 + ,63 + ,188786 + ,83963 + ,160141 + ,4218 + ,130 + ,183 + ,166 + ,481148 + ,175721 + ,38692 + ,1370 + ,70 + ,99 + ,38 + ,145943 + ,68580 + ,102812 + ,2440 + ,107 + ,134 + ,163 + ,292287 + ,136323 + ,56622 + ,870 + ,25 + ,28 + ,59 + ,80953 + ,55792 + ,15986 + ,2081 + ,57 + ,101 + ,27 + ,164260 + ,25157 + ,123534 + ,1573 + ,61 + ,139 + ,108 + ,179344 + ,100922 + ,108535 + ,4034 + ,220 + ,159 + ,88 + ,413462 + ,118845 + ,93879 + ,3042 + ,125 + ,222 + ,92 + ,358697 + ,170492 + ,144551 + ,3098 + ,106 + ,171 + ,170 + ,180679 + ,81716 + ,56750 + ,2604 + ,102 + ,154 + ,98 + ,298696 + ,115750 + ,127654 + ,2386 + ,82 + ,154 + ,205 + ,288706 + ,105590 + ,65594 + ,1896 + ,66 + ,129 + ,96 + ,197956 + ,92795 + ,59938 + ,3146 + ,77 + ,140 + ,107 + ,282361 + ,82390 + ,146975 + ,2589 + ,87 + ,156 + ,150 + ,329202 + ,135599 + ,165904 + ,1960 + ,43 + ,156 + ,138 + ,220636 + ,127667 + ,169265 + ,2017 + ,63 + ,138 + ,177 + ,277071 + ,163073 + ,183500 + ,2261 + ,87 + ,153 + ,213 + ,305984 + ,211381 + ,165986 + ,4184 + ,161 + ,251 + ,208 + ,416032 + ,189944 + ,184923 + ,4021 + ,116 + ,126 + ,307 + ,412530 + ,226168 + ,140358 + ,2841 + ,141 + ,198 + ,125 + ,297080 + ,117495 + ,149959 + ,2488 + ,68 + ,168 + ,208 + ,318235 + ,195894 + ,57224 + ,2172 + ,194 + ,138 + ,73 + ,200486 + ,80684 + ,43750 + ,602 + ,14 + ,71 + ,49 + ,43287 + ,19630 + ,48029 + ,2196 + ,84 + ,90 + ,82 + ,189520 + ,88634 + ,104978 + ,2474 + ,153 + ,167 + ,206 + ,255152 + ,139292 + ,100046 + ,2834 + ,56 + ,172 + ,112 + ,288617 + ,128602 + ,101047 + ,2761 + ,93 + ,162 + ,139 + ,314167 + ,135848 + ,197426 + ,1339 + ,85 + ,129 + ,60 + ,170268 + ,178377 + ,160902 + ,3258 + ,99 + ,179 + ,70 + ,164399 + ,106330 + ,147172 + ,2088 + ,76 + ,163 + ,112 + ,350667 + ,178303 + ,109432 + ,2331 + ,90 + ,164 + ,142 + ,303273 + ,116938 + ,1168 + ,398 + ,11 + ,0 + ,11 + ,23623 + ,5841 + ,83248 + ,2213 + ,74 + ,155 + ,130 + ,195849 + ,106020 + ,25162 + ,530 + ,25 + ,32 + ,31 + ,61857 + ,24610 + ,45724 + ,1825 + ,52 + ,189 + ,132 + ,184709 + ,74151 + ,110529 + ,3154 + ,121 + ,140 + ,219 + ,428191 + ,232241 + ,855 + ,387 + ,16 + ,0 + ,4 + ,21054 + ,6622 + ,101382 + ,2137 + ,52 + ,111 + ,102 + ,252805 + ,127097 + ,14116 + ,492 + ,22 + ,25 + ,39 + ,31961 + ,13155 + ,89506 + ,3792 + ,122 + ,159 + ,125 + ,351541 + ,160501 + ,135356 + ,2161 + ,71 + ,183 + ,121 + ,246359 + ,91502 + ,116066 + ,1789 + ,95 + ,184 + ,42 + ,187003 + ,24469 + ,144244 + ,1857 + ,55 + ,119 + ,111 + ,172442 + ,88229 + ,8773 + ,568 + ,34 + ,27 + ,16 + ,38214 + ,13983 + ,102153 + ,2353 + ,48 + ,163 + ,70 + ,241539 + ,80716 + ,117440 + ,2818 + ,83 + ,198 + ,162 + ,358276 + ,157384 + ,104128 + ,1445 + ,64 + ,205 + ,173 + ,209821 + ,122975 + ,134238 + ,3846 + ,86 + ,191 + ,171 + ,441447 + ,191469 + ,134047 + ,2554 + ,99 + ,187 + ,172 + ,348017 + ,231257 + ,279488 + ,3501 + ,131 + ,210 + ,254 + ,439634 + ,258287 + ,79756 + ,1457 + ,40 + ,166 + ,90 + ,208962 + ,122531 + ,66089 + ,1213 + ,44 + ,145 + ,50 + ,105332 + ,61394 + ,102070 + ,3039 + ,355 + ,187 + ,113 + ,311111 + ,86480 + ,146760 + ,4475 + ,190 + ,186 + ,187 + ,459327 + ,195791 + ,154771 + ,1821 + ,58 + ,164 + ,16 + ,159057 + ,18284 + ,165933 + ,4359 + ,136 + ,172 + ,175 + ,411980 + ,147581 + ,64593 + ,2008 + ,80 + ,147 + ,90 + ,173486 + ,72558 + ,92280 + ,1980 + ,51 + ,167 + ,140 + ,284582 + ,147341 + ,67150 + ,2563 + ,99 + ,158 + ,145 + ,283913 + ,114651 + ,128692 + ,1991 + ,120 + ,144 + ,141 + ,234203 + ,100187 + ,124089 + ,4096 + ,123 + ,169 + ,125 + ,386740 + ,130332 + ,125386 + ,2339 + ,92 + ,145 + ,241 + ,246963 + ,134218 + ,37238 + ,2035 + ,63 + ,79 + ,16 + ,173260 + ,10901 + ,140015 + ,3237 + ,107 + ,194 + ,175 + ,346730 + ,145758 + ,150047 + ,1974 + ,58 + ,212 + ,132 + ,176654 + ,75767 + ,154451 + ,2703 + ,89 + ,148 + ,154 + ,259048 + ,134969 + ,156349 + ,2736 + ,111 + ,171 + ,198 + ,312540 + ,169216 + ,0 + ,2 + ,0 + ,0 + ,0 + ,1 + ,0 + ,6023 + ,207 + ,10 + ,0 + ,5 + ,14688 + ,7953 + ,0 + ,5 + ,1 + ,0 + ,0 + ,98 + ,0 + ,0 + ,8 + ,2 + ,0 + ,0 + ,455 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,84601 + ,2399 + ,91 + ,141 + ,125 + ,283222 + ,105406 + ,68946 + ,3448 + ,163 + ,204 + ,174 + ,409280 + ,174586 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,4 + ,4 + ,0 + ,0 + ,203 + ,0 + ,1644 + ,151 + ,5 + ,0 + ,6 + ,7199 + ,4245 + ,6179 + ,474 + ,20 + ,15 + ,13 + ,46660 + ,21509 + ,3926 + ,141 + ,5 + ,4 + ,3 + ,17547 + ,7670 + ,52789 + ,1145 + ,46 + ,172 + ,35 + ,121550 + ,15673 + ,0 + ,29 + ,2 + ,0 + ,0 + ,969 + ,0 + ,100350 + ,2060 + ,73 + ,125 + ,80 + ,242228 + ,75882) + ,dim=c(7 + ,164) + ,dimnames=list(c('TotCharacter' + ,'Pviews' + ,'Logins' + ,'SubmittedFM' + ,'TotHyper' + ,'TotTimeRFC' + ,'TotCompTime') + ,1:164)) > y <- array(NA,dim=c(7,164),dimnames=list(c('TotCharacter','Pviews','Logins','SubmittedFM','TotHyper','TotTimeRFC','TotCompTime'),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 = 'Pearson 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/1oyqs1324476097.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] 7 > 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/2bvbl1324476097.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 = 11.2398, df = 162, p-value < 2.2e-16 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.5661044 0.7401020 sample estimates: cor 0.6619284 > 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 21 warnings (use warnings() to see them) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/3hedm1324476097.tab") > > try(system("convert tmp/1oyqs1324476097.ps tmp/1oyqs1324476097.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.877 0.131 2.060