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(282965,276610,277838,277051,277026,274960,270073,267063,264916,287182,291109,292223,288109,281400,282579,280113,280331,276759,275139,274275,271234,289725,290649,292223,278429,269749,265784,268957,264099,255121,253276,245980,235295,258479,260916,254586,250566,243345,247028,248464,244962,237003,237008,225477,226762,247857,248256,246892,245021,246186,255688,264242,268270,272969,273886,267353,271916,292633,295804,293222) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 282965 288109 278429 250566 245021 NA [2,] 276610 281400 269749 243345 246186 NA [3,] 277838 282579 265784 247028 255688 NA [4,] 277051 280113 268957 248464 264242 NA [5,] 277026 280331 264099 244962 268270 NA [6,] 274960 276759 255121 237003 272969 NA [7,] 270073 275139 253276 237008 273886 NA [8,] 267063 274275 245980 225477 267353 NA [9,] 264916 271234 235295 226762 271916 NA [10,] 287182 289725 258479 247857 292633 NA [11,] 291109 290649 260916 248256 295804 NA [12,] 292223 292223 254586 246892 293222 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/1lhg31257813472.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/2ucxm1257813472.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/3hjxh1257813472.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/4wafg1257813472.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] [1,] 245021 243345 247028 248464 244962 237003 237008 225477 226762 247857 [2,] 250566 246186 255688 264242 264099 255121 253276 245980 235295 258479 [3,] 278429 269749 265784 268957 268270 272969 270073 267063 264916 287182 [4,] 282965 276610 277838 277051 277026 274960 273886 267353 271234 289725 [5,] 288109 281400 282579 280113 280331 276759 275139 274275 271916 292633 [,11] [,12] [1,] 248256 246892 [2,] 260916 254586 [3,] 290649 292223 [4,] 291109 292223 [5,] 295804 293222 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 255535.9 248251.5 250132.9 259906.2 259135.8 258950.8 255510.0 251960.9 [2,] 301322.1 291246.5 281435.1 278007.8 277404.2 286987.2 284636.0 282165.1 [,9] [,10] [,11] [,12] [1,] 239521.6 265103.7 269314.7 265628.8 [2,] 290310.4 309260.3 311983.3 318817.2 $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(245021, 250566, 278429, 282965, 288109, 243345, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/56xmy1257813472.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,] 264916.0 271234.0 235295.0 225477.0 245021.0 NA [2,] 272516.5 275949.0 253931.0 237005.5 259965.0 NA [3,] 277038.5 280865.5 259697.5 245927.0 270093.0 NA [4,] 285073.5 288917.0 267370.5 248056.5 283259.5 NA [5,] 292223.0 292223.0 278429.0 250566.0 295804.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 271311.2 274950.7 253567.7 240886.6 259468.2 NA [2,] 282765.8 286780.3 265827.3 250967.4 280717.8 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(264916, 272516.5, 277038.5, 285073.5, 292223, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6vsm31257813472.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,] 12500.64 31649 12809.0 [2,] 15635.54 36803 20224.5 [3,] 18680.39 41422 26171.5 [4,] 20939.18 45742 31822.5 [5,] 23068.69 48798 37637.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16261.36 37344.86 20881.57 [2,] 21099.42 45499.14 31461.43 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(12500.6389156715, 15635.5364930417, 18680.3910189203, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/1lhg31257813472.ps tmp/1lhg31257813472.png") > system("convert tmp/2ucxm1257813472.ps tmp/2ucxm1257813472.png") > system("convert tmp/3hjxh1257813472.ps tmp/3hjxh1257813472.png") > system("convert tmp/4wafg1257813472.ps tmp/4wafg1257813472.png") > system("convert tmp/56xmy1257813472.ps tmp/56xmy1257813472.png") > system("convert tmp/6vsm31257813472.ps tmp/6vsm31257813472.png") > > > proc.time() user system elapsed 1.340 1.350 2.487