R version 2.8.1 (2008-12-22) 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(168802,173276,172957,173558,173820,171663,174110,174338,175440,174922,172188,171330,169560,174579,173740,173427,172952,170305,172717,173019,173690,172439,171914,171968,169500,173898,172308,171568,164939,161275,160770,162466,160185,154836,154103,150495,142707,149962,149967,144572,143819,141070,144119,145330,143279,139063,139202,133632,134476,141859,140693,138047,138346,140167,146796,152228,155410,159032,160312,157687,160141,167421,167628,164403,163405) > 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] 65 > (np <- floor(n / par1)) [1] 5 > 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] 6 6 6 6 6 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 168802 169560 169500 142707 134476 160141 [2,] 173276 174579 173898 149962 141859 167421 [3,] 172957 173740 172308 149967 140693 167628 [4,] 173558 173427 171568 144572 138047 164403 [5,] 173820 172952 164939 143819 138346 163405 [6,] 171663 170305 161275 141070 140167 NA [7,] 174110 172717 160770 144119 146796 NA [8,] 174338 173019 162466 145330 152228 NA [9,] 175440 173690 160185 143279 155410 NA [10,] 174922 172439 154836 139063 159032 NA [11,] 172188 171914 154103 139202 160312 NA [12,] 171330 171968 150495 133632 157687 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/1lfnm1258037065.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/rcomp/tmp/2dhhw1258037065.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/rcomp/tmp/3hz301258037065.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/rcomp/tmp/4fie81258037065.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] [1,] 134476.0 141859.0 140693 138047.0 138346 140167 144119 145330 143279 [2,] 142707.0 149962.0 149967 144572.0 143819 141070 146796 152228 155410 [3,] 164471.5 170348.5 169968 167985.5 164172 161275 160770 162466 160185 [4,] 169500.0 173898.0 172957 173427.0 172952 170305 172717 173019 173690 [5,] 169560.0 174579.0 173740 173558.0 173820 171663 174110 174338 175440 [,10] [,11] [,12] [1,] 139063 139202 133632 [2,] 154836 154103 150495 [3,] 159032 160312 157687 [4,] 172439 171914 171330 [5,] 174922 172188 171968 $n [1] 6 6 6 6 6 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 147189.1 154909 155138.7 149373.1 145380.3 140617.6 142454.3 147775.1 [2,] 181753.9 185788 184797.3 186597.9 182963.7 181932.4 179085.7 177156.9 [,9] [,10] [,11] [,12] [1,] 147268.4 146593.8 147726.8 142965.0 [2,] 173101.6 171470.2 172897.2 172409.0 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(134476, 142707, 164471.5, 169500, 169560, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/542au1258037065.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] [1,] 168802.0 169560.0 150495.0 133632 134476.0 160141 [2,] 171925.5 171941.0 157510.5 140136 139256.5 163405 [3,] 173417.0 172834.5 161870.5 143549 144327.5 164403 [4,] 174224.0 173558.5 170534.0 144951 156548.5 167421 [5,] 175440.0 174579.0 173898.0 149967 160312.0 167628 $n [1] 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 172368.6 172096.7 155930.4 141352.8 136440.5 161565.3 [2,] 174465.4 173572.3 167810.6 145745.2 152214.5 167240.7 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(168802, 171925.5, 173417, 174224, 175440, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6p2qf1258037065.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,] 12706.99 29008.0 17603.00 [2,] 13893.54 31828.5 18346.25 [3,] 14307.83 33016.5 20813.00 [4,] 15353.42 35492.5 22846.25 [5,] 15954.92 38336.0 29235.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 13641.97 31345.33 18760.52 [2,] 14973.70 34687.67 22865.48 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(12706.9942630033, 13893.5370993108, 14307.8339759506, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1lfnm1258037065.ps tmp/1lfnm1258037065.png") > system("convert tmp/2dhhw1258037065.ps tmp/2dhhw1258037065.png") > system("convert tmp/3hz301258037065.ps tmp/3hz301258037065.png") > system("convert tmp/4fie81258037065.ps tmp/4fie81258037065.png") > system("convert tmp/542au1258037065.ps tmp/542au1258037065.png") > system("convert tmp/6p2qf1258037065.ps tmp/6p2qf1258037065.png") > > > proc.time() user system elapsed 1.410 1.290 2.392