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 <- c(15.5,15.1,11.7,16.3,16.7,15,14.9,14.6,15.3,17.9,16.4,15.4,17.9,15.9,13.9,17.8,17.9,17.4,16.7,16,16.6,19.1,17.8,17.2,18.6,16.3,15.1,19.2,17.7,19.1,18,17.5,17.8,21.1,17.2,19.4,19.8,17.6,16.2,19.5,19.9,20,17.3,18.9,18.6,21.4,18.6,19.8,20.8,19.6,17.7,19.8,22.2,20.7,17.9,20.9,21.2,21.4,23,21.3,23.9,22.4,18.3,22.8,22.3,17.8,16.4,16,16.4,17.7,16.6,16.2,18.3) > par1 = '12' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), 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: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > (n <- length(x)) [1] 73 > (np <- floor(n / par1)) [1] 6 > arr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + if (j == par1) j = 0 + } > ari [1] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 15.5 17.9 18.6 19.8 20.8 23.9 18.3 [2,] 15.1 15.9 16.3 17.6 19.6 22.4 NA [3,] 11.7 13.9 15.1 16.2 17.7 18.3 NA [4,] 16.3 17.8 19.2 19.5 19.8 22.8 NA [5,] 16.7 17.9 17.7 19.9 22.2 22.3 NA [6,] 15.0 17.4 19.1 20.0 20.7 17.8 NA [7,] 14.9 16.7 18.0 17.3 17.9 16.4 NA [8,] 14.6 16.0 17.5 18.9 20.9 16.0 NA [9,] 15.3 16.6 17.8 18.6 21.2 16.4 NA [10,] 17.9 19.1 21.1 21.4 21.4 17.7 NA [11,] 16.4 17.8 17.2 18.6 23.0 16.6 NA [12,] 15.4 17.2 19.4 19.8 21.3 16.2 NA > arr.sd <- array(NA,dim=par1) > arr.range <- array(NA,dim=par1) > arr.iqr <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.sd[j] <- sqrt(var(arr[j,],na.rm=TRUE)) + arr.range[j] <- max(arr[j,],na.rm=TRUE) - min(arr[j,],na.rm=TRUE) + arr.iqr[j] <- quantile(arr[j,],0.75,na.rm=TRUE) - quantile(arr[j,],0.25,na.rm=TRUE) + } > overall.sd <- sqrt(var(x)) > overall.range <- max(x) - min(x) > overall.iqr <- quantile(x,0.75) - quantile(x,0.25) > postscript(file="/var/www/html/rcomp/tmp/1lmk11261053308.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.sd,type='b',ylab='S.D.',main='Standard Deviation Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.sd,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/25mka1261053308.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.range,type='b',ylab='range',main='Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.range,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/3ajzy1261053308.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.iqr,type='b',ylab='IQR',main='Interquartile Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.iqr,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4l81t1261053308.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(arr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 15.5 15.10 11.70 16.30 16.7 15.00 14.9 14.60 15.3 17.7 16.4 15.4 [2,] 18.1 15.90 13.90 17.80 17.7 17.40 16.4 16.00 16.4 17.9 16.6 16.2 [3,] 18.6 16.95 15.65 19.35 18.9 18.45 17.0 16.75 17.2 20.1 17.5 18.3 [4,] 20.3 19.60 17.70 19.80 22.2 20.00 17.9 18.90 18.6 21.4 18.6 19.8 [5,] 20.8 22.40 18.30 22.80 22.3 20.70 18.0 20.90 21.2 21.4 18.6 21.3 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17.28620 14.56338 13.19888 18.05994 15.99735 16.77292 16.03245 14.87941 [2,] 19.91380 19.33662 18.10112 20.64006 21.80265 20.12708 17.96755 18.62059 [,9] [,10] [,11] [,12] [1,] 15.78093 17.84239 16.20994 15.97788 [2,] 18.61907 22.35761 18.79006 20.62212 $out [1] 23.9 23.0 $group [1] 1 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15.5, 18.1, 18.6, 20.3, 20.8, 15.1, 15.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ifu11261053308.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(arr) > names(z) <- c(1:np) > (boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.60 15.90 15.10 16.20 17.70 16.00 18.3 [2,] 14.95 16.30 17.35 18.10 19.70 16.40 18.3 [3,] 15.35 17.30 17.90 19.20 20.85 17.75 18.3 [4,] 16.35 17.85 19.15 19.85 21.35 22.35 18.3 [5,] 17.90 19.10 21.10 21.40 23.00 23.90 18.3 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.71145 16.59303 17.07901 18.40181 20.09742 15.03617 18.3 [2,] 15.98855 18.00697 18.72099 19.99819 21.60258 20.46383 18.3 $out [1] 11.7 13.9 $group [1] 1 2 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(14.6, 14.95, 15.35, 16.35, 17.9, 15.9, 16.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6r3ha1261053308.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.sd,arr.range,arr.iqr)) > names(z) <- list('S.D.','Range','IQR') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Variability',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 1.750048 5.60 1.2750 [2,] 2.072365 5.65 1.8000 [3,] 2.295135 6.10 2.4125 [4,] 2.458892 6.60 3.1250 [5,] 2.741836 7.30 3.8750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.118837 5.666699 1.808159 [2,] 2.471432 6.533301 3.016841 $out [1] 1.153545 8.400000 3.100000 3.700000 $group [1] 1 2 2 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.75004761839976, 2.07236538319964, 2.29513478825197, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1lmk11261053308.ps tmp/1lmk11261053308.png",intern=TRUE)) character(0) > try(system("convert tmp/25mka1261053308.ps tmp/25mka1261053308.png",intern=TRUE)) character(0) > try(system("convert tmp/3ajzy1261053308.ps tmp/3ajzy1261053308.png",intern=TRUE)) character(0) > try(system("convert tmp/4l81t1261053308.ps tmp/4l81t1261053308.png",intern=TRUE)) character(0) > try(system("convert tmp/5ifu11261053308.ps tmp/5ifu11261053308.png",intern=TRUE)) character(0) > try(system("convert tmp/6r3ha1261053308.ps tmp/6r3ha1261053308.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.042 0.794 1.317