R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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 <- c(17,16.7,15.4,15.1,16.1,17,16.1,14.3,16.1,14.8,15.9,17.6,15.9,14.8,16.5,15.6,14.6,17.1,15.2,14.8,15.4,16.6,15.1,15.4,15.2,16.6,16.1,15.7,15.8,15.7,16.9,15.9,17.1,17,16.6,17.1,16.6,16.6,16.5,17,15.9,17,16.1,16.1,16.8,16.7,15.7,18.7,16.1,16.3,17.2,16.1,16.5,16.5,15.1,16.7,14.4,16.2,15.9,17.3,15.6,15.6,14.7,15.8,15.8,14.8,16.1,16.3,16.1,17.4,16.7,16.1,15.4,16.9,15.5,17.6,18.4,15.9,15.2,15.5,15.9,15.8,17.6,18.2,15.9,15.7,16.4,15.6,15.8,17,16.8,16.6,17.7,15.7,18,18.2,16.4,18,16.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] 99 > (np <- floor(n / par1)) [1] 8 > 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] 9 9 9 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 17.0 15.9 15.2 16.6 16.1 15.6 15.4 15.9 16.4 [2,] 16.7 14.8 16.6 16.6 16.3 15.6 16.9 15.7 18.0 [3,] 15.4 16.5 16.1 16.5 17.2 14.7 15.5 16.4 16.3 [4,] 15.1 15.6 15.7 17.0 16.1 15.8 17.6 15.6 NA [5,] 16.1 14.6 15.8 15.9 16.5 15.8 18.4 15.8 NA [6,] 17.0 17.1 15.7 17.0 16.5 14.8 15.9 17.0 NA [7,] 16.1 15.2 16.9 16.1 15.1 16.1 15.2 16.8 NA [8,] 14.3 14.8 15.9 16.1 16.7 16.3 15.5 16.6 NA [9,] 16.1 15.4 17.1 16.8 14.4 16.1 15.9 17.7 NA [10,] 14.8 16.6 17.0 16.7 16.2 17.4 15.8 15.7 NA [11,] 15.9 15.1 16.6 15.7 15.9 16.7 17.6 18.0 NA [12,] 17.6 15.4 17.1 18.7 17.3 16.1 18.2 18.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/rcomp/tmp/1jwtn1304892460.ps",horizontal=F,onefile=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/rcomp/tmp/2wz1h1304892460.ps",horizontal=F,onefile=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/rcomp/tmp/3vp261304892460.ps",horizontal=F,onefile=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/rcomp/tmp/4bte91304892460.ps",horizontal=F,onefile=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.2 14.8 14.7 15.10 15.80 14.80 15.10 14.30 14.40 14.80 15.10 15.40 [2,] 15.6 15.7 15.5 15.60 15.80 15.80 15.20 15.15 15.65 15.75 15.80 16.60 [3,] 15.9 16.6 16.3 15.75 15.85 16.75 16.10 16.00 16.10 16.40 16.25 17.45 [4,] 16.4 16.7 16.5 16.55 16.30 17.00 16.45 16.45 16.95 16.85 17.15 18.20 [5,] 17.0 18.0 17.2 17.60 16.50 17.10 16.90 16.70 17.70 17.40 18.00 18.70 $n [1] 9 9 9 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15.47867 16.07333 15.77333 15.21932 15.57069 16.07966 15.40173 15.2738 [2,] 16.32133 17.12667 16.82667 16.28068 16.12931 17.42034 16.79827 16.7262 [,9] [,10] [,11] [,12] [1,] 15.3738 15.78552 15.49587 16.55622 [2,] 16.8262 17.01448 17.00413 18.34378 $out [1] 14.6 18.4 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15.2, 15.6, 15.9, 16.4, 17, 14.8, 15.7, 16.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5bsov1304892460.ps",horizontal=F,onefile=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] [,8] [,9] [1,] 14.30 14.60 15.20 15.7 15.10 14.70 15.2 15.60 16.30 [2,] 15.25 14.95 15.75 16.1 16.00 15.60 15.5 15.75 16.35 [3,] 16.10 15.40 16.35 16.6 16.25 15.95 15.9 16.50 16.40 [4,] 16.85 16.20 16.95 16.9 16.60 16.20 17.6 17.35 17.20 [5,] 17.60 17.10 17.10 17.0 17.30 16.70 18.4 18.20 18.00 $n [1] 12 12 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15.37023 14.82987 15.80267 16.23511 15.97634 15.67634 14.94218 15.77023 [2,] 16.82977 15.97013 16.89733 16.96489 16.52366 16.22366 16.85782 17.22977 [,9] [1,] 15.62462 [2,] 17.17538 $out [1] 18.7 14.4 17.4 $group [1] 4 5 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(14.3, 15.25, 16.1, 16.85, 17.6, 14.6, 14.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6k20r1304892460.ps",horizontal=F,onefile=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,] 0.5819030 1.80 0.7250 [2,] 0.7873150 2.35 0.9000 [3,] 0.8455054 2.55 1.0250 [4,] 1.0071512 3.25 1.0875 [5,] 1.1183534 3.80 1.3500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.7452367 2.139504 0.93948 [2,] 0.9457742 2.960496 1.11052 $out [1] 0.4 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.581903008336537, 0.787315033799979, 0.845505402680243, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1jwtn1304892460.ps tmp/1jwtn1304892460.png",intern=TRUE)) character(0) > try(system("convert tmp/2wz1h1304892460.ps tmp/2wz1h1304892460.png",intern=TRUE)) character(0) > try(system("convert tmp/3vp261304892460.ps tmp/3vp261304892460.png",intern=TRUE)) character(0) > try(system("convert tmp/4bte91304892460.ps tmp/4bte91304892460.png",intern=TRUE)) character(0) > try(system("convert tmp/5bsov1304892460.ps tmp/5bsov1304892460.png",intern=TRUE)) character(0) > try(system("convert tmp/6k20r1304892460.ps tmp/6k20r1304892460.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.092 0.464 2.521