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('yes' + ,17.6 + ,'yes' + ,36.33333333 + ,'yes' + ,37.93333333 + ,'yes' + ,41.86666667 + ,'yes' + ,47.2 + ,'yes' + ,51.53333333 + ,'yes' + ,52.33333333 + ,'yes' + ,52.66666667 + ,'yes' + ,53.86666667 + ,'yes' + ,54.2 + ,'yes' + ,54.73333333 + ,'yes' + ,55 + ,'yes' + ,55.06666667 + ,'yes' + ,55.46666667 + ,'yes' + ,55.93333333 + ,'yes' + ,56.2 + ,'yes' + ,56.33333333 + ,'yes' + ,56.66666667 + ,'yes' + ,57.13333333 + ,'yes' + ,57.46666667 + ,'yes' + ,57.46666667 + ,'yes' + ,57.66666667 + ,'yes' + ,57.66666667 + ,'yes' + ,57.8 + ,'yes' + ,57.86666667 + ,'yes' + ,58.06666667 + ,'yes' + ,58.2 + ,'yes' + ,58.26666667 + ,'yes' + ,58.26666667 + ,'yes' + ,58.33333333 + ,'yes' + ,58.4 + ,'yes' + ,58.8 + ,'yes' + ,58.8 + ,'yes' + ,58.93333333 + ,'yes' + ,59 + ,'yes' + ,59.13333333 + ,'yes' + ,59.13333333 + ,'yes' + ,59.4 + ,'yes' + ,59.46666667 + ,'yes' + ,59.53333333 + ,'yes' + ,59.53333333 + ,'yes' + ,59.53333333 + ,'yes' + ,59.6 + ,'yes' + ,59.66666667 + ,'yes' + ,59.66666667 + ,'yes' + ,59.73333333 + ,'yes' + ,59.73333333 + ,'yes' + ,59.73333333 + ,'yes' + ,59.8 + ,'yes' + ,59.8 + ,'yes' + ,59.86666667 + ,'yes' + ,60.13333333 + ,'yes' + ,60.13333333 + ,'yes' + ,60.13333333 + ,'yes' + ,60.33333333 + ,'yes' + ,60.4 + ,'yes' + ,60.46666667 + ,'yes' + ,60.73333333 + ,'yes' + ,60.8 + ,'yes' + ,60.86666667 + ,'yes' + ,61 + ,'yes' + ,61 + ,'yes' + ,61.26666667 + ,'yes' + ,61.26666667 + ,'yes' + ,61.33333333 + ,'yes' + ,61.4 + ,'yes' + ,61.4 + ,'yes' + ,61.46666667 + ,'yes' + ,61.46666667 + ,'yes' + ,61.6 + ,'yes' + ,61.6 + ,'yes' + ,61.6 + ,'yes' + ,61.66666667 + ,'yes' + ,61.8 + ,'yes' + ,61.86666667 + ,'yes' + ,61.93333333 + ,'yes' + ,61.93333333 + ,'yes' + ,61.93333333 + ,'yes' + ,62 + ,'yes' + ,62.13333333 + ,'yes' + ,62.2 + ,'yes' + ,62.4 + ,'yes' + ,62.4 + ,'yes' + ,62.4 + ,'yes' + ,62.4 + ,'yes' + ,62.4 + ,'yes' + ,62.53333333 + ,'yes' + ,62.6 + ,'yes' + ,62.6 + ,'yes' + ,62.6 + ,'yes' + ,62.6 + ,'yes' + ,62.66666667 + ,'yes' + ,62.66666667 + ,'yes' + ,62.8 + ,'yes' + ,62.8 + ,'yes' + ,62.8 + ,'yes' + ,62.86666667 + ,'yes' + ,62.86666667 + ,'yes' + ,62.93333333 + ,'yes' + ,62.93333333 + ,'yes' + ,63 + ,'yes' + ,63 + ,'yes' + ,63.06666667 + ,'yes' + ,63.13333333 + ,'yes' + ,63.2 + ,'yes' + ,63.26666667 + ,'yes' + ,63.33333333 + ,'yes' + ,63.33333333 + ,'yes' + ,63.46666667 + ,'yes' + ,63.53333333 + ,'yes' + ,63.53333333 + ,'yes' + ,63.53333333 + ,'yes' + ,63.6 + ,'yes' + ,63.66666667 + ,'yes' + ,63.66666667 + ,'yes' + ,63.66666667 + ,'yes' + ,63.73333333 + ,'yes' + ,63.73333333 + ,'yes' + ,63.73333333 + ,'yes' + ,63.86666667 + ,'yes' + ,64 + ,'yes' + ,64.06666667 + ,'yes' + ,64.06666667 + ,'yes' + ,64.06666667 + ,'yes' + ,64.13333333 + ,'yes' + ,64.2 + ,'yes' + ,64.2 + ,'yes' + ,64.26666667 + ,'yes' + ,64.26666667 + ,'yes' + ,64.4 + ,'yes' + ,64.46666667 + ,'yes' + ,64.6 + ,'yes' + ,64.6 + ,'yes' + ,64.66666667 + ,'yes' + ,64.66666667 + ,'yes' + ,64.66666667 + ,'yes' + ,64.66666667 + ,'yes' + ,64.66666667 + ,'yes' + ,64.66666667 + ,'yes' + ,64.66666667 + ,'yes' + ,64.66666667 + ,'yes' + ,64.73333333 + ,'yes' + ,64.8 + ,'yes' + ,64.86666667 + ,'yes' + ,65 + ,'yes' + ,65 + ,'yes' + ,65.06666667 + ,'yes' + ,65.06666667 + ,'yes' + ,65.2 + ,'yes' + ,65.46666667 + ,'yes' + ,65.46666667 + ,'yes' + ,65.6 + ,'yes' + ,65.66666667 + ,'yes' + ,65.66666667 + ,'yes' + ,65.8 + ,'yes' + ,65.8 + ,'yes' + ,65.8 + ,'yes' + ,65.93333333 + ,'yes' + ,66 + ,'yes' + ,66 + ,'yes' + ,66 + ,'yes' + ,66 + ,'yes' + ,66 + ,'yes' + ,66 + ,'yes' + ,66 + ,'yes' + ,66.06666667 + ,'yes' + ,66.2 + ,'yes' + ,66.2 + ,'yes' + ,66.26666667 + ,'yes' + ,66.26666667 + ,'yes' + ,66.46666667 + ,'yes' + ,66.53333333 + ,'yes' + ,66.53333333 + ,'yes' + ,66.53333333 + ,'yes' + ,66.6 + ,'yes' + ,66.73333333 + ,'yes' + ,66.73333333 + ,'yes' + ,66.73333333 + ,'yes' + ,66.73333333 + ,'yes' + ,66.8 + ,'yes' + ,66.86666667 + ,'yes' + ,66.93333333 + ,'yes' + ,67.06666667 + ,'yes' + ,67.13333333 + ,'yes' + ,67.33333333 + ,'yes' + ,67.46666667 + ,'yes' + ,67.46666667 + ,'yes' + ,67.53333333 + ,'yes' + ,67.6 + ,'yes' + ,67.6 + ,'yes' + ,67.8 + ,'yes' + ,68.06666667 + ,'yes' + ,68.6 + ,'yes' + ,68.66666667 + ,'yes' + ,68.66666667 + ,'yes' + ,68.73333333 + ,'yes' + ,68.8 + ,'yes' + ,68.8 + ,'yes' + ,68.86666667 + ,'yes' + ,69.53333333 + ,'yes' + ,69.6 + ,'yes' + ,69.6 + ,'yes' + ,69.86666667 + ,'yes' + ,69.93333333 + ,'yes' + ,70.06666667 + ,'yes' + ,70.06666667 + ,'yes' + ,70.46666667 + ,'yes' + ,70.66666667 + ,'yes' + ,70.66666667 + ,'yes' + ,70.73333333 + ,'yes' + ,70.73333333 + ,'yes' + ,70.73333333 + ,'yes' + ,70.73333333 + ,'yes' + ,70.8 + ,'yes' + ,70.8 + ,'yes' + ,71.06666667 + ,'yes' + ,71.46666667 + ,'yes' + ,71.53333333 + ,'yes' + ,71.66666667 + ,'yes' + ,71.66666667 + ,'yes' + ,72.06666667 + ,'yes' + ,72.73333333 + ,'yes' + ,72.73333333 + ,'yes' + ,72.86666667 + ,'yes' + ,73 + ,'no' + ,3 + ,'no' + ,4.333333333 + ,'no' + ,6.333333333 + ,'no' + ,43.66666667 + ,'no' + ,44 + ,'no' + ,47 + ,'no' + ,47 + ,'no' + ,47 + ,'no' + ,48.33333333 + ,'no' + ,49 + ,'no' + ,49.33333333 + ,'no' + ,49.66666667 + ,'no' + ,51 + ,'no' + ,51 + ,'no' + ,51 + ,'no' + ,51 + ,'no' + ,52.66666667 + ,'no' + ,53.33333333 + ,'no' + ,53.66666667 + ,'no' + ,53.66666667 + ,'no' + ,54 + ,'no' + ,54 + ,'no' + ,54.33333333 + ,'no' + ,54.33333333 + ,'no' + ,54.66666667 + ,'no' + ,54.66666667 + ,'no' + ,54.66666667 + ,'no' + ,55 + ,'no' + ,55 + ,'no' + ,55.33333333 + ,'no' + ,55.33333333 + ,'no' + ,55.33333333 + ,'no' + ,55.66666667 + ,'no' + ,55.66666667 + ,'no' + ,56 + ,'no' + ,56 + ,'no' + ,56 + ,'no' + ,56.33333333 + ,'no' + ,56.33333333 + ,'no' + ,56.66666667 + ,'no' + ,56.66666667 + ,'no' + ,56.66666667 + ,'no' + ,56.66666667 + ,'no' + ,57 + ,'no' + ,57.33333333 + ,'no' + ,57.33333333 + ,'no' + ,57.66666667 + ,'no' + ,57.66666667 + ,'no' + ,58 + ,'no' + ,58 + ,'no' + ,58 + ,'no' + ,58 + ,'no' + ,58 + ,'no' + ,58 + ,'no' + ,58 + ,'no' + ,58 + ,'no' + ,58.33333333 + ,'no' + ,58.33333333 + ,'no' + ,58.66666667 + ,'no' + ,58.66666667 + ,'no' + ,58.66666667 + ,'no' + ,58.66666667 + ,'no' + ,58.66666667 + ,'no' + ,58.66666667 + ,'no' + ,58.66666667 + ,'no' + ,59 + ,'no' + ,59 + ,'no' + ,59.33333333 + ,'no' + ,59.33333333 + ,'no' + ,59.33333333 + ,'no' + ,59.33333333 + ,'no' + ,59.33333333 + ,'no' + ,59.66666667 + ,'no' + ,59.66666667 + ,'no' + ,59.66666667 + ,'no' + ,59.66666667 + ,'no' + ,59.66666667 + ,'no' + ,59.66666667 + ,'no' + ,60 + ,'no' + ,60 + ,'no' + ,60 + ,'no' + ,60 + ,'no' + ,60 + ,'no' + ,60 + ,'no' + ,60 + ,'no' + ,60 + ,'no' + ,60 + ,'no' + ,60.33333333 + ,'no' + ,60.33333333 + ,'no' + ,60.33333333 + ,'no' + ,60.33333333 + ,'no' + ,60.33333333 + ,'no' + ,60.33333333 + ,'no' + ,60.66666667 + ,'no' + ,60.66666667 + ,'no' + ,60.66666667 + ,'no' + ,60.66666667 + ,'no' + ,60.66666667 + ,'no' + ,61 + ,'no' + ,61 + ,'no' + ,61 + ,'no' + ,61 + ,'no' + ,61 + ,'no' + ,61 + ,'no' + ,61.33333333 + ,'no' + ,61.33333333 + ,'no' + ,61.33333333 + ,'no' + ,61.33333333 + ,'no' + ,61.33333333 + ,'no' + ,61.33333333 + ,'no' + ,61.33333333 + ,'no' + ,61.66666667 + ,'no' + ,61.66666667 + ,'no' + ,61.66666667 + ,'no' + ,61.66666667 + ,'no' + ,61.66666667 + ,'no' + ,61.66666667 + ,'no' + ,61.66666667 + ,'no' + ,61.66666667 + ,'no' + ,62 + ,'no' + ,62 + ,'no' + ,62 + ,'no' + ,62 + ,'no' + ,62 + ,'no' + ,62 + ,'no' + ,62.33333333 + ,'no' + ,62.33333333 + ,'no' + ,62.33333333 + ,'no' + ,62.33333333 + ,'no' + ,62.66666667 + ,'no' + ,63 + ,'no' + ,63 + ,'no' + ,63 + ,'no' + ,63.33333333 + ,'no' + ,63.33333333 + ,'no' + ,63.33333333 + ,'no' + ,63.33333333 + ,'no' + ,63.33333333 + ,'no' + ,63.66666667 + ,'no' + ,63.66666667 + ,'no' + ,63.66666667 + ,'no' + ,63.66666667 + ,'no' + ,63.66666667 + ,'no' + ,63.66666667 + ,'no' + ,63.66666667 + ,'no' + ,63.66666667 + ,'no' + ,63.66666667 + ,'no' + ,64 + ,'no' + ,64 + ,'no' + ,64 + ,'no' + ,64 + ,'no' + ,64 + ,'no' + ,64 + ,'no' + ,64 + ,'no' + ,64 + ,'no' + ,64.33333333 + ,'no' + ,64.33333333 + ,'no' + ,64.66666667 + ,'no' + ,64.66666667 + ,'no' + ,64.66666667 + ,'no' + ,64.66666667 + ,'no' + ,65 + ,'no' + ,65 + ,'no' + ,65 + ,'no' + ,65.33333333 + ,'no' + ,65.33333333 + ,'no' + ,65.66666667 + ,'no' + ,65.66666667 + ,'no' + ,65.66666667 + ,'no' + ,65.66666667 + ,'no' + ,65.66666667 + ,'no' + ,66 + ,'no' + ,66 + ,'no' + ,66 + ,'no' + ,66 + ,'no' + ,66.33333333 + ,'no' + ,66.33333333 + ,'no' + ,66.66666667 + ,'no' + ,66.66666667 + ,'no' + ,66.66666667 + ,'no' + ,66.66666667 + ,'no' + ,67.33333333 + ,'no' + ,67.66666667 + ,'no' + ,68 + ,'no' + ,68.66666667 + ,'no' + ,69 + ,'no' + ,70 + ,'no' + ,70.33333333 + ,'no' + ,71.33333333) + ,dim=c(2 + ,414) + ,dimnames=list(c('PMent' + ,'Exam') + ,1:414)) > y <- array(NA,dim=c(2,414),dimnames=list(c('PMent','Exam'),1:414)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } There were 50 or more warnings (use warnings() to see the first 50) > par5 = '2' > par4 = '1' > par3 = '0' > par2 = 'FALSE' > par1 = '3' > ylab = 'Exam Score' > xlab = 'Placement' > main = 'Reddy-Moores Placement Data' > #par5 <- '2' > #par4 <- '1' > #par3 <- '30' > #par2 <- 'FALSE' > #par1 <- '3' > #'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.')} > par4 <- as.numeric(par4) #factor column > par5 <- as.numeric(par5) # response column > x <- t(x) > x1<-as.numeric(x[,par5]) # response > f1<-as.character(x[,par4]) # factor > x2<-x1[f1=='yes'] > f2 <- f1[f1=='yes'] > lotrm<-as.integer(length(x2)*par3/100) > hitrm<-as.integer(length(x2)*(100-par3)/100) > srt<-order(x2,f2) > trmx1<-x2[srt[lotrm:hitrm]] > trmf1<-f2[srt[lotrm:hitrm]] > x3<-x1[f1=='no'] > f3 <- f1[f1=='no'] > lotrm<-as.integer(length(x3)*par3/100) > hitrm<-as.integer(length(x3)*(100-par3)/100) > srt<-order(x3,f3) > trmx2<-x3[srt[lotrm:hitrm]] > trmf2<-f3[srt[lotrm:hitrm]] > xtrm<-c(trmx1,trmx2) > ftrm<-c(trmf1,trmf2) > xtrm[1:6] [1] 17.60000 36.33333 37.93333 41.86667 47.20000 51.53333 > ftrm[1:6] [1] "yes" "yes" "yes" "yes" "yes" "yes" > postscript(file="/var/www/html/rcomp/tmp/1g5gd1287252556.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > r<-boxplot(xtrm~as.factor(ftrm), col=par1, notch=par2, names =c('yes', 'no'), main='Reddy and Moores Placements Data', xlab='Placement Student', ylab='Degree Grade') > 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,'Placement',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) > a<-table.row.start(a) > a<-table.element(a,'yes',1,TRUE) > for (j in 1:5) + { + a<-table.element(a,r$stats[j,1]) + } > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'no',1,TRUE) > for (j in 1:5) + { + a<-table.element(a,r$stats[j,2]) + } > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/2cxem1287252556.tab") > tr.mns<-tapply(x1,f1,mean, trim=par3/100) > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/trimmed_mean.htm','Trimmed Mean Equation','Trimmed Mean'),2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Placement') > a<-table.element(a,'No Placement') > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,tr.mns[1]) > a<-table.element(a,tr.mns[2]) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/356vp1287252556.tab") > > try(system("convert tmp/1g5gd1287252556.ps tmp/1g5gd1287252556.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.644 0.180 0.821