R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing 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(3 + ,6 + ,10 + ,13 + ,25 + ,5 + ,9 + ,29 + ,23 + ,35 + ,10 + ,11 + ,32 + ,33 + ,45 + ,15 + ,15 + ,41 + ,53 + ,60 + ,56 + ,30 + ,44 + ,64 + ,63 + ,59 + ,38 + ,5 + ,67 + ,63 + ,62 + ,38 + ,69 + ,68 + ,66 + ,63 + ,38 + ,70 + ,69 + ,67 + ,68 + ,45 + ,70 + ,69 + ,67 + ,68 + ,45 + ,71 + ,69 + ,69 + ,72 + ,72 + ,72 + ,70 + ,70 + ,72 + ,72 + ,72 + ,70 + ,70 + ,72 + ,72 + ,73 + ,72 + ,71 + ,72 + ,72 + ,74 + ,72 + ,71 + ,73 + ,72 + ,74 + ,73 + ,73 + ,73 + ,72 + ,75 + ,73 + ,73 + ,76 + ,72 + ,77 + ,75 + ,74 + ,76 + ,72 + ,77 + ,77 + ,75 + ,76 + ,73 + ,77 + ,77 + ,75 + ,76 + ,74 + ,78 + ,77 + ,75 + ,76 + ,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 + ,79 + ,75 + ,79 + ,81 + ,79 + ,79 + ,75 + ,79 + ,81 + ,79 + ,79 + ,77 + ,79 + ,82 + ,80 + ,79 + ,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 + ,81 + ,79 + ,82 + ,83 + ,82 + ,81 + ,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 + ,81 + ,84 + ,84 + ,83 + ,82 + ,81 + ,84 + ,84 + ,83 + ,82 + ,81 + ,84 + ,84 + ,84 + ,82 + ,81 + ,84 + ,85 + ,84 + ,83 + ,81 + ,84 + ,86 + ,84 + ,83 + ,81 + ,84 + ,86 + ,84 + ,84 + ,81 + ,84 + ,86 + ,85 + ,84 + ,81 + ,85 + ,86 + ,85 + ,84 + ,81 + ,86 + ,87 + ,85 + ,85 + ,81 + ,86 + ,87 + ,85 + ,85 + ,81 + ,86 + ,87 + ,85 + ,85 + ,81 + ,86 + ,88 + ,85 + ,85 + ,85 + ,86 + ,88 + ,85 + ,85 + ,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 + ,88 + ,90 + ,90 + ,90 + ,88 + ,88 + ,90 + ,90 + ,91 + ,88 + ,88 + ,91 + ,90 + ,91 + ,88 + ,88 + ,91 + ,90 + ,91 + ,89 + ,88 + ,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 + ,93 + ,97 + ,100 + ,98 + ,97 + ,93 + ,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 + ,107 + ,103 + ,98 + ,97 + ,96 + ,108 + ,103 + ,98 + ,98 + ,110 + ,109 + ,103 + ,99 + ,99 + ,140 + ,124 + ,104 + ,99 + ,99 + ,150 + ,150 + ,104 + ,99 + ,99) + ,dim=c(5 + ,121) + ,dimnames=list(c('WJ7ARD' + ,'WJ7AMA' + ,'WJ7AWL' + ,'WJ7AKN' + ,'WJ7ASK') + ,1:121)) > y <- array(NA,dim=c(5,121),dimnames=list(c('WJ7ARD','WJ7AMA','WJ7AWL','WJ7AKN','WJ7ASK'),1:121)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par3 = '5' > par2 = 'FALSE' > par1 = '2' > ylab = 'Test Scores' > xlab = 'CARE Variable Names' > main = 'CARE AGE 7 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/fisher/rcomp/tmp/1s82j1382285624.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > pairs(t(y)) > dev.off() null device 1 > y<-y1 > z <- as.data.frame(t(y)) > postscript(file="/var/fisher/rcomp/tmp/29g3e1382285624.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > (r<-boxplot(z ,xlab=xlab,ylab=ylab,main=main,notch=par2,col=par1)) $stats [,1] [,2] [,3] [,4] [,5] [1,] 68 72 69 68.0 67 [2,] 80 78 81 82.5 82 [3,] 86 87 87 88.0 86 [4,] 89 92 95 93.0 92 [5,] 95 97 102 98.0 97 $n [1] 108 108 108 108 108 $conf [,1] [,2] [,3] [,4] [,5] [1,] 84.63168 84.8715 84.8715 86.40363 84.47964 [2,] 87.36832 89.1285 89.1285 89.59637 87.52036 $out [1] 62 63 38 38 45 45 66 $group [1] 1 1 2 2 2 2 5 $names [1] "WJ7ARD" "WJ7AMA" "WJ7AWL" "WJ7AKN" "WJ7ASK" > dev.off() null device 1 > > #Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/3vrsf1382285624.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/fisher/rcomp/tmp/4w7p71382285624.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(unlist(z[i]), trim=par3/100, na.rm=TRUE), digits=2)) + a<-table.element(a,round(sd(unlist(z[i]), na.rm=TRUE), digits=2)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/fisher/rcomp/tmp/5f29j1382285624.tab") > > try(system("convert tmp/1s82j1382285624.ps tmp/1s82j1382285624.png",intern=TRUE)) character(0) > try(system("convert tmp/29g3e1382285624.ps tmp/29g3e1382285624.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.760 0.350 2.094