R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-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(75 + ,73 + ,77 + ,77 + ,75 + ,75 + ,74 + ,78 + ,77 + ,75 + ,75 + ,74 + ,78 + ,78 + ,77 + ,77 + ,75 + ,78 + ,79 + ,78 + ,77 + ,75 + ,78 + ,79 + ,78 + ,77 + ,75 + ,78 + ,80 + ,79 + ,77 + ,75 + ,78 + ,80 + ,79 + ,78 + ,75 + ,78 + ,81 + ,79 + ,78 + ,75 + ,79 + ,81 + ,79 + ,78 + ,75 + ,79 + ,81 + ,79 + ,80 + ,77 + ,79 + ,82 + ,80 + ,80 + ,77 + ,79 + ,82 + ,81 + ,80 + ,78 + ,80 + ,82 + ,81 + ,80 + ,78 + ,81 + ,82 + ,81 + ,80 + ,78 + ,81 + ,82 + ,82 + ,80 + ,78 + ,81 + ,83 + ,82 + ,80 + ,79 + ,82 + ,83 + ,82 + ,80 + ,79 + ,82 + ,83 + ,82 + ,80 + ,79 + ,82 + ,83 + ,82 + ,81 + ,80 + ,82 + ,83 + ,82 + ,81 + ,80 + ,83 + ,83 + ,82 + ,81 + ,81 + ,83 + ,83 + ,82 + ,82 + ,81 + ,83 + ,83 + ,82 + ,82 + ,81 + ,83 + ,84 + ,83 + ,82 + ,82 + ,84 + ,84 + ,83 + ,82 + ,82 + ,84 + ,84 + ,83 + ,82 + ,82 + ,84 + ,84 + ,84 + ,82 + ,82 + ,84 + ,85 + ,84 + ,83 + ,82 + ,84 + ,86 + ,84 + ,83 + ,82 + ,84 + ,86 + ,84 + ,84 + ,82 + ,84 + ,86 + ,85 + ,84 + ,82 + ,85 + ,86 + ,85 + ,84 + ,82 + ,86 + ,87 + ,85 + ,84 + ,82 + ,86 + ,87 + ,85 + ,84 + ,84 + ,86 + ,87 + ,85 + ,84 + ,85 + ,86 + ,88 + ,85 + ,84 + ,85 + ,86 + ,88 + ,85 + ,84 + ,85 + ,86 + ,88 + ,85 + ,85 + ,86 + ,87 + ,88 + ,85 + ,85 + ,87 + ,87 + ,88 + ,85 + ,86 + ,87 + ,87 + ,88 + ,85 + ,86 + ,87 + ,87 + ,88 + ,86 + ,86 + ,87 + ,87 + ,88 + ,86 + ,86 + ,88 + ,87 + ,88 + ,86 + ,86 + ,88 + ,87 + ,89 + ,86 + ,86 + ,88 + ,88 + ,89 + ,87 + ,86 + ,88 + ,88 + ,89 + ,87 + ,86 + ,88 + ,88 + ,89 + ,87 + ,86 + ,88 + ,88 + ,89 + ,87 + ,86 + ,89 + ,88 + ,89 + ,87 + ,86 + ,89 + ,89 + ,89 + ,87 + ,86 + ,89 + ,89 + ,89 + ,87 + ,86 + ,90 + ,89 + ,90 + ,88 + ,87 + ,90 + ,90 + ,90 + ,88 + ,87 + ,90 + ,90 + ,90 + ,88 + ,87 + ,90 + ,90 + ,91 + ,88 + ,87 + ,90 + ,90 + ,91 + ,88 + ,87 + ,91 + ,90 + ,91 + ,89 + ,87 + ,91 + ,90 + ,91 + ,89 + ,88 + ,91 + ,91 + ,91 + ,89 + ,88 + ,91 + ,91 + ,91 + ,89 + ,88 + ,91 + ,92 + ,92 + ,90 + ,88 + ,91 + ,92 + ,92 + ,90 + ,89 + ,91 + ,92 + ,92 + ,90 + ,89 + ,91 + ,92 + ,92 + ,91 + ,89 + ,91 + ,93 + ,92 + ,91 + ,89 + ,92 + ,94 + ,92 + ,92 + ,89 + ,92 + ,95 + ,93 + ,92 + ,89 + ,92 + ,95 + ,93 + ,92 + ,89 + ,92 + ,95 + ,93 + ,92 + ,89 + ,92 + ,95 + ,93 + ,92 + ,90 + ,92 + ,95 + ,94 + ,92 + ,90 + ,92 + ,95 + ,94 + ,92 + ,90 + ,93 + ,95 + ,94 + ,92 + ,90 + ,93 + ,96 + ,94 + ,93 + ,90 + ,93 + ,96 + ,94 + ,93 + ,90 + ,93 + ,96 + ,95 + ,93 + ,90 + ,93 + ,96 + ,95 + ,93 + ,90 + ,93 + ,96 + ,95 + ,93 + ,90 + ,95 + ,97 + ,95 + ,94 + ,91 + ,95 + ,97 + ,96 + ,94 + ,91 + ,95 + ,97 + ,96 + ,94 + ,91 + ,95 + ,98 + ,96 + ,95 + ,91 + ,95 + ,98 + ,96 + ,95 + ,91 + ,95 + ,98 + ,96 + ,95 + ,92 + ,95 + ,98 + ,97 + ,95 + ,92 + ,95 + ,99 + ,97 + ,95 + ,92 + ,95 + ,99 + ,97 + ,95 + ,92 + ,95 + ,99 + ,97 + ,95 + ,92 + ,95 + ,99 + ,97 + ,95 + ,92 + ,95 + ,100 + ,97 + ,97 + ,92 + ,96 + ,100 + ,97 + ,97 + ,94 + ,97 + ,100 + ,98 + ,97 + ,94 + ,97 + ,101 + ,98 + ,97 + ,94 + ,97 + ,102 + ,98 + ,97 + ,95 + ,97 + ,102 + ,98 + ,97 + ,95 + ,97 + ,102 + ,98 + ,97 + ,95 + ,97 + ,102 + ,98 + ,97 + ,96 + ,97 + ,103 + ,98 + ,97 + ,96 + ,97 + ,103 + ,98 + ,98 + ,97 + ,97 + ,103 + ,99 + ,99 + ,97 + ,97 + ,104 + ,99 + ,99 + ,97 + ,98 + ,104 + ,99 + ,99 + ,98 + ,98 + ,105 + ,99 + ,99 + ,98 + ,99 + ,105 + ,100 + ,100 + ,98 + ,100 + ,105 + ,100 + ,100 + ,98 + ,100 + ,106 + ,100 + ,100 + ,98 + ,100 + ,106 + ,100 + ,100 + ,98 + ,102 + ,106 + ,100 + ,101 + ,98 + ,102 + ,106 + ,101 + ,102 + ,98 + ,102 + ,108 + ,101 + ,103 + ,98 + ,102 + ,108 + ,101 + ,104 + ,98 + ,102 + ,108 + ,101 + ,104 + ,98 + ,102 + ,108 + ,102 + ,104 + ,98 + ,102 + ,109 + ,102 + ,104 + ,99 + ,102 + ,109 + ,102 + ,105 + ,99 + ,102 + ,109 + ,102 + ,105 + ,99 + ,104 + ,109 + ,102 + ,105 + ,99 + ,104 + ,109 + ,102 + ,106 + ,102 + ,104 + ,109 + ,102 + ,107 + ,102 + ,104 + ,109 + ,103 + ,108 + ,102 + ,105 + ,109 + ,103 + ,109 + ,102 + ,105 + ,110 + ,103 + ,109 + ,102 + ,105 + ,110 + ,103 + ,109 + ,102 + ,105 + ,111 + ,104 + ,109 + ,104 + ,105 + ,111 + ,104 + ,109 + ,104 + ,105 + ,112 + ,105 + ,110 + ,104 + ,106 + ,112 + ,106 + ,111 + ,105 + ,106 + ,112 + ,108 + ,112 + ,105 + ,108 + ,114 + ,108 + ,112 + ,106 + ,109 + ,114 + ,108 + ,113 + ,NA + ,NA + ,NA + ,NA + ,NA) + ,dim=c(5 + ,132) + ,dimnames=list(c('WJ7ARD' + ,'WJ7AMA' + ,'WJ7AWL' + ,'WJ7AKN' + ,'WJ7ASK') + ,1:132)) > y <- array(NA,dim=c(5,132),dimnames=list(c('WJ7ARD','WJ7AMA','WJ7AWL','WJ7AKN','WJ7ASK'),1:132)) > 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 = 'FALSE' > par1 = '3' > ylab = 'Test Scores' > xlab = 'CARE Variable Names' > main = 'CARE DATA' > 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/1v6vm1350220682.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/2f7171350220682.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] [,3] [,4] [,5] [1,] 75.0 73 77.0 77 75 [2,] 84.0 82 86.0 87 85 [3,] 89.0 91 93.0 92 91 [4,] 95.5 97 102.5 98 97 [5,] 106.0 109 114.0 108 113 $n [1] 131 131 131 131 131 $conf [,1] [,2] [,3] [,4] [,5] [1,] 87.41248 88.92932 90.72225 90.4815 89.34346 [2,] 90.58752 93.07068 95.27775 93.5185 92.65654 $out numeric(0) $group numeric(0) $names [1] "WJ7ARD" "WJ7AMA" "WJ7AWL" "WJ7AKN" "WJ7ASK" > 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,round(r$stats[j,i], digits=2)) + } + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/36n981350220682.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/wessaorg/rcomp/tmp/4u3261350220682.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) + } Warning messages: 1: mean() is deprecated. Use colMeans() or sapply(*, mean) instead. 2: sd() is deprecated. Use sapply(*, sd) instead. 3: mean() is deprecated. Use colMeans() or sapply(*, mean) instead. 4: sd() is deprecated. Use sapply(*, sd) instead. 5: mean() is deprecated. Use colMeans() or sapply(*, mean) instead. 6: sd() is deprecated. Use sapply(*, sd) instead. 7: mean() is deprecated. Use colMeans() or sapply(*, mean) instead. 8: sd() is deprecated. Use sapply(*, sd) instead. 9: mean() is deprecated. Use colMeans() or sapply(*, mean) instead. 10: sd() is deprecated. Use sapply(*, sd) instead. > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/58vx91350220683.tab") > > try(system("convert tmp/1v6vm1350220682.ps tmp/1v6vm1350220682.png",intern=TRUE)) character(0) > try(system("convert tmp/2f7171350220682.ps tmp/2f7171350220682.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.784 0.256 2.030