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(22577.0,22792.0,23932.0,22321.0,21102.0,22824.0,23129.0,23604.0,24746.0,26911.0,27909.0,28922.0,29800.0,30506.0,30771.0,31976.0,33749.0,34371.0,33246.0,35072.0,35762.0,36179.0,37433.0,38298.0,37559.0,37511.0,39364.0,40084.0,42712.0,41938.0,40799.0,38568.0,41134.0,43955.0,43607.0,45082.0,46464.0,46496.0,46774.0,47890.0,45740.0,42660.0,39190.0,39010.0,41150.0,42530.0,44710.0,46620.0,44560.0,46120.0,48060.0,51970.0,57720.0,63490.0,65370.0,64260.0,58700.0,58630.0,59803.0,59266.0,60570.0,63062.0,63846.0,64726.0,63460.0,65220.0,66659.0,66871.0,65672.0,67182.0,68292.0,68318.0,69530.0,70500.0,72044.0,73811.0,76018.0,77818.0,79455.0,81408.0,81815.0) > 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] 81 > (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 7 7 7 7 7 7 7 7 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 22577 29800 37559 46464 44560 60570 69530 [2,] 22792 30506 37511 46496 46120 63062 70500 [3,] 23932 30771 39364 46774 48060 63846 72044 [4,] 22321 31976 40084 47890 51970 64726 73811 [5,] 21102 33749 42712 45740 57720 63460 76018 [6,] 22824 34371 41938 42660 63490 65220 77818 [7,] 23129 33246 40799 39190 65370 66659 79455 [8,] 23604 35072 38568 39010 64260 66871 81408 [9,] 24746 35762 41134 41150 58700 65672 81815 [10,] 26911 36179 43955 42530 58630 67182 NA [11,] 27909 37433 43607 44710 59803 68292 NA [12,] 28922 38298 45082 46620 59266 68318 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/freestat/rcomp/tmp/1gaft1274880137.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/freestat/rcomp/tmp/2rjee1274880137.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/freestat/rcomp/tmp/3rjee1274880137.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/freestat/rcomp/tmp/4rjee1274880137.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,] 22577.0 22792.0 23932.0 22321 21102.0 22824.0 23129.0 23604.0 24746 [2,] 33679.5 34008.5 35067.5 36030 38230.5 38154.5 36218.0 36820.0 38448 [3,] 44560.0 46120.0 46774.0 47890 45740.0 42660.0 40799.0 39010.0 41150 [4,] 53517.0 54779.0 55953.0 58348 60590.0 64355.0 66014.5 65565.5 62186 [5,] 69530.0 70500.0 72044.0 73811 76018.0 77818.0 79455.0 81408.0 81815 [,10] [,11] [,12] [1,] 26911.0 27909.0 28922 [2,] 36179.0 37433.0 38298 [3,] 43242.5 44158.5 45851 [4,] 58630.0 59803.0 59266 [5,] 67182.0 68292.0 68318 $n [1] 7 7 7 7 7 7 7 7 7 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 32713.37 33716.19 34301.52 34562.05 32387.27 27013.48 23005.01 21843.65 [2,] 56406.63 58523.81 59246.48 61217.95 59092.73 58306.52 58592.99 56176.35 [,9] [,10] [,11] [,12] [1,] 26974.05 28760.88 29729.13 32325.96 [2,] 55325.95 57724.12 58587.87 59376.04 $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(22577, 33679.5, 44560, 53517, 69530, 22792, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5ksvz1274880137.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,] 21102.0 29800.0 37511.0 39010 44560.0 60570.0 69530 [2,] 22684.5 31373.5 38966.0 41840 50015.0 63653.0 72044 [3,] 23366.5 34060.0 40966.5 45225 58665.0 65446.0 76018 [4,] 25828.5 35970.5 43159.5 46558 61646.5 67026.5 79455 [5,] 28922.0 38298.0 45082.0 47890 65370.0 68318.0 81815 $n [1] 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 21932.5 31963.28 39053.82 43073.09 53359.8 63907.32 72114.87 [2,] 24800.5 36156.72 42879.18 47376.91 63970.2 66984.68 79921.13 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(21102, 22684.5, 23366.5, 25828.5, 28922, 29800, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6ksvz1274880137.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,] 14197.82 39396 16110.50 [2,] 15632.34 43668 18516.00 [3,] 17560.54 49801 21601.75 [4,] 19620.15 55660 24969.25 [5,] 20997.21 57804 29796.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15741.67 44331.37 18658.38 [2,] 19379.40 55270.63 24545.12 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" > dev.off() null device 1 > > try(system("convert tmp/1gaft1274880137.ps tmp/1gaft1274880137.png",intern=TRUE)) character(0) > try(system("convert tmp/2rjee1274880137.ps tmp/2rjee1274880137.png",intern=TRUE)) character(0) > try(system("convert tmp/3rjee1274880137.ps tmp/3rjee1274880137.png",intern=TRUE)) character(0) > try(system("convert tmp/4rjee1274880137.ps tmp/4rjee1274880137.png",intern=TRUE)) character(0) > try(system("convert tmp/5ksvz1274880137.ps tmp/5ksvz1274880137.png",intern=TRUE)) character(0) > try(system("convert tmp/6ksvz1274880137.ps tmp/6ksvz1274880137.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.665 1.298 1.984