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(89 + ,69 + ,62 + ,67 + ,83 + ,73 + ,90 + ,69 + ,62 + ,67 + ,102 + ,73 + ,82 + ,69 + ,62 + ,67 + ,75 + ,73 + ,82 + ,69 + ,62 + ,67 + ,92 + ,73 + ,71 + ,69 + ,68 + ,67 + ,94 + ,73 + ,80 + ,69 + ,70 + ,67 + ,88 + ,73 + ,62 + ,75 + ,71 + ,69 + ,77 + ,73 + ,77 + ,77 + ,71 + ,72 + ,63 + ,74 + ,80 + ,79 + ,72 + ,72 + ,73 + ,75 + ,87 + ,79 + ,72 + ,73 + ,85 + ,77 + ,96 + ,81 + ,72 + ,73 + ,80 + ,77 + ,80 + ,81 + ,72 + ,73 + ,77 + ,77 + ,85 + ,83 + ,72 + ,73 + ,67 + ,78 + ,89 + ,83 + ,72 + ,75 + ,98 + ,79 + ,89 + ,83 + ,72 + ,77 + ,89 + ,80 + ,73 + ,83 + ,72 + ,78 + ,63 + ,81 + ,88 + ,84 + ,72 + ,79 + ,97 + ,81 + ,86 + ,84 + ,72 + ,80 + ,77 + ,82 + ,83 + ,84 + ,73 + ,80 + ,96 + ,82 + ,91 + ,84 + ,74 + ,81 + ,84 + ,82 + ,98 + ,84 + ,74 + ,81 + ,94 + ,82 + ,80 + ,84 + ,75 + ,82 + ,70 + ,82 + ,84 + ,85 + ,75 + ,83 + ,100 + ,82 + ,90 + ,85 + ,75 + ,83 + ,88 + ,83 + ,92 + ,85 + ,75 + ,83 + ,97 + ,83 + ,86 + ,86 + ,75 + ,84 + ,78 + ,83 + ,117 + ,86 + ,75 + ,84 + ,108 + ,83 + ,88 + ,86 + ,75 + ,84 + ,81 + ,83 + ,86 + ,86 + ,77 + ,84 + ,96 + ,83 + ,78 + ,86 + ,77 + ,84 + ,84 + ,84 + ,104 + ,86 + ,78 + ,84 + ,104 + ,84 + ,89 + ,86 + ,78 + ,84 + ,87 + ,84 + ,99 + ,87 + ,78 + ,84 + ,98 + ,84 + ,84 + ,87 + ,78 + ,85 + ,89 + ,84 + ,89 + ,87 + ,79 + ,86 + ,93 + ,85 + ,95 + ,87 + ,79 + ,86 + ,89 + ,86 + ,58 + ,87 + ,79 + ,87 + ,63 + ,86 + ,77 + ,87 + ,80 + ,87 + ,84 + ,86 + ,77 + ,88 + ,80 + ,87 + ,82 + ,86 + ,98 + ,88 + ,81 + ,87 + ,105 + ,87 + ,58 + ,88 + ,81 + ,88 + ,70 + ,88 + ,81 + ,88 + ,81 + ,88 + ,94 + ,88 + ,92 + ,88 + ,82 + ,88 + ,101 + ,88 + ,94 + ,88 + ,82 + ,89 + ,83 + ,89 + ,87 + ,88 + ,82 + ,89 + ,88 + ,89 + ,75 + ,88 + ,82 + ,89 + ,69 + ,89 + ,80 + ,88 + ,82 + ,89 + ,94 + ,89 + ,84 + ,88 + ,82 + ,89 + ,82 + ,89 + ,87 + ,89 + ,82 + ,89 + ,82 + ,89 + ,114 + ,89 + ,82 + ,89 + ,109 + ,90 + ,97 + ,90 + ,82 + ,90 + ,86 + ,90 + ,102 + ,90 + ,82 + ,90 + ,99 + ,90 + ,80 + ,90 + ,84 + ,90 + ,82 + ,90 + ,112 + ,91 + ,85 + ,90 + ,114 + ,90 + ,104 + ,91 + ,85 + ,90 + ,99 + ,91 + ,75 + ,91 + ,85 + ,90 + ,91 + ,91 + ,82 + ,92 + ,86 + ,90 + ,81 + ,91 + ,92 + ,92 + ,87 + ,91 + ,102 + ,92 + ,102 + ,92 + ,87 + ,91 + ,101 + ,92 + ,73 + ,92 + ,87 + ,91 + ,72 + ,92 + ,78 + ,93 + ,87 + ,92 + ,91 + ,92 + ,74 + ,93 + ,88 + ,92 + ,83 + ,92 + ,92 + ,93 + ,88 + ,94 + ,102 + ,92 + ,97 + ,93 + ,88 + ,94 + ,103 + ,92 + ,92 + ,93 + ,88 + ,94 + ,93 + ,93 + ,91 + ,94 + ,88 + ,94 + ,88 + ,93 + ,102 + ,94 + ,88 + ,94 + ,110 + ,93 + ,89 + ,94 + ,89 + ,94 + ,100 + ,93 + ,98 + ,94 + ,89 + ,95 + ,88 + ,93 + ,117 + ,95 + ,89 + ,95 + ,119 + ,93 + ,92 + ,95 + ,90 + ,96 + ,98 + ,94 + ,70 + ,95 + ,90 + ,96 + ,90 + ,94 + ,63 + ,95 + ,90 + ,96 + ,69 + ,94 + ,91 + ,95 + ,90 + ,96 + ,98 + ,95 + ,106 + ,96 + ,90 + ,96 + ,98 + ,95 + ,81 + ,97 + ,91 + ,97 + ,81 + ,96 + ,98 + ,97 + ,91 + ,97 + ,93 + ,96 + ,88 + ,99 + ,91 + ,98 + ,91 + ,96 + ,95 + ,100 + ,91 + ,98 + ,86 + ,97 + ,105 + ,101 + ,91 + ,98 + ,95 + ,97 + ,90 + ,101 + ,91 + ,100 + ,87 + ,97 + ,58 + ,101 + ,91 + ,100 + ,63 + ,98 + ,86 + ,102 + ,91 + ,101 + ,89 + ,98 + ,112 + ,102 + ,91 + ,102 + ,108 + ,98 + ,71 + ,102 + ,92 + ,103 + ,99 + ,98 + ,98 + ,102 + ,92 + ,104 + ,90 + ,99 + ,87 + ,103 + ,92 + ,105 + ,91 + ,99 + ,98 + ,103 + ,92 + ,105 + ,82 + ,100 + ,117 + ,103 + ,92 + ,105 + ,119 + ,100 + ,98 + ,104 + ,92 + ,105 + ,97 + ,100 + ,98 + ,104 + ,92 + ,105 + ,108 + ,100 + ,90 + ,105 + ,93 + ,106 + ,101 + ,101 + ,84 + ,105 + ,93 + ,106 + ,96 + ,102 + ,86 + ,105 + ,93 + ,107 + ,97 + ,104 + ,68 + ,105 + ,93 + ,107 + ,69 + ,104 + ,86 + ,105 + ,93 + ,107 + ,89 + ,105 + ,77 + ,105 + ,93 + ,110 + ,84 + ,107 + ,83 + ,108 + ,95 + ,110 + ,79 + ,107 + ,90 + ,113 + ,95 + ,111 + ,103 + ,107 + ,107 + ,113 + ,95 + ,111 + ,92 + ,107 + ,102 + ,113 + ,95 + ,111 + ,104 + ,107 + ,90 + ,113 + ,95 + ,111 + ,102 + ,107 + ,113 + ,113 + ,95 + ,111 + ,106 + ,107 + ,86 + ,113 + ,95 + ,111 + ,93 + ,NA + ,105 + ,NA + ,95 + ,NA + ,108 + ,NA + ,110 + ,NA + ,95 + ,NA + ,119 + ,NA + ,82 + ,NA + ,95 + ,NA + ,102 + ,NA + ,89 + ,NA + ,95 + ,NA + ,83 + ,NA + ,99 + ,NA + ,95 + ,NA + ,92 + ,NA + ,113 + ,NA + ,96 + ,NA + ,119 + ,NA + ,91 + ,NA + ,97 + ,NA + ,100 + ,NA + ,92 + ,NA + ,97 + ,NA + ,97 + ,NA + ,86 + ,NA + ,97 + ,NA + ,103 + ,NA + ,91 + ,NA + ,97 + ,NA + ,95 + ,NA + ,82 + ,NA + ,97 + ,NA + ,73 + ,NA + ,86 + ,NA + ,97 + ,NA + ,86 + ,NA + ,86 + ,NA + ,97 + ,NA + ,88 + ,NA + ,102 + ,NA + ,97 + ,NA + ,102 + ,NA + ,84 + ,NA + ,97 + ,NA + ,87 + ,NA + ,80 + ,NA + ,97 + ,NA + ,100 + ,NA + ,96 + ,NA + ,98 + ,NA + ,88 + ,NA + ,117 + ,NA + ,98 + ,NA + ,100 + ,NA + ,88 + ,NA + ,99 + ,NA + ,79 + ,NA + ,99 + ,NA + ,100 + ,NA + ,90 + ,NA + ,89 + ,NA + ,100 + ,NA + ,83 + ,NA + ,86 + ,NA + ,100 + ,NA + ,95 + ,NA + ,98 + ,NA + ,102 + ,NA + ,89 + ,NA + ,58 + ,NA + ,102 + ,NA + ,64 + ,NA + ,98 + ,NA + ,102 + ,NA + ,108 + ,NA + ,58 + ,NA + ,102 + ,NA + ,80 + ,NA + ,81 + ,NA + ,102 + ,NA + ,83 + ,NA + ,90 + ,NA + ,102 + ,NA + ,96 + ,NA + ,112 + ,NA + ,102 + ,NA + ,108 + ,NA + ,84 + ,NA + ,102 + ,NA + ,86 + ,NA + ,84 + ,NA + ,102 + ,NA + ,88 + ,NA + ,75 + ,NA + ,104 + ,NA + ,97 + ,NA + ,78 + ,NA + ,104 + ,NA + ,110 + ,NA + ,94 + ,NA + ,104 + ,NA + ,102 + ,NA + ,75 + ,NA + ,104 + ,NA + ,92 + ,NA + ,82 + ,NA + ,105 + ,NA + ,91 + ,NA + ,87 + ,NA + ,105 + ,NA + ,92 + ,NA + ,59 + ,NA + ,105 + ,NA + ,72 + ,NA + ,68 + ,NA + ,105 + ,NA + ,88 + ,NA + ,80 + ,NA + ,105 + ,NA + ,99 + ,NA + ,94 + ,NA + ,105 + ,NA + ,95 + ,NA + ,87 + ,NA + ,106 + ,NA + ,83 + ,NA + ,70 + ,NA + ,106 + ,NA + ,68 + ,NA + ,113 + ,NA + ,108 + ,NA + ,101 + ,NA + ,99 + ,NA + ,109 + ,NA + ,91 + ,NA + ,90 + ,NA + ,109 + ,NA + ,89 + ,NA + ,102 + ,NA + ,110 + ,NA + ,98 + ,NA + ,80 + ,NA + ,110 + ,NA + ,89 + ,NA + ,98 + ,NA + ,110 + ,NA + ,98 + ,NA + ,98 + ,NA + ,110 + ,NA + ,97 + ,NA + ,95 + ,NA + ,111 + ,NA + ,98 + ,NA + ,104 + ,NA + ,113 + ,NA + ,113 + ,NA + ,86 + ,NA + ,113 + ,NA + ,83 + ,NA + ,84 + ,NA + ,113 + ,NA + ,92 + ,NA + ,85 + ,NA + ,114 + ,NA + ,113 + ,NA + ,90 + ,NA + ,114 + ,NA + ,103 + ,NA + ,86 + ,NA + ,114 + ,NA + ,96 + ,NA + ,97 + ,NA + ,114 + ,NA + ,94 + ,NA) + ,dim=c(6 + ,162) + ,dimnames=list(c('WJ7ARD' + ,'WJ10ARD' + ,'WJ7AMA' + ,'WJ10AMA' + ,'WJ7AKN' + ,'WJ10AKN') + ,1:162)) > y <- array(NA,dim=c(6,162),dimnames=list(c('WJ7ARD','WJ10ARD','WJ7AMA','WJ10AMA','WJ7AKN','WJ10AKN'),1:162)) > 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' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, CARE BoxPlot and Descriptives (v1.0.1) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/Ian.Holliday/rwasp_varia1.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/1vvpf1288032014.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/2656i1288032014.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] [,5] [,6] [1,] 58.0 69.0 62 67 63 73 [2,] 82.0 86.0 81 84 83 83 [3,] 88.5 90.0 91 90 92 90 [4,] 98.0 99.5 98 98 99 96 [5,] 117.0 113.0 114 111 119 107 $n [1] 162 104 162 104 162 103 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 86.51382 87.90842 88.88968 87.83096 90.01382 87.97613 [2,] 90.48618 92.09158 93.11032 92.16904 93.98618 92.02387 $out numeric(0) $group numeric(0) $names [1] "WJ7ARD" "WJ10ARD" "WJ7AMA" "WJ10AMA" "WJ7AKN" "WJ10AKN" > 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/3r5mo1288032014.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/4volu1288032014.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/5nf2x1288032014.tab") > try(system("convert tmp/1vvpf1288032014.ps tmp/1vvpf1288032014.png",intern=TRUE)) character(0) > try(system("convert tmp/2656i1288032014.ps tmp/2656i1288032014.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.930 0.515 23.111