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(260288,261544,259886,257006,259670,258873,264416,263596,262586,260237,261690,259295,264170,264451,265538,261723,266189,265073,267007,266376,267406,262742,260300,263074,265940,264771,268403,264264,264118,266817,269296,269001,266707,267507,267510,267420,270845,270671,273653,271567,268372,268160,267879,271142,271323,269478,271008,269145,271684,273582,279475,276188,278422,281084,278618,280738,288897,282129,286406,284288,286139,288275,287670,286864,288798,288316,286915,288006,293338,303730,306248,305700,314849) > 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,] 260288 264170 265940 270845 271684 286139 314849 [2,] 261544 264451 264771 270671 273582 288275 NA [3,] 259886 265538 268403 273653 279475 287670 NA [4,] 257006 261723 264264 271567 276188 286864 NA [5,] 259670 266189 264118 268372 278422 288798 NA [6,] 258873 265073 266817 268160 281084 288316 NA [7,] 264416 267007 269296 267879 278618 286915 NA [8,] 263596 266376 269001 271142 280738 288006 NA [9,] 262586 267406 266707 271323 288897 293338 NA [10,] 260237 262742 267507 269478 282129 303730 NA [11,] 261690 260300 267510 271008 286406 306248 NA [12,] 259295 263074 267420 269145 284288 305700 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/1p3g01244107608.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/2lg9g1244107608.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/3tn9v1244107608.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/466oa1244107608.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] [1,] 260288.0 261544 259886 257006.0 259670.0 258873.0 264416.0 263596.0 [2,] 265055.0 264451 265538 261723.0 264118.0 265073.0 267007.0 266376.0 [3,] 270845.0 267721 271028 267915.5 267280.5 267488.5 268587.5 270071.5 [4,] 278911.5 273582 279475 276188.0 278422.0 281084.0 278618.0 280738.0 [5,] 286139.0 273582 287670 286864.0 288798.0 288316.0 286915.0 288006.0 [,9] [,10] [,11] [,12] [1,] 262586.0 260237.0 260300 259295.0 [2,] 266707.0 262742.0 261690 263074.0 [3,] 269364.5 268492.5 269259 268282.5 [4,] 288897.0 282129.0 286406 284288.0 [5,] 293338.0 303730.0 306248 305700.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,] 262570.1 261831.2 262038.2 258585.1 258054.0 257160.9 261098.0 260807.5 [2,] 279119.9 273610.8 280017.8 277245.9 276507.0 277816.1 276077.0 279335.5 [,9] [,10] [,11] [,12] [1,] 255051.2 255987.3 253316.4 254598.8 [2,] 283677.8 280997.7 285201.6 281966.2 $out [1] 314849 288275 $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(260288, 265055, 270845, 278911.5, 286139, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50t5a1244107608.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,] 257006.0 260300.0 264118.0 267879.0 271684.0 286139.0 314849 [2,] 259482.5 262908.0 265355.5 268758.5 277305.0 287292.5 314849 [3,] 260262.5 264762.0 267118.5 270758.0 280106.5 288295.5 314849 [4,] 262138.0 266282.5 267956.5 271232.5 283208.5 298534.0 314849 [5,] 264416.0 267406.0 269296.0 273653.0 288897.0 306248.0 314849 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 259051.3 263222.9 265932.2 269629.6 277413.9 283168.2 314849 [2,] 261473.7 266301.1 268304.8 271886.4 282799.1 293422.8 314849 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(257006, 259482.5, 260262.5, 262138, 264416, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6on251244107608.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,] 8628.321 22499.0 8323.25 [2,] 9896.055 27257.5 11290.25 [3,] 10967.192 29650.5 12509.25 [4,] 16835.847 44720.5 15687.38 [5,] 18906.531 54561.0 19411.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7801.907 21685.51 10503.69 [2,] 14132.477 37615.49 14514.81 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(8628.32139912896, 9896.05549457385, 10967.1921250762, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1p3g01244107608.ps tmp/1p3g01244107608.png") > system("convert tmp/2lg9g1244107608.ps tmp/2lg9g1244107608.png") > system("convert tmp/3tn9v1244107608.ps tmp/3tn9v1244107608.png") > system("convert tmp/466oa1244107608.ps tmp/466oa1244107608.png") > system("convert tmp/50t5a1244107608.ps tmp/50t5a1244107608.png") > system("convert tmp/6on251244107608.ps tmp/6on251244107608.png") > > > proc.time() user system elapsed 1.033 0.800 1.475