R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(266433,267722,266003,262971,265521,264676,270223,269508,268457,265814,266680,263018,269285,269829,270911,266844,271244,269907,271296,270157,271322,267179,264101,265518,269419,268714,272482,268351,268175,270674,272764,272599,270333,270846,270491,269160,274027,273784,276663,274525,271344,271115,270798,273911,273985,271917,273338,270601,273547,275363,281229,277793,279913,282500,280041,282166,290304,283519,287816,285226,287595,289741,289148,288301,290155,289648,288225,289351,294735,305333,309030,310215,321935) > 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] 73 > (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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 266433 269285 269419 274027 273547 287595 321935 [2,] 267722 269829 268714 273784 275363 289741 NA [3,] 266003 270911 272482 276663 281229 289148 NA [4,] 262971 266844 268351 274525 277793 288301 NA [5,] 265521 271244 268175 271344 279913 290155 NA [6,] 264676 269907 270674 271115 282500 289648 NA [7,] 270223 271296 272764 270798 280041 288225 NA [8,] 269508 270157 272599 273911 282166 289351 NA [9,] 268457 271322 270333 273985 290304 294735 NA [10,] 265814 267179 270846 271917 283519 305333 NA [11,] 266680 264101 270491 273338 287816 309030 NA [12,] 263018 265518 269160 270601 285226 310215 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/15bi71243445095.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/2hl9w1243445095.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/3h45e1243445095.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/46p8e1243445095.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,] 266433 267722.0 266003.0 262971 265521 264676.0 270223 269508 268457.0 [2,] 269352 268714.0 270911.0 266844 268175 269907.0 270798 270157 270333.0 [3,] 273547 271806.5 274572.5 271438 271294 270894.5 272030 273255 272653.5 [4,] 280811 275363.0 281229.0 277793 279913 282500.0 280041 282166 290304.0 [5,] 287595 275363.0 289148.0 288301 290155 289648.0 288225 289351 294735.0 [,10] [,11] [,12] [1,] 265814.0 264101.0 263018.0 [2,] 267179.0 266680.0 265518.0 [3,] 271381.5 271914.5 269880.5 [4,] 283519.0 287816.0 285226.0 [5,] 305333.0 309030.0 310215.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 266703.9 267517.7 267917.1 264375.5 263722.6 262771.6 266068.0 265508.8 [2,] 280390.1 276095.3 281227.9 278500.5 278865.4 279017.4 277992.0 281001.2 [,9] [,10] [,11] [,12] [1,] 259771.6 260841.7 258281.1 257168.2 [2,] 285535.4 281921.3 285547.9 282592.8 $out [1] 321935 289741 $group [1] 1 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(266433, 269352, 273547, 280811, 287595, 267722, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5til01243445095.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,] 262971.0 264101.0 268175 270601.0 273547.0 287595.0 321935 [2,] 265098.5 267011.5 268937 271229.5 278853.0 288724.5 321935 [3,] 266218.0 269868.0 270412 273561.0 281697.5 289694.5 321935 [4,] 268089.5 271077.5 271664 274006.0 284372.5 300034.0 321935 [5,] 270223.0 271322.0 272764 276663.0 290304.0 310215.0 321935 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 264853.8 268013.5 269168.2 272294.6 279180 284536.2 321935 [2,] 267582.2 271722.5 271655.8 274827.4 284215 294852.8 321935 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(262971, 265098.5, 266218, 268089.5, 270223, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/62t9n1243445095.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,] 7178.316 18002 5975.500 [2,] 8203.906 22582 8806.125 [3,] 9252.559 25151 9655.125 [4,] 16048.934 42224 13832.000 [5,] 19594.476 55502 16563.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5674.39 16192.15 7362.79 [2,] 12830.73 34109.85 11947.46 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(7178.31571934996, 8203.90647828175, 9252.55949154316, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15bi71243445095.ps tmp/15bi71243445095.png") > system("convert tmp/2hl9w1243445095.ps tmp/2hl9w1243445095.png") > system("convert tmp/3h45e1243445095.ps tmp/3h45e1243445095.png") > system("convert tmp/46p8e1243445095.ps tmp/46p8e1243445095.png") > system("convert tmp/5til01243445095.ps tmp/5til01243445095.png") > system("convert tmp/62t9n1243445095.ps tmp/62t9n1243445095.png") > > > proc.time() user system elapsed 1.087 0.850 1.961