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(158147 + ,1760 + ,89 + ,48 + ,18 + ,20465 + ,182462 + ,1609 + ,56 + ,52 + ,20 + ,33629 + ,7215 + ,192 + ,18 + ,0 + ,0 + ,1423 + ,122259 + ,2182 + ,92 + ,49 + ,26 + ,25629 + ,222405 + ,3367 + ,131 + ,76 + ,31 + ,54002 + ,485890 + ,6658 + ,253 + ,124 + ,36 + ,151036 + ,150777 + ,1548 + ,54 + ,42 + ,23 + ,33287 + ,160529 + ,1507 + ,56 + ,68 + ,30 + ,31172 + ,133238 + ,1682 + ,42 + ,52 + ,30 + ,28113 + ,275326 + ,2811 + ,91 + ,67 + ,26 + ,57803 + ,121821 + ,1943 + ,74 + ,50 + ,24 + ,49830 + ,172489 + ,2017 + ,66 + ,71 + ,30 + ,52143 + ,89942 + ,1702 + ,96 + ,41 + ,21 + ,21055 + ,208851 + ,3034 + ,110 + ,79 + ,25 + ,47007 + ,151886 + ,1379 + ,55 + ,49 + ,18 + ,28735 + ,145427 + ,1517 + ,79 + ,54 + ,19 + ,59147 + ,134153 + ,1637 + ,53 + ,75 + ,33 + ,78950 + ,64149 + ,1077 + ,53 + ,0 + ,15 + ,13497 + ,122417 + ,2384 + ,84 + ,54 + ,34 + ,46154 + ,27997 + ,726 + ,24 + ,13 + ,18 + ,53249 + ,65004 + ,993 + ,55 + ,17 + ,15 + ,10726 + ,205417 + ,2446 + ,91 + ,83 + ,27 + ,83700 + ,188103 + ,1713 + ,70 + ,37 + ,25 + ,40400 + ,118698 + ,2027 + ,50 + ,44 + ,34 + ,33797 + ,143682 + ,1818 + ,81 + ,50 + ,21 + ,36205 + ,140172 + ,1393 + ,28 + ,39 + ,21 + ,30165 + ,186377 + ,2000 + ,154 + ,59 + ,25 + ,58534 + ,174870 + ,1346 + ,85 + ,79 + ,31 + ,44663 + ,317699 + ,2522 + ,114 + ,55 + ,30 + ,92556 + ,192335 + ,2106 + ,43 + ,52 + ,20 + ,40078 + ,151621 + ,1515 + ,42 + ,50 + ,28 + ,34711 + ,167466 + ,1519 + ,43 + ,54 + ,20 + ,31076 + ,125909 + ,2165 + ,100 + ,53 + ,17 + ,74608 + ,221896 + ,2959 + ,120 + ,76 + ,25 + ,58092 + ,217447 + ,2364 + ,52 + ,60 + ,24 + ,42009 + ,0 + ,1 + ,1 + ,0 + ,0 + ,0 + ,207163 + ,2009 + ,59 + ,53 + ,27 + ,36022 + ,93107 + ,1564 + ,50 + ,44 + ,14 + ,23333 + ,133763 + ,2072 + ,47 + ,36 + ,32 + ,53349 + ,246427 + ,2106 + ,63 + ,83 + ,31 + ,92596 + ,224097 + ,2270 + ,69 + ,100 + ,21 + ,49598 + ,142057 + ,1643 + ,56 + ,37 + ,34 + ,44093 + ,94332 + ,957 + ,29 + ,25 + ,23 + ,84205 + ,171724 + ,2025 + ,77 + ,59 + ,24 + ,63369 + ,101683 + ,1115 + ,45 + ,44 + ,26 + ,60132 + ,156753 + ,1176 + ,90 + ,41 + ,22 + ,37403 + ,81293 + ,744 + ,31 + ,23 + ,35 + ,24460 + ,201984 + ,1974 + ,91 + ,63 + ,21 + ,46456 + ,219875 + ,2224 + ,85 + ,54 + ,31 + ,66616 + ,156589 + ,2561 + ,56 + ,67 + ,26 + ,41554 + ,48188 + ,658 + ,28 + ,12 + ,22 + ,22346 + ,138146 + ,1716 + ,64 + ,82 + ,21 + ,30874 + ,279590 + ,2355 + ,71 + ,64 + ,27 + ,68701 + ,234829 + ,2017 + ,77 + ,56 + ,30 + ,35728 + ,181731 + ,1686 + ,57 + ,54 + ,33 + ,29010 + ,141014 + ,1675 + ,54 + ,35 + ,11 + ,23110 + ,189220 + ,1760 + ,62 + ,52 + ,26 + ,38844 + ,76419 + ,875 + ,23 + ,25 + ,26 + ,27084 + ,151898 + ,1169 + ,65 + ,67 + ,23 + ,35139 + ,189402 + ,2789 + ,93 + ,36 + ,38 + ,57476 + ,140189 + ,1606 + ,56 + ,50 + ,29 + ,33277 + ,123181 + ,1986 + ,75 + ,48 + ,19 + ,31141 + ,124234 + ,1300 + ,58 + ,46 + ,19 + ,61281 + ,107277 + ,1176 + ,34 + ,53 + ,24 + ,25820 + ,153813 + ,1215 + ,32 + ,27 + ,26 + ,23284 + ,94982 + ,1230 + ,38 + ,38 + ,29 + ,35378 + ,178613 + ,2226 + ,67 + ,68 + ,36 + ,74990 + ,138708 + ,2897 + ,65 + ,93 + ,25 + ,29653 + ,102378 + ,1008 + ,37 + ,48 + ,24 + ,64622 + ,31970 + ,340 + ,15 + ,5 + ,21 + ,4157 + ,211635 + ,2704 + ,110 + ,53 + ,19 + ,29245 + ,111885 + ,1209 + ,63 + ,36 + ,12 + ,50008 + ,99687 + ,1290 + ,63 + ,62 + ,30 + ,52338 + ,102900 + ,1535 + ,68 + ,46 + ,21 + ,13310 + ,156475 + ,2585 + ,65 + ,73 + ,34 + ,92901 + ,74513 + ,1315 + ,41 + ,2 + ,32 + ,10956 + ,159186 + ,2142 + ,57 + ,76 + ,27 + ,34241 + ,155818 + ,2513 + ,94 + ,71 + ,28 + ,75043 + ,60138 + ,817 + ,24 + ,16 + ,21 + ,21152 + ,84971 + ,1234 + ,71 + ,34 + ,31 + ,42249 + ,80478 + ,917 + ,66 + ,54 + ,26 + ,42005 + ,244325 + ,1924 + ,59 + ,39 + ,29 + ,41152 + ,56486 + ,853 + ,27 + ,26 + ,23 + ,14399 + ,110743 + ,1398 + ,34 + ,40 + ,25 + ,28263 + ,75092 + ,986 + ,44 + ,35 + ,22 + ,17215 + ,148286 + ,1608 + ,47 + ,32 + ,26 + ,48140 + ,222914 + ,2576 + ,219 + ,55 + ,33 + ,62897 + ,115019 + ,1201 + ,108 + ,58 + ,24 + ,22883 + ,93083 + ,1189 + ,56 + ,39 + ,24 + ,41622 + ,143258 + ,1383 + ,49 + ,33 + ,21 + ,40715 + ,117794 + ,1563 + ,39 + ,45 + ,28 + ,65897 + ,158586 + ,2185 + ,74 + ,72 + ,27 + ,76542 + ,151465 + ,1228 + ,56 + ,39 + ,25 + ,37477 + ,124626 + ,1266 + ,58 + ,27 + ,15 + ,53216 + ,51801 + ,830 + ,36 + ,22 + ,13 + ,40911 + ,223020 + ,2217 + ,110 + ,47 + ,36 + ,57021 + ,188957 + ,1787 + ,68 + ,95 + ,24 + ,73116 + ,19349 + ,223 + ,12 + ,13 + ,1 + ,3895 + ,188069 + ,2170 + ,99 + ,27 + ,24 + ,46609 + ,150561 + ,1927 + ,74 + ,40 + ,31 + ,29351 + ,53921 + ,665 + ,28 + ,22 + ,4 + ,2325 + ,58280 + ,804 + ,22 + ,41 + ,20 + ,31747 + ,124951 + ,1211 + ,49 + ,55 + ,23 + ,32665 + ,112263 + ,1143 + ,57 + ,28 + ,23 + ,19249 + ,72904 + ,710 + ,38 + ,30 + ,12 + ,15292 + ,27676 + ,596 + ,22 + ,2 + ,16 + ,5842 + ,131274 + ,1353 + ,44 + ,79 + ,29 + ,33994 + ,117451 + ,971 + ,32 + ,18 + ,10 + ,13018 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,85610 + ,1030 + ,31 + ,46 + ,25 + ,98177 + ,107175 + ,1130 + ,66 + ,25 + ,21 + ,37941 + ,133024 + ,1284 + ,44 + ,50 + ,23 + ,31032 + ,136473 + ,1438 + ,61 + ,59 + ,21 + ,32683 + ,71894 + ,849 + ,57 + ,36 + ,21 + ,34545 + ,3616 + ,78 + ,5 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,154806 + ,925 + ,39 + ,35 + ,23 + ,27525 + ,137977 + ,1518 + ,78 + ,68 + ,29 + ,66856 + ,149846 + ,1946 + ,95 + ,26 + ,28 + ,28549 + ,113245 + ,914 + ,37 + ,36 + ,23 + ,38610 + ,43410 + ,778 + ,19 + ,7 + ,1 + ,2781 + ,170330 + ,1713 + ,71 + ,67 + ,29 + ,41211 + ,89410 + ,895 + ,40 + ,30 + ,17 + ,22698 + ,112749 + ,1756 + ,52 + ,55 + ,29 + ,41194 + ,60373 + ,701 + ,40 + ,3 + ,12 + ,32689 + ,19764 + ,285 + ,12 + ,10 + ,2 + ,5752 + ,160995 + ,1774 + ,55 + ,46 + ,21 + ,26757 + ,121052 + ,1021 + ,28 + ,26 + ,25 + ,22527 + ,150039 + ,1582 + ,46 + ,49 + ,29 + ,44810 + ,11796 + ,256 + ,9 + ,1 + ,2 + ,0 + ,10674 + ,98 + ,9 + ,0 + ,0 + ,0 + ,134836 + ,1358 + ,55 + ,33 + ,18 + ,100674 + ,6836 + ,41 + ,3 + ,0 + ,1 + ,0 + ,153278 + ,1770 + ,57 + ,48 + ,21 + ,57786 + ,5118 + ,42 + ,3 + ,5 + ,0 + ,0 + ,40248 + ,528 + ,16 + ,8 + ,4 + ,5444 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,117842 + ,1026 + ,45 + ,35 + ,25 + ,28470 + ,87635 + ,1296 + ,38 + ,21 + ,26 + ,61849 + ,7131 + ,81 + ,4 + ,0 + ,0 + ,0 + ,8812 + ,257 + ,13 + ,0 + ,4 + ,2179 + ,68916 + ,914 + ,23 + ,15 + ,17 + ,8019 + ,132686 + ,1178 + ,50 + ,50 + ,21 + ,39644 + ,94127 + ,1080 + ,19 + ,17 + ,22 + ,23494) + ,dim=c(6 + ,144) + ,dimnames=list(c('time' + ,'pageviews' + ,'logins' + ,'BC' + ,'review' + ,'char') + ,1:144)) > y <- array(NA,dim=c(6,144),dimnames=list(c('time','pageviews','logins','BC','review','char'),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/wessaorg/rcomp/tmp/1slgf1324473782.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] 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/wessaorg/rcomp/tmp/22fn71324473782.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 = 23.2459, df = 142, p-value < 2.2e-16 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.8500498 0.9196032 sample estimates: cor 0.8898888 > 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/wessaorg/rcomp/tmp/3u39n1324473782.tab") > > try(system("convert tmp/1slgf1324473782.ps tmp/1slgf1324473782.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.332 0.164 1.487