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(124252 + ,165119 + ,85 + ,1527 + ,104 + ,98956 + ,107269 + ,58 + ,917 + ,111 + ,98073 + ,93497 + ,62 + ,1668 + ,93 + ,106816 + ,100269 + ,108 + ,2283 + ,119 + ,41449 + ,91627 + ,55 + ,992 + ,57 + ,76173 + ,47552 + ,8 + ,577 + ,80 + ,177551 + ,233933 + ,134 + ,3916 + ,107 + ,22807 + ,6853 + ,1 + ,381 + ,22 + ,126938 + ,104380 + ,63 + ,1769 + ,103 + ,61680 + ,98431 + ,77 + ,1606 + ,72 + ,72117 + ,156949 + ,86 + ,1885 + ,123 + ,79738 + ,81817 + ,93 + ,1633 + ,164 + ,57793 + ,59238 + ,44 + ,1433 + ,100 + ,91677 + ,101138 + ,106 + ,2369 + ,143 + ,64631 + ,107158 + ,63 + ,1644 + ,79 + ,106385 + ,155499 + ,160 + ,4197 + ,183 + ,161961 + ,156274 + ,104 + ,1769 + ,123 + ,112669 + ,121777 + ,86 + ,2352 + ,81 + ,114029 + ,105037 + ,92 + ,1217 + ,74 + ,124550 + ,118661 + ,119 + ,2015 + ,158 + ,105416 + ,131187 + ,107 + ,2109 + ,133 + ,72875 + ,145026 + ,86 + ,2448 + ,128 + ,81964 + ,107016 + ,50 + ,1253 + ,84 + ,104880 + ,87242 + ,92 + ,1431 + ,184 + ,76302 + ,91699 + ,123 + ,2582 + ,127 + ,96740 + ,110087 + ,81 + ,2293 + ,128 + ,93071 + ,145447 + ,93 + ,2647 + ,118 + ,78912 + ,143307 + ,113 + ,1709 + ,125 + ,35224 + ,61678 + ,52 + ,1360 + ,89 + ,90694 + ,210080 + ,113 + ,2051 + ,122 + ,125369 + ,165005 + ,109 + ,1858 + ,151 + ,80849 + ,97806 + ,44 + ,1621 + ,122 + ,104434 + ,184471 + ,123 + ,1933 + ,162 + ,65702 + ,27786 + ,38 + ,849 + ,121 + ,108179 + ,184458 + ,111 + ,2640 + ,132 + ,63583 + ,98765 + ,77 + ,2229 + ,110 + ,95066 + ,178441 + ,92 + ,2892 + ,129 + ,62486 + ,100619 + ,74 + ,1664 + ,80 + ,31081 + ,58391 + ,33 + ,917 + ,46 + ,94584 + ,151672 + ,105 + ,2740 + ,127 + ,87408 + ,124437 + ,108 + ,2897 + ,103 + ,68966 + ,79929 + ,66 + ,1413 + ,95 + ,88766 + ,123064 + ,69 + ,1500 + ,100 + ,57139 + ,50466 + ,62 + ,1443 + ,102 + ,90586 + ,100991 + ,50 + ,2369 + ,45 + ,109249 + ,79367 + ,91 + ,4798 + ,116 + ,33032 + ,56968 + ,20 + ,918 + ,66 + ,96056 + ,106257 + ,101 + ,2085 + ,159 + ,146648 + ,178412 + ,129 + ,3655 + ,153 + ,80613 + ,98520 + ,93 + ,1923 + ,131 + ,87026 + ,153670 + ,89 + ,1616 + ,113 + ,5950 + ,15049 + ,8 + ,496 + ,7 + ,131106 + ,174478 + ,79 + ,2306 + ,147 + ,32551 + ,25109 + ,21 + ,744 + ,61 + ,31701 + ,45824 + ,30 + ,1161 + ,41 + ,91072 + ,116772 + ,86 + ,2552 + ,108 + ,159803 + ,189150 + ,116 + ,2273 + ,184 + ,143950 + ,194404 + ,106 + ,3185 + ,115 + ,112368 + ,185881 + ,127 + ,2134 + ,132 + ,82124 + ,67508 + ,75 + ,1863 + ,113 + ,144068 + ,188597 + ,138 + ,3518 + ,141 + ,162627 + ,203618 + ,114 + ,2735 + ,65 + ,55062 + ,87232 + ,55 + ,2151 + ,79 + ,95329 + ,110875 + ,67 + ,2144 + ,121 + ,105612 + ,144756 + ,43 + ,1288 + ,112 + ,62853 + ,129825 + ,88 + ,1540 + ,81 + ,125976 + ,92189 + ,67 + ,1614 + ,116 + ,79146 + ,121158 + ,75 + ,2402 + ,132 + ,108461 + ,96219 + ,114 + ,1955 + ,104 + ,99971 + ,84128 + ,119 + ,1366 + ,80 + ,77826 + ,97960 + ,86 + ,2292 + ,145 + ,22618 + ,23824 + ,22 + ,893 + ,67 + ,84892 + ,103515 + ,67 + ,1935 + ,159 + ,92059 + ,91313 + ,77 + ,1538 + ,82 + ,77993 + ,85407 + ,105 + ,1494 + ,120 + ,104155 + ,95871 + ,119 + ,1994 + ,126 + ,109840 + ,143846 + ,88 + ,1904 + ,118 + ,238712 + ,155387 + ,75 + ,1645 + ,112 + ,67486 + ,74429 + ,112 + ,1700 + ,123 + ,68007 + ,74004 + ,66 + ,1467 + ,98 + ,48194 + ,71987 + ,58 + ,1538 + ,78 + ,134796 + ,150629 + ,132 + ,3320 + ,119 + ,38692 + ,68580 + ,30 + ,1345 + ,99 + ,93587 + ,119855 + ,100 + ,1929 + ,81 + ,56622 + ,55792 + ,49 + ,870 + ,27 + ,15986 + ,25157 + ,26 + ,1713 + ,77 + ,113402 + ,90895 + ,67 + ,1086 + ,118 + ,97967 + ,117510 + ,57 + ,3173 + ,122 + ,74844 + ,144774 + ,95 + ,2234 + ,103 + ,136051 + ,77529 + ,139 + ,2676 + ,129 + ,50548 + ,103123 + ,70 + ,1977 + ,69 + ,112215 + ,104669 + ,134 + ,1782 + ,121 + ,59591 + ,82414 + ,37 + ,1560 + ,81 + ,59938 + ,82390 + ,98 + ,2539 + ,119 + ,137639 + ,128446 + ,58 + ,2118 + ,116 + ,143372 + ,111542 + ,78 + ,1521 + ,123 + ,138599 + ,136048 + ,88 + ,1460 + ,111 + ,174110 + ,197257 + ,142 + ,1865 + ,100 + ,135062 + ,162079 + ,127 + ,3191 + ,197 + ,175681 + ,206286 + ,139 + ,3091 + ,95 + ,130307 + ,109858 + ,108 + ,2232 + ,153 + ,139141 + ,182125 + ,128 + ,2052 + ,118 + ,44244 + ,74168 + ,62 + ,1786 + ,50 + ,43750 + ,19630 + ,13 + ,602 + ,64 + ,48029 + ,88634 + ,89 + ,1966 + ,34 + ,95216 + ,128321 + ,83 + ,1723 + ,76 + ,92288 + ,118936 + ,116 + ,2282 + ,112 + ,94588 + ,127044 + ,157 + ,2338 + ,115 + ,197426 + ,178377 + ,28 + ,923 + ,69 + ,151244 + ,69581 + ,83 + ,1388 + ,108 + ,139206 + ,168019 + ,72 + ,1673 + ,130 + ,106271 + ,113598 + ,134 + ,2074 + ,110 + ,1168 + ,5841 + ,12 + ,398 + ,0 + ,71764 + ,93116 + ,106 + ,1605 + ,83 + ,25162 + ,24610 + ,23 + ,530 + ,30 + ,45635 + ,60611 + ,83 + ,1503 + ,106 + ,101817 + ,226620 + ,125 + ,2622 + ,91 + ,855 + ,6622 + ,4 + ,387 + ,0 + ,100174 + ,121996 + ,71 + ,1842 + ,69 + ,14116 + ,13155 + ,18 + ,449 + ,9 + ,85008 + ,154158 + ,98 + ,2890 + ,123 + ,124254 + ,78489 + ,66 + ,1701 + ,140 + ,105793 + ,22007 + ,44 + ,1401 + ,125 + ,117129 + ,72530 + ,29 + ,1257 + ,81 + ,8773 + ,13983 + ,16 + ,568 + ,21 + ,94747 + ,73397 + ,56 + ,1512 + ,124 + ,107549 + ,143878 + ,112 + ,2359 + ,164 + ,97392 + ,119956 + ,46 + ,1144 + ,139 + ,126893 + ,181558 + ,129 + ,3041 + ,144 + ,118850 + ,208236 + ,139 + ,2117 + ,130 + ,234853 + ,237085 + ,136 + ,2992 + ,168 + ,74783 + ,110297 + ,66 + ,1127 + ,126 + ,66089 + ,61394 + ,42 + ,1045 + ,89 + ,95684 + ,81420 + ,70 + ,2417 + ,137 + ,139537 + ,191154 + ,97 + ,3839 + ,149 + ,144253 + ,11798 + ,49 + ,1412 + ,121 + ,153824 + ,135724 + ,113 + ,3382 + ,133 + ,63995 + ,68614 + ,55 + ,1728 + ,93 + ,84891 + ,139926 + ,100 + ,1506 + ,119 + ,61263 + ,105203 + ,80 + ,1905 + ,102 + ,106221 + ,80338 + ,29 + ,1511 + ,39 + ,113587 + ,121376 + ,95 + ,3602 + ,104 + ,113864 + ,124922 + ,114 + ,1849 + ,111 + ,37238 + ,10901 + ,41 + ,2035 + ,78 + ,119906 + ,135471 + ,128 + ,2503 + ,120 + ,135096 + ,66395 + ,142 + ,1574 + ,169 + ,151611 + ,134041 + ,88 + ,2260 + ,109 + ,144645 + ,153554 + ,142 + ,2045 + ,132 + ,0 + ,0 + ,0 + ,2 + ,0 + ,6023 + ,7953 + ,4 + ,207 + ,0 + ,0 + ,0 + ,0 + ,5 + ,0 + ,0 + ,0 + ,0 + ,8 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,77457 + ,98922 + ,56 + ,1777 + ,78 + ,62464 + ,165395 + ,120 + ,2762 + ,104 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,4 + ,0 + ,1644 + ,4245 + ,7 + ,151 + ,0 + ,6179 + ,21509 + ,12 + ,474 + ,13 + ,3926 + ,7670 + ,0 + ,141 + ,4 + ,42087 + ,15167 + ,37 + ,969 + ,65 + ,0 + ,0 + ,0 + ,29 + ,0 + ,87656 + ,63891 + ,46 + ,1485 + ,55) + ,dim=c(5 + ,164) + ,dimnames=list(c('Karakters' + ,'Seconden' + ,'Blogs' + ,'Pageviews' + ,'LFM') + ,1:164)) > y <- array(NA,dim=c(5,164),dimnames=list(c('Karakters','Seconden','Blogs','Pageviews','LFM'),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 = 'kendall' > 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/1ig1z1324332664.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] 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/2lw5b1324332664.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) Kendall's rank correlation tau data: y[1, ] and y[2, ] z = 10.5839, p-value < 2.2e-16 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.5579547 > 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/341kl1324332664.tab") > > try(system("convert tmp/1ig1z1324332664.ps tmp/1ig1z1324332664.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.077 0.087 1.154