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(4.8 + ,5 + ,4.4 + ,4.6 + ,4.8 + ,4.6 + ,5.4 + ,5.4 + ,4.2 + ,5.6 + ,4.2 + ,4 + ,6 + ,5.6 + ,5.2 + ,4 + ,4.6 + ,4.8 + ,6 + ,5.6 + ,5.2 + ,5 + ,4.8 + ,4 + ,4 + ,5.4 + ,4.4 + ,4.4 + ,4.6 + ,5 + ,6 + ,6 + ,5.5 + ,6 + ,6.2 + ,5 + ,4.2 + ,4 + ,4 + ,4 + ,4.4 + ,4 + ,4.2 + ,4.2 + ,4 + ,4.4 + ,4.2 + ,4 + ,4.2 + ,4.6 + ,4 + ,4.6 + ,4 + ,4.4 + ,4 + ,4.2 + ,3.8 + ,4 + ,4.2 + ,4 + ,4.6 + ,4.2 + ,4 + ,4.8 + ,4.4 + ,4 + ,5.67 + ,4.67 + ,5.25 + ,5.33 + ,5.2 + ,5 + ,3.8 + ,3.6 + ,3.6 + ,4.4 + ,3.8 + ,3.8 + ,4.8 + ,5 + ,4.4 + ,5.2 + ,5.2 + ,4.6 + ,4.2 + ,4.6 + ,4 + ,5.2 + ,4.6 + ,4 + ,4 + ,4 + ,4.4 + ,4 + ,4.2 + ,4.6 + ,5.4 + ,5.8 + ,4.33 + ,5.2 + ,5.4 + ,4.67 + ,4.6 + ,5.8 + ,4.6 + ,4.8 + ,4.6 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4.4 + ,4 + ,4.4 + ,5.4 + ,4.4 + ,4.4 + ,5 + ,4.4 + ,5 + ,4.8 + ,5 + ,5.6 + ,4.8 + ,4.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 + ,4.2 + ,4.6 + ,4.8 + ,4.4 + ,4.8 + ,4.8 + ,4 + ,4.4 + ,4.2 + ,4 + ,5 + ,4.8 + ,4 + ,4 + ,4 + ,4 + ,4.2 + ,4 + ,4 + ,4 + ,4.2 + ,4 + ,4 + ,4.4 + ,4 + ,4 + ,4 + ,4.2 + ,4 + ,4 + ,4 + ,4.2 + ,5 + ,4.6 + ,3.8 + ,4.6 + ,4.2 + ,4 + ,4 + ,4.4 + ,4.6 + ,4.2 + ,4 + ,5 + ,5.6 + ,4.4 + ,4 + ,4 + ,4 + ,4.2 + ,4 + ,4 + ,4.2 + ,3.8 + ,4 + ,5.4 + ,5.8 + ,5 + ,5.6 + ,6 + ,5.2 + ,4 + ,4.4 + ,4.2 + ,4 + ,5 + ,4.2 + ,6 + ,5.4 + ,5 + ,5.6 + ,5.4 + ,4.8 + ,3.8 + ,4.2 + ,4 + ,3.8 + ,4.2 + ,4 + ,5 + ,5.2 + ,4.8 + ,5 + ,5.4 + ,4.8 + ,4.4 + ,4.6 + ,4 + ,5.4 + ,5.6 + ,5 + ,5 + ,5.2 + ,4.6 + ,5 + ,5.2 + ,4.6 + ,4.4 + ,4.4 + ,4 + ,4.4 + ,4.4 + ,4 + ,5 + ,4.2 + ,4.4 + ,4.4 + ,4.4 + ,4.4 + ,4.2 + ,4 + ,4 + ,4 + ,4.2 + ,4 + ,4.6 + ,3.8 + ,3.4 + ,5.4 + ,4 + ,3.8 + ,5 + ,5.6 + ,5.8 + ,2.2 + ,4.2 + ,4.5) + ,dim=c(6 + ,96) + ,dimnames=list(c('compmemomean' + ,'compattenmean' + ,'compappliedmean' + ,'specmemmean' + ,'specattenmean' + ,'specappliedmean') + ,1:96)) > y <- array(NA,dim=c(6,96),dimnames=list(c('compmemomean','compattenmean','compappliedmean','specmemmean','specattenmean','specappliedmean'),1:96)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par3 = '2' > par2 = '1' > par1 = 'All Correlations' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, Aston University Statistical Software (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_AUSS.wasp/ > #Source of accompanying publication: > #Technical description: > par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > x <- t(y) > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > a<-table.start() > a <- table.row.start(a) > a <- table.element(a,'Correlation X-Y',3,TRUE) > a <- table.row.end(a) > a <- table.row.start(a) > a <- table.element(a,'',1,TRUE) > a <- table.element(a,'Estimate',1,TRUE) > a <- table.element(a,'P-value',1,TRUE) > a <- table.row.end(a) > if ((par1 == 'Pearson Correlation') | (par1 == 'All Correlations')) { + (r <- cor.test(x[,par2],x[,par3],method='pearson')) + a<-table.row.start(a) + a<-table.element(a,'Pearson correlation',1,TRUE) + a<-table.element(a,r$estimate[[1]]) + a<-table.element(a,r$p.value) + a<-table.row.end(a) + } > if ((par1 == 'Spearman Correlation') | (par1 == 'All Correlations')) { + (r <- cor.test(x[,par2],x[,par3],method='spearman')) + a<-table.row.start(a) + a<-table.element(a,'Spearman correlation',1,TRUE) + a<-table.element(a,r$estimate[[1]]) + a<-table.element(a,r$p.value) + a<-table.row.end(a) + } Warning message: In cor.test.default(x[, par2], x[, par3], method = "spearman") : Cannot compute exact p-values with ties > if ((par1 == 'Kendall Correlation') | (par1 == 'All Correlations')) { + (r <- cor.test(x[,par2],x[,par3],method='kendall')) + a<-table.row.start(a) + a<-table.element(a,'Kendall correlation',1,TRUE) + a<-table.element(a,r$estimate[[1]]) + a<-table.element(a,r$p.value) + a<-table.row.end(a) + } > postscript(file="/var/www/html/rcomp/tmp/12m9a1257087556.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(x[,par2],x[,par3],main='Scatterplot',xlab=colnames(x)[par2],ylab=colnames(x)[par3]) > dev.off() null device 1 > a <- table.row.start(a) > a <- table.element(a,hyperlink('http://www.wessa.net/Ian.Holliday/rwasp_CARE Data Boxplot.wasp','Go to Scatterplot Matrix and Boxplots','click here to compute the Scatter Plot Matrix and Boxplots about the data set.'),3) > a <- table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/20due1257087556.tab") > > system("convert tmp/12m9a1257087556.ps tmp/12m9a1257087556.png") > > > proc.time() user system elapsed 0.452 0.168 0.551