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(269645,267037,258113,262813,267413,267366,264777,258863,254844,254868,277267,285351,286602,283042,276687,277915,277128,277103,275037,270150,267140,264993,287259,291186,292300,288186,281477,282656,280190,280408,276836,275216,274352,271311,289802,290726,292300,278506,269826,265861,269034,264176,255198,253353,246057,235372,258556,260993,254663,250643,243422,247105,248541,245039,237080,237085,225554,226839,247934,248333,246969,245098,246263,255765,264319,268347,273046,273963,267430,271993,292710,295881) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 269645 286602 292300 292300 254663 246969 NA [2,] 267037 283042 288186 278506 250643 245098 NA [3,] 258113 276687 281477 269826 243422 246263 NA [4,] 262813 277915 282656 265861 247105 255765 NA [5,] 267413 277128 280190 269034 248541 264319 NA [6,] 267366 277103 280408 264176 245039 268347 NA [7,] 264777 275037 276836 255198 237080 273046 NA [8,] 258863 270150 275216 253353 237085 273963 NA [9,] 254844 267140 274352 246057 225554 267430 NA [10,] 254868 264993 271311 235372 226839 271993 NA [11,] 277267 287259 289802 258556 247934 292710 NA [12,] 285351 291186 290726 260993 248333 295881 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/1br7i1258281674.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/2r0c01258281674.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/3hk9q1258281674.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/42joy1258281674.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,] 246969.0 245098.0 243422.0 247105 248541.0 245039.0 237080.0 237085.0 [2,] 254663.0 250643.0 246263.0 255765 264319.0 264176.0 255198.0 253353.0 [3,] 278123.5 272771.5 263969.5 264337 268223.5 267856.5 268911.5 264506.5 [4,] 292300.0 283042.0 276687.0 277915 277128.0 277103.0 275037.0 273963.0 [5,] 292300.0 288186.0 281477.0 282656 280190.0 280408.0 276836.0 275216.0 [,9] [,10] [,11] [,12] [1,] 225554 226839.0 247934 248333.0 [2,] 246057 235372.0 258556 260993.0 [3,] 260992 259930.5 282263 288038.5 [4,] 267430 271311.0 289802 291186.0 [5,] 274352 271993.0 292710 295881.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 253846.4 251873.1 244345.0 250049.5 259961.3 259518.2 256114.7 251212.4 [2,] 302400.6 293669.9 283594.0 278624.5 276485.7 276194.8 281708.3 277800.6 [,9] [,10] [,11] [,12] [1,] 247205.7 236748.7 262108.3 268563.0 [2,] 274778.3 283112.3 302417.7 307514.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(246969, 254663, 278123.5, 292300, 292300, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58a4a1258281674.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,] 254844 264993.0 271311.0 235372.0 225554.0 245098.0 NA [2,] 258488 272593.5 276026.0 254275.5 237082.5 251367.0 NA [3,] 265907 277115.5 280942.5 262584.5 246072.0 267888.5 NA [4,] 268529 284822.0 288994.0 269430.0 248437.0 273504.5 NA [5,] 277267 291186.0 292300.0 278506.0 254663.0 295881.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 261327.2 271538 275027.7 255672.4 240893.1 257791.4 NA [2,] 270486.8 282693 286857.3 269496.6 251250.9 277985.6 NA $out [1] 285351 292300 $group [1] 1 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(254844, 258488, 265907, 268529, 277267, 264993, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6jm711258281674.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,] 11182.29 31649.0 9940.50 [2,] 14040.96 36803.0 17160.50 [3,] 16795.71 41422.0 21546.12 [4,] 18753.90 45242.5 26549.50 [5,] 19757.36 48798.0 32467.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 14646.10 37572.69 17263.74 [2,] 18945.31 45271.31 25828.51 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(11182.2855162380, 14040.9644913254, 16795.7074500888, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1br7i1258281674.ps tmp/1br7i1258281674.png") > system("convert tmp/2r0c01258281674.ps tmp/2r0c01258281674.png") > system("convert tmp/3hk9q1258281674.ps tmp/3hk9q1258281674.png") > system("convert tmp/42joy1258281674.ps tmp/42joy1258281674.png") > system("convert tmp/58a4a1258281674.ps tmp/58a4a1258281674.png") > system("convert tmp/6jm711258281674.ps tmp/6jm711258281674.png") > > > proc.time() user system elapsed 1.026 0.787 2.755