R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(11.9,13.6,15.2,12.5,14.9,13.7,12.5,13.1,14.5,15.2,16.1,14.8,15.1,14.8,16.1,14.3,15.2,14.9,13.1,12.6,13.6,14.4,14,12.9,13.4,13.5,14.8,14.3,14.3,14,13.2,12.2,14.3,15.7,14.2,14.6,14.5,14.3,15.3,14.4,13.7,14.2,13.5,11.9,14.6,15.6,14.1,14.9,14.2,14.6,17.2,15.4,14.3,17.5,14.5,14.4,16.6,16.7,16.6,16.9,15.7,16.4,18.4,16.9,16.5,18.3,15.1,15.7,18.1,16.8,18.9,19,18.1,17.8,21.5,17.1,18.7,19,16.4,16.9,18.6,19.3,19.4,17.6,18.6,18.1,20.4,18.1,19.6,19.9,19.2,17.8,19.2,22.1,21.2,19.5) > 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] 96 > (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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 11.9 15.1 13.4 14.5 14.2 15.7 18.1 18.6 NA [2,] 13.6 14.8 13.5 14.3 14.6 16.4 17.8 18.1 NA [3,] 15.2 16.1 14.8 15.3 17.2 18.4 21.5 20.4 NA [4,] 12.5 14.3 14.3 14.4 15.4 16.9 17.1 18.1 NA [5,] 14.9 15.2 14.3 13.7 14.3 16.5 18.7 19.6 NA [6,] 13.7 14.9 14.0 14.2 17.5 18.3 19.0 19.9 NA [7,] 12.5 13.1 13.2 13.5 14.5 15.1 16.4 19.2 NA [8,] 13.1 12.6 12.2 11.9 14.4 15.7 16.9 17.8 NA [9,] 14.5 13.6 14.3 14.6 16.6 18.1 18.6 19.2 NA [10,] 15.2 14.4 15.7 15.6 16.7 16.8 19.3 22.1 NA [11,] 16.1 14.0 14.2 14.1 16.6 18.9 19.4 21.2 NA [12,] 14.8 12.9 14.6 14.9 16.9 19.0 17.6 19.5 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/1sn3t1230330796.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/2smwe1230330796.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/3sxzf1230330796.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/4xn5x1230330796.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,] 11.9 13.50 14.80 12.5 13.70 13.70 12.50 11.90 13.60 14.40 14.00 12.9 [2,] 13.8 13.95 15.25 14.3 14.30 14.10 13.15 12.40 14.40 15.40 14.15 14.7 [3,] 14.8 14.70 16.65 14.9 15.05 16.20 14.00 13.75 15.60 16.20 16.35 15.9 [4,] 16.9 17.10 19.40 17.0 17.60 18.65 15.75 16.30 18.35 18.05 19.15 18.3 [5,] 18.6 18.10 21.50 18.1 19.60 19.90 19.20 17.80 19.20 19.30 21.20 19.5 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 13.06830 12.94036 14.33175 13.39174 13.20657 13.65830 12.54760 11.57140 [2,] 16.53170 16.45964 18.96825 16.40826 16.89343 18.74170 15.45240 15.92860 [,9] [,10] [,11] [,12] [1,] 13.39347 14.71967 13.55693 13.88899 [2,] 17.80653 17.68033 19.14307 17.91101 $out [1] 22.1 $group [1] 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11.9, 13.8, 14.8, 16.9, 18.6, 13.5, 13.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5umf81230330796.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] [,8] [,9] [1,] 11.90 12.60 12.20 13.50 14.20 15.10 16.40 17.80 NA [2,] 12.80 13.35 13.45 13.90 14.45 16.05 17.35 18.35 NA [3,] 14.10 14.35 14.25 14.35 16.00 16.85 18.35 19.35 NA [4,] 15.05 15.00 14.45 14.75 16.80 18.35 19.15 20.15 NA [5,] 16.10 16.10 15.70 15.60 17.50 19.00 21.50 22.10 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 13.07376 13.59742 13.79389 13.96231 14.92815 15.80095 17.52901 18.52901 [2,] 15.12624 15.10258 14.70611 14.73769 17.07185 17.89905 19.17099 20.17099 [,9] [1,] NA [2,] NA $out [1] 11.9 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(11.9, 12.8, 14.1, 15.05, 16.1, 12.6, 13.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61y9g1230330796.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.816934 4.60 1.9250 [2,] 2.198782 5.75 2.4625 [3,] 2.257104 6.40 2.9750 [4,] 2.514196 6.70 3.7000 [5,] 2.750292 7.70 4.8500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.113242 5.966699 2.410568 [2,] 2.400967 6.833301 3.539432 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.81693423106066, 2.19878199235267, 2.25710402897144, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1sn3t1230330796.ps tmp/1sn3t1230330796.png") > system("convert tmp/2smwe1230330796.ps tmp/2smwe1230330796.png") > system("convert tmp/3sxzf1230330796.ps tmp/3sxzf1230330796.png") > system("convert tmp/4xn5x1230330796.ps tmp/4xn5x1230330796.png") > system("convert tmp/5umf81230330796.ps tmp/5umf81230330796.png") > system("convert tmp/61y9g1230330796.ps tmp/61y9g1230330796.png") > > > proc.time() user system elapsed 1.071 0.823 1.408