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(1801 + ,159261 + ,48 + ,19 + ,67 + ,20465 + ,6200 + ,23975 + ,1717 + ,189672 + ,53 + ,20 + ,56 + ,33629 + ,10265 + ,85634 + ,192 + ,7215 + ,0 + ,0 + ,0 + ,1423 + ,603 + ,1929 + ,2295 + ,129098 + ,51 + ,27 + ,63 + ,25629 + ,8874 + ,36294 + ,3450 + ,230632 + ,76 + ,31 + ,116 + ,54002 + ,20323 + ,72255 + ,6861 + ,515038 + ,136 + ,36 + ,138 + ,151036 + ,26258 + ,189748 + ,1795 + ,180745 + ,62 + ,23 + ,71 + ,33287 + ,10165 + ,61834 + ,1681 + ,185559 + ,83 + ,30 + ,107 + ,31172 + ,8247 + ,68167 + ,1897 + ,154581 + ,55 + ,30 + ,50 + ,28113 + ,8683 + ,38462 + ,2974 + ,298001 + ,67 + ,26 + ,79 + ,57803 + ,16957 + ,101219 + ,1946 + ,121844 + ,50 + ,24 + ,58 + ,49830 + ,8058 + ,43270 + ,2148 + ,184039 + ,77 + ,30 + ,91 + ,52143 + ,20488 + ,76183 + ,1832 + ,100324 + ,46 + ,22 + ,41 + ,21055 + ,7945 + ,31476 + ,3157 + ,217742 + ,79 + ,28 + ,100 + ,47007 + ,13448 + ,62157 + ,1476 + ,168265 + ,56 + ,18 + ,61 + ,28735 + ,5389 + ,46261 + ,1567 + ,154647 + ,54 + ,22 + ,74 + ,59147 + ,6185 + ,50063 + ,1756 + ,142018 + ,81 + ,33 + ,131 + ,78950 + ,24369 + ,64483 + ,1247 + ,79030 + ,6 + ,15 + ,45 + ,13497 + ,70 + ,2341 + ,2779 + ,167047 + ,74 + ,34 + ,110 + ,46154 + ,17327 + ,48149 + ,726 + ,27997 + ,13 + ,18 + ,41 + ,53249 + ,3878 + ,12743 + ,1048 + ,73019 + ,22 + ,15 + ,37 + ,10726 + ,3149 + ,18743 + ,2805 + ,241082 + ,99 + ,30 + ,84 + ,83700 + ,20517 + ,97057 + ,1760 + ,195820 + ,38 + ,25 + ,67 + ,40400 + ,2570 + ,17675 + ,2266 + ,142001 + ,59 + ,34 + ,69 + ,33797 + ,5162 + ,33106 + ,1848 + ,145433 + ,50 + ,21 + ,58 + ,36205 + ,5299 + ,53311 + ,1665 + ,183744 + ,50 + ,21 + ,60 + ,30165 + ,7233 + ,42754 + ,2082 + ,202232 + ,61 + ,25 + ,88 + ,58534 + ,15657 + ,59056 + ,1440 + ,199532 + ,87 + ,31 + ,75 + ,44663 + ,15329 + ,101621 + ,2741 + ,354924 + ,60 + ,31 + ,98 + ,92556 + ,14881 + ,118120 + ,2112 + ,192399 + ,52 + ,20 + ,67 + ,40078 + ,16318 + ,79572 + ,1684 + ,182286 + ,61 + ,28 + ,84 + ,34711 + ,9556 + ,42744 + ,1616 + ,181590 + ,60 + ,22 + ,62 + ,31076 + ,10462 + ,65931 + ,2227 + ,133801 + ,53 + ,17 + ,35 + ,74608 + ,7192 + ,38575 + ,3088 + ,233686 + ,76 + ,25 + ,74 + ,58092 + ,4362 + ,28795 + ,2389 + ,219428 + ,63 + ,24 + ,89 + ,42009 + ,14349 + ,94440 + ,1 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,2099 + ,223044 + ,54 + ,28 + ,79 + ,36022 + ,10881 + ,38229 + ,1669 + ,100129 + ,44 + ,14 + ,39 + ,23333 + ,8022 + ,31972 + ,2095 + ,136733 + ,36 + ,35 + ,101 + ,53349 + ,13073 + ,40071 + ,2153 + ,249965 + ,83 + ,34 + ,135 + ,92596 + ,26641 + ,132480 + ,2390 + ,242379 + ,105 + ,22 + ,76 + ,49598 + ,14426 + ,62797 + ,1701 + ,145794 + ,37 + ,34 + ,118 + ,44093 + ,15604 + ,40429 + ,983 + ,96404 + ,25 + ,23 + ,76 + ,84205 + ,9184 + ,45545 + ,2161 + ,195891 + ,64 + ,24 + ,65 + ,63369 + ,5989 + ,57568 + ,1276 + ,117156 + ,55 + ,26 + ,97 + ,60132 + ,11270 + ,39019 + ,1190 + ,157787 + ,41 + ,22 + ,67 + ,37403 + ,13958 + ,53866 + ,745 + ,81293 + ,23 + ,35 + ,63 + ,24460 + ,7162 + ,38345 + ,2330 + ,237435 + ,75 + ,24 + ,96 + ,46456 + ,13275 + ,50210 + ,2289 + ,233155 + ,59 + ,31 + ,112 + ,66616 + ,21224 + ,80947 + ,2639 + ,160344 + ,68 + ,26 + ,75 + ,41554 + ,10615 + ,43461 + ,658 + ,48188 + ,12 + ,22 + ,39 + ,22346 + ,2102 + ,14812 + ,1917 + ,161922 + ,99 + ,21 + ,63 + ,30874 + ,12396 + ,37819 + ,2557 + ,307432 + ,78 + ,27 + ,93 + ,68701 + ,18717 + ,102738 + ,2026 + ,235223 + ,56 + ,30 + ,76 + ,35728 + ,9724 + ,54509 + ,1911 + ,195583 + ,67 + ,33 + ,117 + ,29010 + ,9863 + ,62956 + ,1716 + ,146061 + ,40 + ,11 + ,30 + ,23110 + ,8374 + ,55411 + ,1852 + ,208834 + ,53 + ,26 + ,65 + ,38844 + ,8030 + ,50611 + ,981 + ,93764 + ,26 + ,26 + ,78 + ,27084 + ,7509 + ,26692 + ,1177 + ,151985 + ,67 + ,23 + ,87 + ,35139 + ,14146 + ,60056 + ,2809 + ,190545 + ,36 + ,38 + ,85 + ,57476 + ,7768 + ,25155 + ,1688 + ,148922 + ,50 + ,31 + ,115 + ,33277 + ,13823 + ,42840 + ,2097 + ,132856 + ,48 + ,20 + ,62 + ,31141 + ,7230 + ,39358 + ,1331 + ,129561 + ,46 + ,22 + ,60 + ,61281 + ,10170 + ,47241 + ,1244 + ,112718 + ,53 + ,26 + ,67 + ,25820 + ,7573 + ,49611 + ,1256 + ,160930 + ,27 + ,26 + ,90 + ,23284 + ,5753 + ,41833 + ,1293 + ,99184 + ,38 + ,33 + ,100 + ,35378 + ,9791 + ,48930 + ,2303 + ,192535 + ,71 + ,36 + ,135 + ,74990 + ,19365 + ,110600 + ,2897 + ,138708 + ,93 + ,25 + ,71 + ,29653 + ,9422 + ,52235 + ,1103 + ,114408 + ,59 + ,24 + ,75 + ,64622 + ,12310 + ,53986 + ,340 + ,31970 + ,5 + ,21 + ,42 + ,4157 + ,1283 + ,4105 + ,2791 + ,225558 + ,53 + ,19 + ,42 + ,29245 + ,6372 + ,59331 + ,1333 + ,137011 + ,40 + ,12 + ,8 + ,50008 + ,5413 + ,47796 + ,1441 + ,113612 + ,72 + ,30 + ,86 + ,52338 + ,10837 + ,38302 + ,1623 + ,108641 + ,51 + ,21 + ,41 + ,13310 + ,3394 + ,14063 + ,2650 + ,162203 + ,81 + ,34 + ,118 + ,92901 + ,12964 + ,54414 + ,1499 + ,100098 + ,27 + ,32 + ,91 + ,10956 + ,3495 + ,9903 + ,2302 + ,174768 + ,94 + ,28 + ,102 + ,34241 + ,11580 + ,53987 + ,2540 + ,158459 + ,71 + ,28 + ,89 + ,75043 + ,9970 + ,88937 + ,1000 + ,80934 + ,20 + ,21 + ,46 + ,21152 + ,4911 + ,21928 + ,1234 + ,84971 + ,34 + ,31 + ,60 + ,42249 + ,10138 + ,29487 + ,927 + ,80545 + ,54 + ,26 + ,69 + ,42005 + ,14697 + ,35334 + ,2176 + ,287191 + ,49 + ,29 + ,95 + ,41152 + ,8464 + ,57596 + ,957 + ,62974 + ,26 + ,23 + ,17 + ,14399 + ,4204 + ,29750 + ,1551 + ,134091 + ,48 + ,25 + ,61 + ,28263 + ,10226 + ,41029 + ,1014 + ,75555 + ,35 + ,22 + ,55 + ,17215 + ,3456 + ,12416 + ,1771 + ,162154 + ,32 + ,26 + ,55 + ,48140 + ,8895 + ,51158 + ,2613 + ,226638 + ,55 + ,33 + ,124 + ,62897 + ,22557 + ,79935 + ,1203 + ,115019 + ,58 + ,24 + ,73 + ,22883 + ,6900 + ,26552 + ,1337 + ,108749 + ,44 + ,24 + ,73 + ,41622 + ,8620 + ,25807 + ,1524 + ,155537 + ,45 + ,21 + ,67 + ,40715 + ,7820 + ,50620 + ,1829 + ,153133 + ,49 + ,28 + ,66 + ,65897 + ,12112 + ,61467 + ,2229 + ,165618 + ,72 + ,27 + ,75 + ,76542 + ,13178 + ,65292 + ,1233 + ,151517 + ,39 + ,25 + ,83 + ,37477 + ,7028 + ,55516 + ,1365 + ,133686 + ,28 + ,15 + ,55 + ,53216 + ,6616 + ,42006 + ,950 + ,61342 + ,24 + ,13 + ,27 + ,40911 + ,9570 + ,26273 + ,2319 + ,245196 + ,52 + ,36 + ,115 + ,57021 + ,14612 + ,90248 + ,1857 + ,195576 + ,96 + ,24 + ,76 + ,73116 + ,11219 + ,61476 + ,223 + ,19349 + ,13 + ,1 + ,0 + ,3895 + ,786 + ,9604 + ,2390 + ,225371 + ,38 + ,24 + ,83 + ,46609 + ,11252 + ,45108 + ,1973 + ,152796 + ,41 + ,31 + ,90 + ,29351 + ,9289 + ,47232 + ,700 + ,59117 + ,24 + ,4 + ,4 + ,2325 + ,593 + ,3439 + ,1062 + ,91762 + ,54 + ,21 + ,60 + ,31747 + ,6562 + ,30553 + ,1311 + ,136769 + ,68 + ,23 + ,63 + ,32665 + ,8208 + ,24751 + ,1157 + ,114798 + ,28 + ,23 + ,52 + ,19249 + ,7488 + ,34458 + ,823 + ,85338 + ,36 + ,12 + ,24 + ,15292 + ,4574 + ,24649 + ,596 + ,27676 + ,2 + ,16 + ,17 + ,5842 + ,522 + ,2342 + ,1545 + ,153535 + ,91 + ,29 + ,105 + ,33994 + ,12840 + ,52739 + ,1130 + ,122417 + ,29 + ,26 + ,20 + ,13018 + ,1350 + ,6245 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1082 + ,91529 + ,46 + ,25 + ,51 + ,98177 + ,10623 + ,35381 + ,1135 + ,107205 + ,25 + ,21 + ,76 + ,37941 + ,5322 + ,19595 + ,1367 + ,144664 + ,51 + ,23 + ,59 + ,31032 + ,7987 + ,50848 + ,1452 + ,136540 + ,59 + ,21 + ,70 + ,32683 + ,10566 + ,39443 + ,870 + ,76656 + ,36 + ,21 + ,38 + ,34545 + ,1900 + ,27023 + ,78 + ,3616 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1127 + ,183065 + ,40 + ,23 + ,81 + ,27525 + ,10698 + ,61022 + ,1582 + ,144677 + ,68 + ,33 + ,78 + ,66856 + ,14884 + ,63528 + ,2034 + ,159104 + ,28 + ,30 + ,73 + ,28549 + ,6852 + ,34835 + ,919 + ,113273 + ,36 + ,23 + ,89 + ,38610 + ,6873 + ,37172 + ,778 + ,43410 + ,7 + ,1 + ,3 + ,2781 + ,4 + ,13 + ,1752 + ,175774 + ,70 + ,29 + ,87 + ,41211 + ,9188 + ,62548 + ,957 + ,95401 + ,30 + ,18 + ,51 + ,22698 + ,5141 + ,31334 + ,2098 + ,134837 + ,69 + ,33 + ,73 + ,41194 + ,4260 + ,20839 + ,731 + ,60493 + ,3 + ,12 + ,32 + ,32689 + ,443 + ,5084 + ,285 + ,19764 + ,10 + ,2 + ,4 + ,5752 + ,2416 + ,9927 + ,1834 + ,164062 + ,46 + ,21 + ,70 + ,26757 + ,9831 + ,53229 + ,1147 + ,132696 + ,34 + ,28 + ,102 + ,22527 + ,5953 + ,29877 + ,1646 + ,155367 + ,54 + ,29 + ,91 + ,44810 + ,9435 + ,37310 + ,256 + ,11796 + ,1 + ,2 + ,1 + ,0 + ,0 + ,0 + ,98 + ,10674 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1404 + ,142261 + ,39 + ,18 + ,39 + ,100674 + ,7642 + ,50067 + ,41 + ,6836 + ,0 + ,1 + ,0 + ,0 + ,0 + ,0 + ,1824 + ,162563 + ,48 + ,21 + ,45 + ,57786 + ,6837 + ,47708 + ,42 + ,5118 + ,5 + ,0 + ,0 + ,0 + ,0 + ,0 + ,528 + ,40248 + ,8 + ,4 + ,7 + ,5444 + ,775 + ,6012 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1073 + ,122641 + ,38 + ,25 + ,75 + ,28470 + ,8191 + ,27749 + ,1305 + ,88837 + ,21 + ,26 + ,52 + ,61849 + ,1661 + ,47555 + ,81 + ,7131 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,261 + ,9056 + ,0 + ,4 + ,1 + ,2179 + ,548 + ,1336 + ,934 + ,76611 + ,15 + ,17 + ,49 + ,8019 + ,3080 + ,11017 + ,1180 + ,132697 + ,50 + ,21 + ,69 + ,39644 + ,13400 + ,55184 + ,1147 + ,100681 + ,17 + ,22 + ,56 + ,23494 + ,8181 + ,43485) + ,dim=c(8 + ,144) + ,dimnames=list(c('X1' + ,'Y' + ,'X2' + ,'X3' + ,'X4' + ,'X5' + ,'X6' + ,'X7 ') + ,1:144)) > y <- array(NA,dim=c(8,144),dimnames=list(c('X1','Y','X2','X3','X4','X5','X6','X7 '),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/1r1uu1324476740.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) Warning messages: 1: In strwidth(labels, "user") : font width unknown for character 0xd 2: In text.default(x, y, txt, cex = cex, font = font) : font width unknown for character 0xd 3: In text.default(x, y, txt, cex = cex, font = font) : font metrics unknown for character 0xd > 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] 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/wessaorg/rcomp/tmp/2ufun1324476740.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.3677, df = 142, p-value < 2.2e-16 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.8513355 0.9203182 sample estimates: cor 0.890853 > 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/wessaorg/rcomp/tmp/3u4mw1324476740.tab") > > try(system("convert tmp/1r1uu1324476740.ps tmp/1r1uu1324476740.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.596 0.103 1.695