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(1 + ,78 + ,20 + ,17 + ,30 + ,28 + ,2 + ,46 + ,38 + ,17 + ,42 + ,39 + ,3 + ,18 + ,0 + ,0 + ,0 + ,0 + ,4 + ,84 + ,49 + ,22 + ,54 + ,54 + ,5 + ,125 + ,74 + ,30 + ,86 + ,80 + ,6 + ,215 + ,104 + ,31 + ,157 + ,144 + ,7 + ,50 + ,37 + ,19 + ,36 + ,36 + ,8 + ,48 + ,53 + ,25 + ,48 + ,48 + ,9 + ,37 + ,42 + ,30 + ,45 + ,42 + ,10 + ,86 + ,62 + ,26 + ,77 + ,71 + ,11 + ,69 + ,50 + ,20 + ,49 + ,49 + ,12 + ,59 + ,65 + ,25 + ,77 + ,74 + ,13 + ,85 + ,28 + ,15 + ,28 + ,27 + ,14 + ,84 + ,48 + ,22 + ,84 + ,83 + ,15 + ,44 + ,42 + ,12 + ,31 + ,31 + ,16 + ,67 + ,47 + ,19 + ,28 + ,28 + ,17 + ,49 + ,71 + ,28 + ,99 + ,98 + ,18 + ,47 + ,0 + ,12 + ,2 + ,2 + ,19 + ,77 + ,50 + ,28 + ,41 + ,43 + ,20 + ,20 + ,12 + ,13 + ,25 + ,24 + ,21 + ,49 + ,16 + ,14 + ,16 + ,16 + ,22 + ,81 + ,76 + ,27 + ,96 + ,95 + ,23 + ,58 + ,29 + ,25 + ,23 + ,22 + ,24 + ,45 + ,38 + ,30 + ,33 + ,33 + ,25 + ,73 + ,50 + ,18 + ,46 + ,45 + ,26 + ,22 + ,33 + ,17 + ,59 + ,59 + ,27 + ,138 + ,45 + ,22 + ,72 + ,66 + ,28 + ,74 + ,59 + ,28 + ,72 + ,70 + ,29 + ,102 + ,49 + ,25 + ,62 + ,56 + ,30 + ,35 + ,40 + ,16 + ,55 + ,55 + ,31 + ,39 + ,40 + ,23 + ,27 + ,27 + ,32 + ,38 + ,51 + ,20 + ,41 + ,37 + ,33 + ,88 + ,41 + ,11 + ,51 + ,48 + ,34 + ,102 + ,73 + ,20 + ,26 + ,26 + ,35 + ,42 + ,43 + ,21 + ,65 + ,64 + ,36 + ,1 + ,0 + ,0 + ,0 + ,0 + ,37 + ,54 + ,46 + ,27 + ,28 + ,21 + ,38 + ,46 + ,44 + ,14 + ,44 + ,44 + ,39 + ,41 + ,31 + ,29 + ,36 + ,36 + ,40 + ,49 + ,71 + ,31 + ,100 + ,89 + ,41 + ,56 + ,61 + ,19 + ,104 + ,101 + ,42 + ,47 + ,28 + ,30 + ,35 + ,31 + ,43 + ,25 + ,21 + ,23 + ,69 + ,65 + ,44 + ,62 + ,42 + ,20 + ,73 + ,71 + ,45 + ,41 + ,44 + ,22 + ,106 + ,102 + ,46 + ,72 + ,34 + ,19 + ,53 + ,53 + ,47 + ,26 + ,15 + ,32 + ,43 + ,41 + ,48 + ,77 + ,46 + ,18 + ,49 + ,46 + ,49 + ,75 + ,43 + ,26 + ,38 + ,37 + ,50 + ,51 + ,47 + ,25 + ,51 + ,51 + ,51 + ,28 + ,12 + ,22 + ,14 + ,14 + ,52 + ,54 + ,42 + ,19 + ,40 + ,40 + ,53 + ,64 + ,56 + ,24 + ,79 + ,77 + ,54 + ,67 + ,41 + ,26 + ,52 + ,51 + ,55 + ,48 + ,48 + ,27 + ,44 + ,43 + ,56 + ,44 + ,30 + ,10 + ,34 + ,33 + ,57 + ,55 + ,44 + ,26 + ,47 + ,47 + ,58 + ,17 + ,25 + ,21 + ,32 + ,31 + ,59 + ,55 + ,42 + ,21 + ,31 + ,31 + ,60 + ,72 + ,28 + ,34 + ,40 + ,40 + ,61 + ,47 + ,33 + ,29 + ,42 + ,42 + ,62 + ,62 + ,32 + ,18 + ,34 + ,35 + ,63 + ,45 + ,28 + ,16 + ,40 + ,40 + ,64 + ,29 + ,31 + ,23 + ,35 + ,30 + ,65 + ,25 + ,13 + ,22 + ,11 + ,11 + ,66 + ,37 + ,38 + ,29 + ,43 + ,41 + ,67 + ,60 + ,39 + ,31 + ,53 + ,53 + ,68 + ,57 + ,68 + ,21 + ,82 + ,82 + ,69 + ,32 + ,32 + ,21 + ,41 + ,41 + ,70 + ,15 + ,5 + ,21 + ,6 + ,6 + ,71 + ,102 + ,53 + ,15 + ,82 + ,81 + ,72 + ,52 + ,33 + ,9 + ,47 + ,47 + ,73 + ,53 + ,48 + ,21 + ,108 + ,100 + ,74 + ,58 + ,36 + ,18 + ,46 + ,46 + ,75 + ,51 + ,52 + ,31 + ,38 + ,38 + ,76 + ,31 + ,0 + ,24 + ,0 + ,0 + ,77 + ,50 + ,52 + ,24 + ,45 + ,45 + ,78 + ,78 + ,45 + ,22 + ,57 + ,56 + ,79 + ,23 + ,16 + ,21 + ,20 + ,18 + ,80 + ,66 + ,33 + ,26 + ,56 + ,54 + ,81 + ,56 + ,48 + ,22 + ,38 + ,37 + ,82 + ,51 + ,33 + ,26 + ,42 + ,40 + ,83 + ,24 + ,24 + ,20 + ,37 + ,37 + ,84 + ,32 + ,37 + ,25 + ,36 + ,36 + ,85 + ,36 + ,16 + ,19 + ,34 + ,34 + ,86 + ,42 + ,32 + ,22 + ,53 + ,49 + ,87 + ,180 + ,48 + ,25 + ,85 + ,82 + ,88 + ,83 + ,36 + ,19 + ,36 + ,36 + ,89 + ,46 + ,29 + ,21 + ,33 + ,33 + ,90 + ,40 + ,26 + ,20 + ,57 + ,55 + ,91 + ,33 + ,37 + ,23 + ,50 + ,50 + ,92 + ,66 + ,58 + ,22 + ,71 + ,71 + ,93 + ,52 + ,35 + ,21 + ,32 + ,31 + ,94 + ,51 + ,24 + ,12 + ,45 + ,42 + ,95 + ,30 + ,18 + ,9 + ,33 + ,31 + ,96 + ,89 + ,37 + ,32 + ,53 + ,51 + ,97 + ,49 + ,86 + ,24 + ,64 + ,64 + ,98 + ,12 + ,13 + ,1 + ,14 + ,14 + ,99 + ,83 + ,20 + ,24 + ,38 + ,37 + ,100 + ,51 + ,32 + ,20 + ,39 + ,37 + ,101 + ,24 + ,8 + ,4 + ,8 + ,8 + ,102 + ,19 + ,38 + ,15 + ,38 + ,38 + ,103 + ,44 + ,45 + ,21 + ,24 + ,23 + ,104 + ,52 + ,24 + ,23 + ,22 + ,22 + ,105 + ,35 + ,23 + ,12 + ,18 + ,18 + ,106 + ,22 + ,2 + ,16 + ,3 + ,1 + ,107 + ,32 + ,52 + ,24 + ,49 + ,48 + ,108 + ,22 + ,5 + ,9 + ,5 + ,5 + ,109 + ,0 + ,0 + ,0 + ,0 + ,0 + ,110 + ,26 + ,43 + ,22 + ,47 + ,46 + ,111 + ,48 + ,18 + ,17 + ,33 + ,33 + ,112 + ,35 + ,41 + ,18 + ,44 + ,41 + ,113 + ,47 + ,45 + ,21 + ,56 + ,57 + ,114 + ,55 + ,29 + ,17 + ,49 + ,49 + ,115 + ,5 + ,0 + ,0 + ,0 + ,0 + ,116 + ,0 + ,0 + ,0 + ,0 + ,0 + ,117 + ,37 + ,32 + ,20 + ,45 + ,45 + ,118 + ,65 + ,58 + ,26 + ,78 + ,78 + ,119 + ,81 + ,17 + ,26 + ,51 + ,46 + ,120 + ,32 + ,24 + ,20 + ,25 + ,25 + ,121 + ,19 + ,7 + ,1 + ,1 + ,1 + ,122 + ,58 + ,62 + ,24 + ,62 + ,59 + ,123 + ,33 + ,30 + ,14 + ,29 + ,29 + ,124 + ,42 + ,49 + ,26 + ,26 + ,26 + ,125 + ,37 + ,3 + ,12 + ,4 + ,4 + ,126 + ,12 + ,10 + ,2 + ,10 + ,10 + ,127 + ,41 + ,42 + ,16 + ,43 + ,43 + ,128 + ,23 + ,18 + ,22 + ,36 + ,36 + ,129 + ,35 + ,40 + ,28 + ,43 + ,41 + ,130 + ,9 + ,1 + ,2 + ,0 + ,0 + ,131 + ,9 + ,0 + ,0 + ,0 + ,0 + ,132 + ,49 + ,29 + ,17 + ,33 + ,32 + ,133 + ,3 + ,0 + ,1 + ,0 + ,0 + ,134 + ,41 + ,46 + ,17 + ,53 + ,53 + ,135 + ,3 + ,5 + ,0 + ,0 + ,0 + ,136 + ,16 + ,8 + ,4 + ,6 + ,6 + ,137 + ,0 + ,0 + ,0 + ,0 + ,0 + ,138 + ,41 + ,21 + ,25 + ,19 + ,18 + ,139 + ,31 + ,21 + ,26 + ,26 + ,26 + ,140 + ,4 + ,0 + ,0 + ,0 + ,0 + ,141 + ,11 + ,0 + ,0 + ,0 + ,0 + ,142 + ,20 + ,15 + ,15 + ,16 + ,16 + ,143 + ,40 + ,40 + ,18 + ,84 + ,84 + ,144 + ,16 + ,17 + ,19 + ,28 + ,22) + ,dim=c(6 + ,144) + ,dimnames=list(c('Ranking' + ,'NumberofLogins' + ,'Bloggedcomputations' + ,'ReviewedCompendiums' + ,'includedhyperlinks' + ,'includedblogs') + ,1:144)) > y <- array(NA,dim=c(6,144),dimnames=list(c('Ranking','NumberofLogins','Bloggedcomputations','ReviewedCompendiums','includedhyperlinks','includedblogs'),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 = '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/1uakh1323865355.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] 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/www/rcomp/tmp/20csm1323865355.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 = -5.8243, df = 142, p-value = 3.675e-08 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: -0.5623068 -0.2968692 sample estimates: cor -0.4391212 > 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/www/rcomp/tmp/3kln91323865355.tab") > > try(system("convert tmp/1uakh1323865355.ps tmp/1uakh1323865355.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.080 0.060 1.144