R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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 + ,15 + ,10 + ,77 + ,5 + ,4 + ,15 + ,11 + ,12 + ,13 + ,6 + ,0 + ,12 + ,20 + ,63 + ,6 + ,4 + ,9 + ,12 + ,7 + ,11 + ,4 + ,0 + ,15 + ,16 + ,73 + ,4 + ,10 + ,12 + ,12 + ,13 + ,14 + ,6 + ,0 + ,12 + ,10 + ,76 + ,6 + ,6 + ,15 + ,11 + ,11 + ,12 + ,5 + ,0 + ,14 + ,8 + ,90 + ,3 + ,5 + ,17 + ,11 + ,16 + ,12 + ,5 + ,0 + ,8 + ,14 + ,67 + ,10 + ,8 + ,14 + ,10 + ,10 + ,6 + ,4 + ,1 + ,11 + ,19 + ,69 + ,8 + ,9 + ,9 + ,11 + ,15 + ,10 + ,5 + ,1 + ,15 + ,15 + ,70 + ,3 + ,6 + ,12 + ,9 + ,5 + ,11 + ,3 + ,0 + ,4 + ,23 + ,54 + ,4 + ,8 + ,11 + ,10 + ,4 + ,10 + ,2 + ,0 + ,13 + ,9 + ,54 + ,3 + ,11 + ,13 + ,12 + ,7 + ,12 + ,5 + ,1 + ,19 + ,12 + ,76 + ,5 + ,6 + ,16 + ,12 + ,15 + ,15 + ,6 + ,1 + ,10 + ,14 + ,75 + ,5 + ,8 + ,16 + ,12 + ,5 + ,13 + ,6 + ,1 + ,15 + ,13 + ,76 + ,6 + ,11 + ,15 + ,13 + ,16 + ,18 + ,8 + ,0 + ,6 + ,11 + ,80 + ,5 + ,5 + ,10 + ,9 + ,15 + ,11 + ,6 + ,1 + ,7 + ,11 + ,89 + ,3 + ,10 + ,16 + ,12 + ,13 + ,12 + ,3 + ,0 + ,14 + ,10 + ,73 + ,4 + ,7 + ,12 + ,12 + ,13 + ,13 + ,6 + ,0 + ,16 + ,12 + ,74 + ,8 + ,7 + ,15 + ,12 + ,15 + ,14 + ,6 + ,1 + ,16 + ,18 + ,78 + ,8 + ,13 + ,13 + ,12 + ,15 + ,16 + ,7 + ,1 + ,14 + ,12 + ,76 + ,8 + ,10 + ,18 + ,13 + ,10 + ,16 + ,8 + ,0 + ,15 + ,10 + ,69 + ,5 + ,8 + ,13 + ,11 + ,17 + ,16 + ,6 + ,1 + ,14 + ,15 + ,74 + ,8 + ,6 + ,17 + ,12 + ,14 + ,15 + ,7 + ,1 + ,12 + ,15 + ,82 + ,2 + ,8 + ,14 + ,12 + ,9 + ,13 + ,4 + ,0 + ,9 + ,12 + ,77 + ,0 + ,7 + ,13 + ,15 + ,6 + ,8 + ,4 + ,1 + ,12 + ,9 + ,84 + ,5 + ,5 + ,13 + ,11 + ,11 + ,14 + ,2 + ,1 + ,14 + ,11 + ,75 + ,2 + ,9 + ,15 + ,12 + ,13 + ,15 + ,6 + ,1 + ,12 + ,15 + ,54 + ,7 + ,9 + ,13 + ,10 + ,12 + ,13 + ,6 + ,1 + ,14 + ,16 + ,79 + ,5 + ,11 + ,15 + ,11 + ,10 + ,16 + ,6 + ,1 + ,10 + ,17 + ,79 + ,2 + ,11 + ,13 + ,13 + ,4 + ,13 + ,6 + ,1 + ,14 + ,12 + ,69 + ,12 + ,11 + ,14 + ,6 + ,13 + ,12 + ,6 + ,1 + ,16 + ,11 + ,88 + ,7 + ,9 + ,13 + ,12 + ,15 + ,15 + ,7 + ,1 + ,10 + ,13 + ,57 + ,0 + ,7 + ,16 + ,12 + ,8 + ,11 + ,4 + ,1 + ,8 + ,9 + ,69 + ,2 + ,6 + ,14 + ,10 + ,10 + ,14 + ,3 + ,1 + ,12 + ,11 + ,86 + ,3 + ,6 + ,18 + ,12 + ,8 + ,13 + ,5 + ,1 + ,11 + ,9 + ,65 + ,0 + ,6 + ,15 + ,12 + ,7 + ,13 + ,6 + ,0 + ,8 + ,20 + ,66 + ,9 + ,5 + ,9 + ,11 + ,9 + ,12 + ,4 + ,0 + ,13 + ,8 + ,54 + ,2 + ,4 + ,16 + ,9 + ,14 + ,14 + ,6 + ,1 + ,11 + ,12 + ,85 + ,3 + ,10 + ,16 + ,10 + ,5 + ,13 + ,3 + ,0 + ,12 + ,10 + ,79 + ,1 + ,8 + ,17 + ,12 + ,7 + ,12 + ,3 + ,0 + ,16 + ,11 + ,84 + ,10 + ,6 + ,13 + ,12 + ,16 + ,14 + ,6 + ,1 + ,16 + ,13 + ,70 + ,1 + ,5 + ,17 + ,11 + ,14 + ,15 + ,6 + ,1 + ,13 + ,13 + ,54 + ,4 + ,9 + ,15 + ,12 + ,16 + ,16 + ,6 + ,1 + ,14 + ,13 + ,70 + ,6 + ,10 + ,14 + ,11 + ,15 + ,15 + ,8 + ,0 + ,5 + ,15 + ,54 + ,6 + ,6 + ,10 + ,14 + ,4 + ,5 + ,2 + ,0 + ,14 + ,12 + ,69 + ,4 + ,9 + ,13 + ,10 + ,12 + ,15 + ,6 + ,1 + ,13 + ,13 + ,68 + ,4 + ,10 + ,11 + ,10 + ,8 + ,8 + ,4 + ,1 + ,16 + ,13 + ,68 + ,7 + ,6 + ,11 + ,11 + ,17 + ,16 + ,7 + ,0 + ,14 + ,9 + ,71 + ,7 + ,6 + ,16 + ,11 + ,15 + ,16 + ,6 + ,0 + ,15 + ,9 + ,71 + ,7 + ,6 + ,16 + ,11 + ,16 + ,14 + ,6 + ,1 + ,15 + ,14 + ,66 + ,0 + ,13 + ,11 + ,10 + ,12 + ,16 + ,6 + ,1 + ,11 + ,9 + ,67 + ,3 + ,8 + ,15 + ,10 + ,12 + ,14 + ,5 + ,1 + ,15 + ,9 + ,71 + ,8 + ,10 + ,15 + ,12 + ,13 + ,13 + ,6 + ,1 + ,16 + ,15 + ,54 + ,8 + ,5 + ,12 + ,11 + ,14 + ,14 + ,6 + ,1 + ,13 + ,10 + ,76 + ,10 + ,8 + ,17 + ,8 + ,14 + ,14 + ,5 + ,0 + ,11 + ,13 + ,77 + ,11 + ,6 + ,15 + ,12 + ,15 + ,12 + ,6 + ,0 + ,12 + ,8 + ,71 + ,6 + ,9 + ,16 + ,10 + ,14 + ,13 + ,7 + ,1 + ,12 + ,15 + ,69 + ,2 + ,9 + ,14 + ,7 + ,11 + ,15 + ,5 + ,1 + ,10 + ,13 + ,73 + ,6 + ,7 + ,17 + ,11 + ,13 + ,15 + ,6 + ,1 + ,8 + ,24 + ,46 + ,1 + ,20 + ,10 + ,7 + ,4 + ,13 + ,6 + ,0 + ,9 + ,11 + ,66 + ,5 + ,8 + ,11 + ,11 + ,8 + ,10 + ,4 + ,1 + ,12 + ,13 + ,77 + ,4 + ,8 + ,15 + ,8 + ,13 + ,13 + ,5 + ,0 + ,14 + ,12 + ,77 + ,6 + ,7 + ,15 + ,11 + ,15 + ,14 + ,6 + ,1 + ,12 + ,22 + ,70 + ,6 + ,7 + ,7 + ,12 + ,15 + ,13 + ,6 + ,0 + ,11 + ,11 + ,86 + ,4 + ,10 + ,17 + ,8 + ,8 + ,13 + ,4 + ,0 + ,14 + ,15 + ,38 + ,1 + ,5 + ,14 + ,14 + ,17 + ,18 + ,6 + ,0 + ,7 + ,7 + ,66 + ,6 + ,8 + ,18 + ,14 + ,12 + ,12 + ,4 + ,0 + ,16 + ,14 + ,75 + ,7 + ,9 + ,14 + ,11 + ,13 + ,14 + ,7 + ,1 + ,16 + ,19 + ,80 + ,7 + ,9 + ,12 + ,12 + ,14 + ,16 + ,8 + ,0 + ,11 + ,10 + ,64 + ,2 + ,20 + ,14 + ,14 + ,7 + ,13 + ,6 + ,1 + ,16 + ,9 + ,80 + ,7 + ,6 + ,9 + ,9 + ,16 + ,16 + ,6 + ,1 + ,13 + ,12 + ,86 + ,8 + ,10 + ,14 + ,13 + ,11 + ,15 + ,6 + ,1 + ,11 + ,16 + ,54 + ,5 + ,11 + ,11 + ,8 + ,10 + ,14 + ,5 + ,1 + ,13 + ,13 + ,74 + ,4 + ,7 + ,16 + ,11 + ,14 + ,13 + ,6 + ,1 + ,14 + ,11 + ,88 + ,2 + ,12 + ,17 + ,9 + ,19 + ,12 + ,6 + ,1 + ,15 + ,12 + ,85 + ,0 + ,12 + ,16 + ,12 + ,14 + ,16 + ,4 + ,0 + ,10 + ,11 + ,63 + ,7 + ,8 + ,12 + ,7 + ,8 + ,9 + ,5 + ,1 + ,15 + ,13 + ,81 + ,0 + ,6 + ,15 + ,11 + ,15 + ,15 + ,8 + ,0 + ,11 + ,13 + ,81 + ,5 + ,6 + ,15 + ,12 + ,8 + ,16 + ,6 + ,1 + ,11 + ,10 + ,74 + ,3 + ,9 + ,15 + ,11 + ,8 + ,12 + ,6 + ,1 + ,6 + ,11 + ,80 + ,3 + ,5 + ,16 + ,12 + ,6 + ,11 + ,2 + ,1 + ,11 + ,9 + ,80 + ,3 + ,11 + ,16 + ,9 + ,7 + ,13 + ,2 + ,0 + ,12 + ,13 + ,60 + ,3 + ,6 + ,11 + ,11 + ,16 + ,13 + ,4 + ,0 + ,13 + ,15 + ,65 + ,7 + ,6 + ,15 + ,13 + ,15 + ,14 + ,6 + ,1 + ,12 + ,14 + ,62 + ,6 + ,10 + ,12 + ,12 + ,10 + ,15 + ,6 + ,0 + ,8 + ,14 + ,63 + ,3 + ,8 + ,14 + ,12 + ,8 + ,14 + ,5 + ,1 + ,9 + ,11 + ,89 + ,0 + ,7 + ,15 + ,11 + ,9 + ,12 + ,4 + ,1 + ,10 + ,10 + ,76 + ,2 + ,8 + ,17 + ,12 + ,8 + ,16 + ,4 + ,1 + ,16 + ,11 + ,81 + ,0 + ,9 + ,19 + ,12 + ,14 + ,14 + ,6 + ,1 + ,15 + ,12 + ,72 + ,9 + ,8 + ,15 + ,11 + ,14 + ,13 + ,5 + ,0 + ,14 + ,14 + ,84 + ,10 + ,10 + ,16 + ,11 + ,14 + ,12 + ,6 + ,1 + ,12 + ,14 + ,76 + ,3 + ,13 + ,14 + ,8 + ,15 + ,13 + ,7 + ,1 + ,12 + ,21 + ,76 + ,7 + ,7 + ,16 + ,9 + ,7 + ,12 + ,6 + ,1 + ,10 + ,14 + ,78 + ,3 + ,7 + ,15 + ,11 + ,7 + ,9 + ,4 + ,1 + ,12 + ,13 + ,72 + ,6 + ,7 + ,15 + ,12 + ,12 + ,13 + ,4 + ,0 + ,8 + ,11 + ,81 + ,5 + ,8 + ,17 + ,13 + ,7 + ,10 + ,3 + ,1 + ,16 + ,12 + ,72 + ,0 + ,9 + ,12 + ,12 + ,12 + ,15 + ,8 + ,1 + ,11 + ,12 + ,78 + ,0 + ,9 + ,18 + ,6 + ,6 + ,9 + ,4 + ,1 + ,12 + ,11 + ,79 + ,4 + ,8 + ,13 + ,12 + ,10 + ,13 + ,4 + ,1 + ,9 + ,14 + ,52 + ,0 + ,7 + ,14 + ,11 + ,12 + ,13 + ,5 + ,0 + ,14 + ,13 + ,67 + ,0 + ,6 + ,14 + ,13 + ,13 + ,13 + ,5 + ,0 + ,15 + ,13 + ,74 + ,7 + ,8 + ,14 + ,11 + ,14 + ,15 + ,7 + ,0 + ,8 + ,12 + ,73 + ,3 + ,8 + ,12 + ,12 + ,8 + ,13 + ,4 + ,1 + ,12 + ,14 + ,69 + ,9 + ,4 + ,14 + ,10 + ,14 + ,14 + ,5 + ,0 + ,10 + ,12 + ,67 + ,4 + ,8 + ,12 + ,10 + ,10 + ,11 + ,5 + ,1 + ,16 + ,12 + ,76 + ,4 + ,10 + ,15 + ,11 + ,14 + ,15 + ,8 + ,1 + ,17 + ,12 + ,77 + ,15 + ,7 + ,11 + ,11 + ,15 + ,14 + ,5 + ,0 + ,8 + ,18 + ,63 + ,7 + ,8 + ,11 + ,11 + ,10 + ,15 + ,2 + ,1 + ,9 + ,11 + ,84 + ,8 + ,7 + ,15 + ,9 + ,6 + ,12 + ,5 + ,1 + ,8 + ,15 + ,90 + ,2 + ,10 + ,14 + ,7 + ,9 + ,15 + ,4 + ,0 + ,11 + ,13 + ,75 + ,8 + ,9 + ,15 + ,11 + ,11 + ,14 + ,5 + ,1 + ,16 + ,11 + ,76 + ,7 + ,8 + ,16 + ,12 + ,16 + ,16 + ,7 + ,0 + ,13 + ,11 + ,75 + ,3 + ,8 + ,12 + ,12 + ,14 + ,14 + ,6 + ,1 + ,5 + ,22 + ,53 + ,3 + ,5 + ,14 + ,15 + ,8 + ,12 + ,3 + ,1 + ,15 + ,10 + ,87 + ,6 + ,8 + ,18 + ,11 + ,16 + ,11 + ,5 + ,1 + ,15 + ,11 + ,78 + ,8 + ,9 + ,14 + ,10 + ,16 + ,13 + ,6 + ,1 + ,12 + ,15 + ,54 + ,5 + ,11 + ,13 + ,13 + ,14 + ,12 + ,5 + ,0 + ,12 + ,14 + ,58 + ,6 + ,7 + ,14 + ,13 + ,12 + ,12 + ,6 + ,1 + ,16 + ,11 + ,80 + ,10 + ,8 + ,14 + ,11 + ,16 + ,16 + ,7 + ,1 + ,12 + ,10 + ,74 + ,0 + ,4 + ,17 + ,12 + ,15 + ,13 + ,6 + ,1 + ,10 + ,14 + ,56 + ,5 + ,16 + ,12 + ,12 + ,11 + ,12 + ,6 + ,1 + ,12 + ,14 + ,82 + ,0 + ,9 + ,16 + ,12 + ,6 + ,14 + ,5 + ,1 + ,4 + ,11 + ,64 + ,0 + ,16 + ,15 + ,8 + ,6 + ,4 + ,4 + ,0 + ,11 + ,15 + ,67 + ,5 + ,12 + ,10 + ,5 + ,16 + ,14 + ,6 + ,0 + ,16 + ,11 + ,75 + ,10 + ,8 + ,13 + ,11 + ,16 + ,15 + ,6 + ,0 + ,7 + ,10 + ,69 + ,0 + ,4 + ,15 + ,12 + ,8 + ,12 + ,3 + ,1 + ,9 + ,10 + ,72 + ,5 + ,11 + ,16 + ,12 + ,11 + ,11 + ,4 + ,0 + ,14 + ,16 + ,71 + ,6 + ,11 + ,15 + ,11 + ,12 + ,12 + ,4 + ,1 + ,11 + ,12 + ,54 + ,1 + ,8 + ,14 + ,12 + ,13 + ,11 + ,4 + ,1 + ,10 + ,14 + ,68 + ,5 + ,8 + ,11 + ,10 + ,11 + ,12 + ,5 + ,0 + ,6 + ,15 + ,54 + ,3 + ,12 + ,13 + ,7 + ,9 + ,11 + ,4 + ,1 + ,14 + ,10 + ,71 + ,3 + ,8 + ,17 + ,12 + ,15 + ,13 + ,6 + ,1 + ,11 + ,12 + ,53 + ,6 + ,6 + ,14 + ,12 + ,11 + ,12 + ,6 + ,1 + ,11 + ,15 + ,54 + ,2 + ,8 + ,16 + ,9 + ,12 + ,12 + ,4 + ,0 + ,9 + ,12 + ,71 + ,5 + ,6 + ,15 + ,11 + ,15 + ,15 + ,7 + ,1 + ,16 + ,11 + ,69 + ,6 + ,14 + ,12 + ,12 + ,8 + ,14 + ,4 + ,0 + ,7 + ,10 + ,30 + ,2 + ,10 + ,16 + ,12 + ,7 + ,12 + ,4 + ,0 + ,8 + ,20 + ,53 + ,3 + ,5 + ,8 + ,11 + ,10 + ,12 + ,4 + ,0 + ,10 + ,19 + ,68 + ,7 + ,8 + ,9 + ,11 + ,9 + ,12 + ,4 + ,1 + ,14 + ,17 + ,69 + ,6 + ,12 + ,13 + ,12 + ,13 + ,13 + ,5 + ,1 + ,9 + ,8 + ,54 + ,3 + ,11 + ,19 + ,12 + ,11 + ,11 + ,4 + ,1 + ,13 + ,17 + ,66 + ,6 + ,8 + ,11 + ,11 + ,12 + ,13 + ,7 + ,0 + ,13 + ,11 + ,79 + ,9 + ,8 + ,15 + ,12 + ,5 + ,12 + ,3 + ,0 + ,12 + ,13 + ,67 + ,2 + ,9 + ,11 + ,12 + ,12 + ,14 + ,5 + ,0 + ,11 + ,9 + ,74 + ,5 + ,6 + ,15 + ,8 + ,14 + ,15 + ,5 + ,0 + ,10 + ,10 + ,86 + ,10 + ,5 + ,16 + ,15 + ,15 + ,15 + ,6 + ,1 + ,12 + ,13 + ,63 + ,9 + ,8 + ,15 + ,11 + ,14 + ,13 + ,5 + ,1 + ,14 + ,16 + ,69 + ,8 + ,7 + ,12 + ,11 + ,13 + ,16 + ,6 + ,0 + ,11 + ,12 + ,73 + ,8 + ,4 + ,16 + ,6 + ,14 + ,17 + ,6 + ,0 + ,13 + ,14 + ,69 + ,5 + ,9 + ,15 + ,13 + ,14 + ,13 + ,3 + ,0 + ,14 + ,11 + ,71 + ,9 + ,5 + ,13 + ,12 + ,15 + ,14 + ,6 + ,1 + ,13 + ,13 + ,77 + ,9 + ,9 + ,14 + ,12 + ,13 + ,13 + ,5 + ,1 + ,16 + ,15 + ,74 + ,14 + ,12 + ,11 + ,12 + ,14 + ,16 + ,8 + ,1 + ,13 + ,14 + ,82 + ,5 + ,6 + ,15 + ,12 + ,11 + ,13 + ,6 + ,1 + ,12 + ,14 + ,54 + ,12 + ,4 + ,16 + ,12 + ,14 + ,14 + ,4 + ,1 + ,9 + ,14 + ,54 + ,6 + ,6 + ,14 + ,10 + ,11 + ,13 + ,3 + ,1 + ,14 + ,10 + ,80 + ,6 + ,7 + ,13 + ,12 + ,8 + ,14 + ,4 + ,0 + ,15 + ,8 + ,76 + ,8 + ,9 + ,15 + ,12 + ,12 + ,16 + ,7) + ,dim=c(11 + ,156) + ,dimnames=list(c('Gender' + ,'Popularity' + ,'Depression' + ,'Belonging' + ,'WeightedPopularity' + ,'ParentalCriticism' + ,'Happiness' + ,'FindingFriends' + ,'KnowingPeople' + ,'Liked' + ,'Celebrity') + ,1:156)) > y <- array(NA,dim=c(11,156),dimnames=list(c('Gender','Popularity','Depression','Belonging','WeightedPopularity','ParentalCriticism','Happiness','FindingFriends','KnowingPeople','Liked','Celebrity'),1:156)) > 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: Patrick Wessa > #To cite this work: Patrick Wessa, (2010), Multivariate Correlation Matrix (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/Patrick.Wessa/rwasp_pairs.wasp#output/ > #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/html/rcomp/tmp/1vjl11291925766.ps",horizontal=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/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > n <- length(y[,1]) > n [1] 11 > 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/html/rcomp/tmp/2g1k71291925766.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 = 2.3076, df = 154, p-value = 0.02236 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.02643364 0.33046234 sample estimates: cor 0.182815 > 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 50 or more warnings (use warnings() to see the first 50) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/3cb0g1291925766.tab") > try(system("convert tmp/1vjl11291925766.ps tmp/1vjl11291925766.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.210 0.784 7.768