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(70.80 + ,70.94 + ,69.60 + ,70.61 + ,69.87 + ,68.61 + ,67.47 + ,68.28 + ,67.60 + ,67.61 + ,67.13 + ,65.61 + ,66.27 + ,68.94 + ,66.73 + ,67.28 + ,68.07 + ,64.94 + ,67.80 + ,67.94 + ,64.80 + ,64.94 + ,64.60 + ,65.94 + ,64.20 + ,66.61 + ,64.20 + ,64.61 + ,63.67 + ,63.94 + ,61.00 + ,64.61 + ,59.67 + ,63.61 + ,59.67 + ,62.94 + ,59.80 + ,62.94 + ,60.73 + ,63.61 + ,59.40 + ,61.61 + ,58.07 + ,63.61 + ,57.47 + ,60.28 + ,70.73 + ,57.94 + ,72.87 + ,62.94 + ,66.00 + ,53.61 + ,66.07 + ,75.61 + ,66.00 + ,74.61 + ,66.27 + ,73.28 + ,64.00 + ,70.28 + ,63.67 + ,70.28 + ,63.73 + ,67.61 + ,63.33 + ,69.61 + ,63.53 + ,68.61 + ,63.53 + ,68.28 + ,62.87 + ,65.94 + ,59.53 + ,67.94 + ,62.80 + ,68.94 + ,60.80 + ,65.94 + ,59.80 + ,66.28 + ,56.67 + ,65.61 + ,57.67 + ,67.94 + ,58.40 + ,65.61 + ,55.47 + ,66.61 + ,56.20 + ,63.94 + ,71.53 + ,63.61 + ,68.67 + ,65.94 + ,65.67 + ,62.94 + ,66.73 + ,62.28 + ,67.33 + ,60.94 + ,66.73 + ,63.94 + ,66.87 + ,62.28 + ,65.80 + ,61.28 + ,64.73 + ,61.94 + ,65.47 + ,62.94 + ,63.60 + ,59.61 + ,64.07 + ,60.28 + ,64.67 + ,59.94 + ,63.73 + ,57.61 + ,62.53 + ,57.94 + ,61.93 + ,55.28 + ,62.67 + ,51.28 + ,62.80 + ,8.61 + ,61.33 + ,74.28 + ,62.60 + ,72.94 + ,59.13 + ,71.94 + ,61.27 + ,70.28 + ,59.47 + ,69.94 + ,57.87 + ,69.94 + ,59.73 + ,67.94 + ,61.40 + ,67.94 + ,58.80 + ,68.28 + ,58.33 + ,66.28 + ,57.47 + ,66.28 + ,57.13 + ,65.94 + ,55.00 + ,65.94 + ,51.53 + ,67.61 + ,72.73 + ,65.28 + ,73.00 + ,66.61 + ,70.80 + ,64.61 + ,70.07 + ,64.61 + ,71.67 + ,64.94 + ,71.07 + ,61.94 + ,70.67 + ,62.61 + ,70.73 + ,62.28 + ,70.73 + ,61.61 + ,68.60 + ,60.94 + ,69.60 + ,62.28 + ,66.47 + ,59.61 + ,67.07 + ,59.94 + ,68.67 + ,58.94 + ,66.93 + ,60.61 + ,65.93 + ,59.28 + ,68.87 + ,59.28 + ,66.53 + ,58.94 + ,65.80 + ,58.61 + ,66.60 + ,53.28 + ,66.00 + ,52.61 + ,65.00 + ,53.94 + ,66.80 + ,47.94 + ,65.60 + ,10.61 + ,66.00 + ,7.28 + ,65.67 + ,70.94 + ,64.67 + ,71.61 + ,65.07 + ,69.61 + ,64.67 + ,70.28 + ,65.07 + ,69.94 + ,65.20 + ,70.94 + ,64.87 + ,69.94 + ,63.47 + ,69.28 + ,62.60 + ,68.94 + ,64.07 + ,70.94 + ,63.73 + ,67.94 + ,64.67 + ,67.61 + ,61.60 + ,67.94 + ,61.60 + ,67.61 + ,60.47 + ,67.94 + ,61.27 + ,67.28 + ,63.00 + ,65.94 + ,61.47 + ,65.61 + ,60.87 + ,64.94 + ,61.67 + ,64.28 + ,62.87 + ,65.94 + ,62.40 + ,65.61 + ,59.73 + ,62.94 + ,60.13 + ,64.61 + ,58.80 + ,63.94 + ,59.60 + ,63.61 + ,58.93 + ,63.94 + ,60.13 + ,65.28 + ,58.20 + ,65.28 + ,58.27 + ,64.28 + ,58.27 + ,64.28 + ,55.07 + ,62.94 + ,53.87 + ,62.61 + ,52.33 + ,62.28 + ,47.20 + ,60.61 + ,37.93 + ,58.94 + ,72.73 + ,59.61 + ,70.07 + ,58.28 + ,70.67 + ,56.94 + ,72.07 + ,48.28 + ,68.80 + ,69.94 + ,68.80 + ,69.28 + ,67.47 + ,70.61 + ,66.73 + ,68.28 + ,66.53 + ,66.61 + ,66.00 + ,65.61 + ,67.60 + ,67.28 + ,66.00 + ,67.94 + ,66.00 + ,66.28 + ,66.53 + ,65.61 + ,65.80 + ,68.94 + ,64.27 + ,66.94 + ,64.67 + ,68.28 + ,64.60 + ,65.28 + ,64.13 + ,64.94 + ,65.47 + ,63.94 + ,62.93 + ,64.61 + ,63.53 + ,60.94 + ,62.13 + ,60.94 + ,63.87 + ,58.61 + ,64.67 + ,55.28 + ,63.33 + ,55.28 + ,63.13 + ,51.28 + ,62.80 + ,72.28 + ,62.40 + ,69.28 + ,62.40 + ,68.28 + ,62.60 + ,68.28 + ,61.47 + ,68.28 + ,62.20 + ,66.28 + ,63.00 + ,65.28 + ,61.80 + ,64.28 + ,59.73 + ,64.28 + ,60.33 + ,66.28 + ,60.13 + ,64.28 + ,59.53 + ,63.28 + ,59.00 + ,65.28 + ,55.93 + ,64.28 + ,41.87 + ,64.28 + ,36.33 + ,62.28 + ,71.67 + ,62.28 + ,71.47 + ,64.28 + ,70.47 + ,62.28 + ,69.53 + ,63.28 + ,70.73 + ,60.28 + ,69.93 + ,58.28 + ,68.73 + ,55.28 + ,67.53 + ,51.28) + ,dim=c(2 + ,189) + ,dimnames=list(c('placement' + ,'nonplacement') + ,1:189)) > y <- array(NA,dim=c(2,189),dimnames=list(c('placement','nonplacement'),1:189)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par3 = '0' > par2 = 'TRUE' > par1 = '3' > ylab = 'Test Scores' > xlab = 'placement nonplacement' > main = 'final year equal means' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2011, 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: > par1 <- as.numeric(par1) #colour > par2<- as.logical(par2) # Notches ? > par3<-as.numeric(par3) # % trim > if(par3>45){par3<-45;warning('trim limited to 45%')} > if(par3<0){par3<-0;warning('negative trim makes no sense. Trim is zero.')} > lotrm<-as.integer(length(y[1,])*par3/100)+1 > hitrm<-as.integer(length(y[1,])*(100-par3)/100) > y1<-array(dim=c(dim(y)[1], hitrm-lotrm+1), dimnames=list(dimnames(y)[[1]], 1:(hitrm-lotrm+1) )) > for(i in 1:dim(y)[1]){ + tmp<-order(y[i,]) + y1[i,]<- y[i, tmp[lotrm:hitrm] ] + } > postscript(file="/var/wessaorg/rcomp/tmp/14l2s1320759278.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > pairs(t(y)) > dev.off() null device 1 > y<-y1 > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/2k9e91320759278.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > (r<-boxplot(z ,xlab=xlab,ylab=ylab,main=main,notch=par2,col=par1)) $stats [,1] [,2] [1,] 52.33 53.28 [2,] 60.80 61.94 [3,] 64.07 64.94 [4,] 66.73 67.94 [5,] 73.00 75.61 $n [1] 189 189 $conf [,1] [,2] [1,] 63.38848 64.25043 [2,] 64.75152 65.62957 $out [1] 36.33 37.93 41.87 47.20 51.53 7.28 8.61 10.61 47.94 48.28 51.28 51.28 [13] 51.28 52.61 $group [1] 1 1 1 1 1 2 2 2 2 2 2 2 2 2 $names [1] "placement" "nonplacement" > 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") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/overview.htm','Boxplot statistics','Boxplot overview'),6,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Variable',1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/lower_whisker.htm','lower whisker','definition of lower whisker'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/lower_hinge.htm','lower hinge','definition of lower hinge'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/central_tendency.htm','median','definitions about measures of central tendency'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/upper_hinge.htm','upper hinge','definition of upper hinge'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/upper_whisker.htm','upper whisker','definition of upper whisker'),1,TRUE) > a<-table.row.end(a) > for (i in 1:length(y[,1])) + { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],1,TRUE) + for (j in 1:5) + { + a<-table.element(a,signif(r$stats[j,i], digits=4)) + } + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/3gcct1320759278.tab") > if (par2){ + a<-table.start() + a<-table.row.start(a) + a<-table.element(a,'Boxplot Notches',4,TRUE) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'Variable',1,TRUE) + a<-table.element(a,'lower bound',1,TRUE) + a<-table.element(a,'median',1,TRUE) + a<-table.element(a,'upper bound',1,TRUE) + a<-table.row.end(a) + for (i in 1:length(y[,1])) + { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],1,TRUE) + a<-table.element(a,signif(r$conf[1,i], digits=4)) + a<-table.element(a, signif(r$stats[3,i], digits=4)) + a<-table.element(a,signif(r$conf[2,i], digits=4)) + a<-table.row.end(a) + } + a<-table.end(a) + table.save(a,file="/var/wessaorg/rcomp/tmp/4hi8i1320759278.tab") + } > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Boxplot Means',4,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Variable',1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/trimmed_mean.htm','trimmed mean','definition of trimmed mean'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/unbiased1.htm','unbiased SD','definition of unbiased SD'),1,TRUE) > a<-table.row.end(a) > for (i in 1:length(y[,1])) + { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],1,TRUE) + a<-table.element(a,signif(mean(z[i], trim=par3/100, na.rm=TRUE), digits=4)) + a<-table.element(a,signif(sd(z[i], na.rm=TRUE), digits=4)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/5yeqw1320759278.tab") > > try(system("convert tmp/14l2s1320759278.ps tmp/14l2s1320759278.png",intern=TRUE)) character(0) > try(system("convert tmp/2k9e91320759278.ps tmp/2k9e91320759278.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.858 0.109 0.978