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(180 + ,182 + ,159 + ,161 + ,175 + ,177 + ,158 + ,161 + ,165 + ,170 + ,155 + ,157 + ,165 + ,167 + ,163 + ,57 + ,180 + ,186 + ,158 + ,161 + ,175 + ,178 + ,165 + ,168 + ,170 + ,171 + ,160 + ,163 + ,174 + ,175 + ,165 + ,166 + ,185 + ,187 + ,165 + ,168 + ,200 + ,197 + ,171 + ,175 + ,178 + ,180 + ,170 + ,170 + ,173 + ,175 + ,168 + ,171 + ,170 + ,173 + ,165 + ,166 + ,170 + ,173 + ,168 + ,169 + ,180 + ,183 + ,160 + ,166 + ,175 + ,178 + ,153 + ,157 + ,173 + ,173 + ,165 + ,166 + ,175 + ,176 + ,161 + ,164 + ,171 + ,174 + ,170 + ,169 + ,175 + ,178 + ,165 + ,166 + ,188 + ,187 + ,160 + ,164 + ,178 + ,178 + ,159 + ,163 + ,180 + ,183 + ,158 + ,160 + ,175 + ,179 + ,173 + ,174 + ,183 + ,182 + ,158 + ,162 + ,170 + ,169 + ,163 + ,165 + ,185 + ,185 + ,169 + ,173 + ,172 + ,176 + ,160 + ,162 + ,180 + ,183 + ,163 + ,165 + ,169 + ,172 + ,161 + ,164 + ,170 + ,173 + ,155 + ,158 + ,165 + ,165 + ,171 + ,175 + ,170 + ,177 + ,163 + ,165 + ,175 + ,180 + ,159 + ,163 + ,185 + ,189 + ,161 + ,166 + ,175 + ,178 + ,150 + ,160 + ,175 + ,173 + ,158 + ,160 + ,180 + ,182 + ,163 + ,165 + ,183 + ,183 + ,175 + ,169 + ,170 + ,168 + ,163 + ,167 + ,183 + ,182 + ,170 + ,170 + ,175 + ,178 + ,165 + ,165 + ,170 + ,173 + ,160 + ,163 + ,183 + ,184 + ,160 + ,162 + ,180 + ,180 + ,161 + ,161 + ,185 + ,189 + ,160 + ,165 + ,182 + ,185 + ,165 + ,169 + ,175 + ,178 + ,153 + ,159 + ,183 + ,183 + ,163 + ,164 + ,171 + ,179 + ,160 + ,163 + ,179 + ,179 + ,160 + ,163 + ,181 + ,184 + ,173 + ,175 + ,183 + ,184 + ,160 + ,164 + ,165 + ,169 + ,150 + ,152 + ,178 + ,178 + ,164 + ,167 + ,175 + ,178 + ,165 + ,166 + ,165 + ,167 + ,163 + ,166 + ,185 + ,185 + ,171 + ,174 + ,175 + ,177 + ,165 + ,167 + ,185 + ,188 + ,163 + ,168 + ,188 + ,191 + ,175 + ,178 + ,175 + ,175 + ,163 + ,165 + ,183 + ,184 + ,153 + ,157 + ,165 + ,169 + ,169 + ,171 + ,174 + ,172 + ,155 + ,157 + ,161 + ,163 + ,163 + ,166 + ,188 + ,191 + ,158 + ,160 + ,165 + ,169 + ,148 + ,148 + ,170 + ,170 + ,160 + ,162 + ,168 + ,168 + ,168 + ,172 + ,178 + ,178 + ,160 + ,163 + ,165 + ,170 + ,163 + ,165 + ,175 + ,178 + ,176 + ,176 + ,173 + ,174 + ,171 + ,171 + ,175 + ,176 + ,155 + ,160 + ,173 + ,173 + ,165 + ,165 + ,180 + ,183 + ,158 + ,157 + ,188 + ,185 + ,170 + ,173 + ,173 + ,173 + ,165 + ,168 + ,175 + ,175 + ,160 + ,162 + ,180 + ,180 + ,152 + ,150 + ,178 + ,181 + ,160 + ,163 + ,178 + ,177 + ,165 + ,167) + ,dim=c(4 + ,83) + ,dimnames=list(c('MREPHT' + ,'MHT' + ,'FREPHT' + ,'FHT') + ,1:83)) > y <- array(NA,dim=c(4,83),dimnames=list(c('MREPHT','MHT','FREPHT','FHT'),1:83)) > 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 = 'CARE Variable Names' > main = 'CARE DATA' > #'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: > 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/www/html/rcomp/tmp/1b1gd1283349755.ps",horizontal=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/www/html/rcomp/tmp/2maff1283349755.ps",horizontal=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] [,3] [,4] [1,] 161 163 152.0 157 [2,] 171 173 159.5 162 [3,] 175 178 163.0 165 [4,] 180 183 165.0 168 [5,] 188 197 173.0 176 $n [1] 83 83 83 83 $conf [,1] [,2] [,3] [,4] [1,] 173.4392 176.2657 162.0461 163.9594 [2,] 176.5608 179.7343 163.9539 166.0406 $out [1] 200 148 150 150 175 175 176 57 148 150 152 178 $group [1] 1 3 3 3 3 3 3 4 4 4 4 4 $names [1] "MREPHT" "MHT" "FREPHT" "FHT" > 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") > > 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,round(r$stats[j,i], digits=2)) + } + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/37bel1283349755.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,round(r$conf[1,i], digits=2)) + a<-table.element(a, round(r$stats[3,i], digits=2)) + a<-table.element(a,round(r$conf[2,i], digits=2)) + a<-table.row.end(a) + } + a<-table.end(a) + table.save(a,file="/var/www/html/rcomp/tmp/4abur1283349755.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,round(mean(z[i], trim=par3/100, na.rm=TRUE), digits=2)) + a<-table.element(a,round(sd(z[i], na.rm=TRUE), digits=2)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/53kuc1283349755.tab") > > try(system("convert tmp/1b1gd1283349755.ps tmp/1b1gd1283349755.png",intern=TRUE)) character(0) > try(system("convert tmp/2maff1283349755.ps tmp/2maff1283349755.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.603 0.341 0.773