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(1407 + ,118540 + ,20 + ,15 + ,59 + ,18158 + ,22622 + ,30 + ,1072 + ,127145 + ,38 + ,16 + ,64 + ,30461 + ,73570 + ,42 + ,192 + ,7215 + ,0 + ,0 + ,0 + ,1423 + ,1929 + ,0 + ,2032 + ,112861 + ,49 + ,22 + ,68 + ,25629 + ,36294 + ,54 + ,3033 + ,197581 + ,70 + ,25 + ,100 + ,48758 + ,62378 + ,86 + ,5519 + ,377410 + ,104 + ,26 + ,100 + ,129230 + ,167760 + ,157 + ,1321 + ,117604 + ,37 + ,19 + ,72 + ,27376 + ,52443 + ,36 + ,1034 + ,120102 + ,46 + ,25 + ,96 + ,26706 + ,57283 + ,48 + ,1388 + ,96175 + ,42 + ,25 + ,90 + ,26505 + ,36614 + ,45 + ,2552 + ,253517 + ,62 + ,26 + ,104 + ,49801 + ,93268 + ,77 + ,1735 + ,108994 + ,50 + ,20 + ,54 + ,46580 + ,35439 + ,49 + ,1788 + ,156212 + ,65 + ,25 + ,98 + ,48352 + ,72405 + ,77 + ,1292 + ,68810 + ,28 + ,15 + ,49 + ,13899 + ,24044 + ,28 + ,2362 + ,149246 + ,48 + ,21 + ,84 + ,39342 + ,55909 + ,84 + ,1150 + ,125503 + ,42 + ,12 + ,45 + ,27465 + ,44689 + ,31 + ,1374 + ,125769 + ,47 + ,19 + ,74 + ,55211 + ,49319 + ,28 + ,1503 + ,123467 + ,71 + ,28 + ,112 + ,74098 + ,62075 + ,99 + ,965 + ,56088 + ,0 + ,12 + ,45 + ,13497 + ,2341 + ,2 + ,2164 + ,108128 + ,50 + ,28 + ,110 + ,38338 + ,40551 + ,41 + ,633 + ,22762 + ,12 + ,13 + ,39 + ,52505 + ,11621 + ,25 + ,837 + ,48554 + ,16 + ,14 + ,55 + ,10663 + ,18741 + ,16 + ,1991 + ,159102 + ,73 + ,23 + ,87 + ,74484 + ,84202 + ,96 + ,1450 + ,139108 + ,29 + ,25 + ,96 + ,28895 + ,15334 + ,23 + ,1765 + ,92058 + ,38 + ,30 + ,86 + ,32827 + ,28024 + ,33 + ,1612 + ,126311 + ,50 + ,17 + ,64 + ,36188 + ,53306 + ,46 + ,1173 + ,113807 + ,33 + ,17 + ,64 + ,28173 + ,37918 + ,59 + ,1603 + ,133994 + ,44 + ,21 + ,79 + ,54926 + ,54819 + ,72 + ,1046 + ,131810 + ,59 + ,24 + ,87 + ,38900 + ,89058 + ,72 + ,2176 + ,279065 + ,47 + ,22 + ,86 + ,88530 + ,103354 + ,62 + ,1767 + ,158146 + ,40 + ,16 + ,63 + ,35482 + ,70239 + ,55 + ,1167 + ,107352 + ,33 + ,23 + ,87 + ,26730 + ,33045 + ,27 + ,1394 + ,149827 + ,50 + ,18 + ,59 + ,29806 + ,63852 + ,41 + ,1733 + ,90912 + ,41 + ,11 + ,43 + ,41799 + ,30905 + ,51 + ,2374 + ,169510 + ,73 + ,20 + ,80 + ,54289 + ,24242 + ,26 + ,1852 + ,162204 + ,43 + ,20 + ,80 + ,36805 + ,78907 + ,65 + ,1 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1677 + ,163310 + ,41 + ,24 + ,93 + ,33146 + ,36005 + ,28 + ,1505 + ,92342 + ,44 + ,14 + ,51 + ,23333 + ,31972 + ,44 + ,1813 + ,98357 + ,31 + ,29 + ,98 + ,47686 + ,35853 + ,36 + ,1648 + ,178277 + ,71 + ,31 + ,124 + ,77783 + ,115301 + ,100 + ,1560 + ,134927 + ,61 + ,15 + ,60 + ,36042 + ,47689 + ,104 + ,1301 + ,104577 + ,27 + ,30 + ,120 + ,34541 + ,34223 + ,35 + ,784 + ,81614 + ,21 + ,20 + ,75 + ,75620 + ,43431 + ,69 + ,1580 + ,119111 + ,42 + ,20 + ,78 + ,60610 + ,52220 + ,73 + ,897 + ,83923 + ,40 + ,18 + ,71 + ,55041 + ,33863 + ,106 + ,959 + ,109885 + ,34 + ,19 + ,70 + ,32087 + ,46879 + ,53 + ,567 + ,52851 + ,15 + ,28 + ,84 + ,16356 + ,23228 + ,43 + ,1519 + ,153621 + ,46 + ,18 + ,72 + ,40161 + ,42827 + ,49 + ,1625 + ,152572 + ,43 + ,26 + ,104 + ,55459 + ,65765 + ,38 + ,1817 + ,114073 + ,38 + ,23 + ,87 + ,36679 + ,38167 + ,51 + ,658 + ,48188 + ,12 + ,22 + ,82 + ,22346 + ,14812 + ,14 + ,1187 + ,90994 + ,42 + ,19 + ,73 + ,27377 + ,32615 + ,40 + ,1863 + ,215588 + ,56 + ,20 + ,75 + ,50273 + ,82188 + ,79 + ,1559 + ,176489 + ,41 + ,25 + ,92 + ,32104 + ,51763 + ,52 + ,1340 + ,138871 + ,46 + ,27 + ,105 + ,27016 + ,59325 + ,44 + ,1342 + ,104416 + ,30 + ,10 + ,37 + ,19715 + ,48976 + ,34 + ,1505 + ,156186 + ,44 + ,26 + ,96 + ,33629 + ,43384 + ,47 + ,669 + ,60368 + ,25 + ,21 + ,80 + ,27084 + ,26692 + ,32 + ,814 + ,95391 + ,42 + ,19 + ,76 + ,32352 + ,53279 + ,31 + ,2189 + ,126048 + ,28 + ,32 + ,118 + ,51845 + ,20652 + ,40 + ,1291 + ,96388 + ,33 + ,28 + ,112 + ,26591 + ,38338 + ,42 + ,1378 + ,77353 + ,32 + ,16 + ,64 + ,29677 + ,36735 + ,34 + ,1008 + ,83867 + ,22 + ,16 + ,55 + ,54237 + ,42764 + ,40 + ,823 + ,79772 + ,30 + ,20 + ,75 + ,20284 + ,44331 + ,35 + ,789 + ,96945 + ,13 + ,20 + ,73 + ,22741 + ,41354 + ,11 + ,1135 + ,88300 + ,35 + ,24 + ,90 + ,34178 + ,47879 + ,43 + ,1875 + ,126203 + ,39 + ,31 + ,124 + ,69551 + ,103793 + ,53 + ,2289 + ,110681 + ,68 + ,21 + ,78 + ,29653 + ,52235 + ,82 + ,817 + ,81299 + ,32 + ,21 + ,83 + ,38071 + ,49825 + ,41 + ,340 + ,31970 + ,5 + ,21 + ,78 + ,4157 + ,4105 + ,6 + ,2354 + ,185321 + ,53 + ,15 + ,59 + ,28321 + ,58687 + ,82 + ,992 + ,87611 + ,33 + ,9 + ,33 + ,40195 + ,40745 + ,47 + ,984 + ,73165 + ,44 + ,21 + ,84 + ,48158 + ,33187 + ,108 + ,1357 + ,82167 + ,36 + ,18 + ,52 + ,13310 + ,14063 + ,46 + ,2048 + ,109099 + ,52 + ,27 + ,106 + ,78474 + ,37407 + ,38 + ,933 + ,49164 + ,0 + ,24 + ,88 + ,6386 + ,7190 + ,0 + ,1600 + ,105181 + ,49 + ,22 + ,93 + ,31588 + ,49562 + ,45 + ,1821 + ,105922 + ,29 + ,21 + ,83 + ,61254 + ,76324 + ,57 + ,816 + ,60138 + ,16 + ,21 + ,75 + ,21152 + ,21928 + ,20 + ,1121 + ,73422 + ,33 + ,26 + ,96 + ,41272 + ,27860 + ,56 + ,800 + ,67727 + ,48 + ,22 + ,81 + ,34165 + ,28078 + ,38 + ,1447 + ,188098 + ,33 + ,22 + ,88 + ,37054 + ,49577 + ,42 + ,750 + ,51185 + ,24 + ,20 + ,76 + ,12368 + ,28145 + ,37 + ,1171 + ,84448 + ,33 + ,21 + ,78 + ,23168 + ,36241 + ,36 + ,662 + ,41956 + ,16 + ,19 + ,75 + ,16380 + ,10824 + ,34 + ,1284 + ,110827 + ,32 + ,19 + ,74 + ,41242 + ,46892 + ,53 + ,1980 + ,167055 + ,41 + ,25 + ,100 + ,48259 + ,60865 + ,83 + ,879 + ,63603 + ,36 + ,19 + ,76 + ,20790 + ,22933 + ,36 + ,869 + ,64995 + ,22 + ,21 + ,80 + ,34585 + ,20787 + ,33 + ,1000 + ,93424 + ,26 + ,18 + ,65 + ,35672 + ,43978 + ,57 + ,1240 + ,97229 + ,37 + ,23 + ,88 + ,52168 + ,51305 + ,50 + ,1771 + ,112819 + ,57 + ,18 + ,67 + ,53933 + ,55593 + ,71 + ,945 + ,111538 + ,20 + ,21 + ,81 + ,34474 + ,51648 + ,32 + ,1042 + ,102220 + ,24 + ,12 + ,48 + ,43753 + ,30552 + ,45 + ,629 + ,38721 + ,18 + ,9 + ,33 + ,36456 + ,23470 + ,33 + ,1770 + ,168764 + ,37 + ,26 + ,99 + ,51183 + ,77530 + ,53 + ,1454 + ,151588 + ,70 + ,21 + ,81 + ,52742 + ,57299 + ,64 + ,222 + ,19349 + ,13 + ,1 + ,2 + ,3895 + ,9604 + ,14 + ,1529 + ,125440 + ,18 + ,24 + ,96 + ,37076 + ,34684 + ,38 + ,1303 + ,101954 + ,32 + ,18 + ,65 + ,24079 + ,41094 + ,39 + ,552 + ,43803 + ,8 + ,4 + ,15 + ,2325 + ,3439 + ,8 + ,708 + ,47062 + ,38 + ,15 + ,48 + ,29354 + ,25171 + ,38 + ,998 + ,104220 + ,41 + ,19 + ,73 + ,30341 + ,23437 + ,24 + ,872 + ,85939 + ,24 + ,20 + ,72 + ,18992 + ,34086 + ,22 + ,584 + ,58660 + ,23 + ,12 + ,46 + ,15292 + ,24649 + ,18 + ,596 + ,27676 + ,2 + ,16 + ,59 + ,5842 + ,2342 + ,3 + ,926 + ,93448 + ,52 + ,21 + ,84 + ,28918 + ,45571 + ,49 + ,576 + ,43284 + ,5 + ,9 + ,29 + ,3738 + ,3255 + ,5 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,868 + ,64333 + ,43 + ,21 + ,75 + ,95352 + ,30002 + ,47 + ,736 + ,57050 + ,18 + ,17 + ,63 + ,37478 + ,19360 + ,33 + ,998 + ,96933 + ,41 + ,18 + ,68 + ,26839 + ,43320 + ,44 + ,915 + ,70088 + ,45 + ,21 + ,84 + ,26783 + ,35513 + ,56 + ,782 + ,65494 + ,29 + ,17 + ,54 + ,33392 + ,23536 + ,49 + ,78 + ,3616 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,782 + ,135104 + ,32 + ,19 + ,72 + ,25446 + ,54438 + ,45 + ,1159 + ,95554 + ,41 + ,26 + ,87 + ,60038 + ,56815 + ,80 + ,1646 + ,120307 + ,17 + ,25 + ,100 + ,28162 + ,33838 + ,51 + ,749 + ,84336 + ,24 + ,20 + ,80 + ,33298 + ,32366 + ,25 + ,778 + ,43410 + ,7 + ,1 + ,3 + ,2781 + ,13 + ,1 + ,1335 + ,131452 + ,62 + ,21 + ,82 + ,37121 + ,55082 + ,62 + ,806 + ,79015 + ,30 + ,14 + ,55 + ,22698 + ,31334 + ,29 + ,1390 + ,88043 + ,49 + ,24 + ,88 + ,27615 + ,16612 + ,26 + ,680 + ,57578 + ,3 + ,12 + ,48 + ,32689 + ,5084 + ,4 + ,285 + ,19764 + ,10 + ,2 + ,8 + ,5752 + ,9927 + ,10 + ,1335 + ,105757 + ,42 + ,16 + ,60 + ,23164 + ,47413 + ,43 + ,840 + ,96410 + ,18 + ,22 + ,84 + ,20304 + ,27389 + ,36 + ,1231 + ,105056 + ,39 + ,28 + ,112 + ,34409 + ,30425 + ,43 + ,256 + ,11796 + ,1 + ,2 + ,8 + ,0 + ,0 + ,0 + ,80 + ,7627 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1163 + ,117413 + ,29 + ,17 + ,52 + ,92538 + ,33510 + ,33 + ,41 + ,6836 + ,0 + ,1 + ,4 + ,0 + ,0 + ,0 + ,1540 + ,131955 + ,45 + ,17 + ,57 + ,46037 + ,40389 + ,53 + ,42 + ,5118 + ,5 + ,0 + ,0 + ,0 + ,0 + ,0 + ,528 + ,40248 + ,8 + ,4 + ,14 + ,5444 + ,6012 + ,6 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,799 + ,77813 + ,16 + ,21 + ,78 + ,23924 + ,22205 + ,19 + ,1086 + ,67140 + ,16 + ,24 + ,82 + ,52230 + ,17231 + ,26 + ,81 + ,7131 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,61 + ,4194 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,849 + ,60378 + ,15 + ,15 + ,54 + ,8019 + ,11017 + ,16 + ,970 + ,96971 + ,40 + ,18 + ,69 + ,34542 + ,46741 + ,84 + ,964 + ,83484 + ,17 + ,19 + ,76 + ,21157 + ,39869 + ,28) + ,dim=c(8 + ,144) + ,dimnames=list(c('pageviews' + ,'timeinrfc' + ,'bloggedcomputatuon' + ,'reviewedcompendiums' + ,'totalnumberofsubfeedbackmessagesinPR' + ,'totalnumberofcharactersincompendium' + ,'totalnumberofsecondsincompendium' + ,'totalnumberofhyperlinksincompendium') + ,1:144)) > y <- array(NA,dim=c(8,144),dimnames=list(c('pageviews','timeinrfc','bloggedcomputatuon','reviewedcompendiums','totalnumberofsubfeedbackmessagesinPR','totalnumberofcharactersincompendium','totalnumberofsecondsincompendium','totalnumberofhyperlinksincompendium'),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 = '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/www/rcomp/tmp/1kr3k1323703893.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/2wk4o1323703893.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 = 12.3294, p-value < 2.2e-16 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.6937169 > 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/30p3c1323703893.tab") > > try(system("convert tmp/1kr3k1323703893.ps tmp/1kr3k1323703893.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.790 0.060 1.839