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(180144,173666,165688,161570,156145,153730,182698,200765,176512,166618,158644,159585,163095,159044,155511,153745,150569,150605,179612,194690,189917,184128,175335,179566,181140,177876,175041,169292,166070,166972,206348,215706,202108,195411,193111,195198,198770,194163,190420,189733,186029,191531,232571,243477,227247,217859,208679,213188,216234,213586,209465,204045,200237,203666,241476,260307,243324,244460,233575,237217,235243,230354,227184,221678,217142,219452,256446,265845,248624,241114,229245,231805,219277,219313,212610,214771,211142,211457,240048,240636,230580,208795,197922,194596,194581,185686,178106,172608,167302,168053,202300,202388,182516,173476,166444,171297,169701,164182,161914,159612,151001,158114,186530,187069,174330,169362,166827,178037,186413,189226,191563,188906,186005,195309,223532,226899,214126,206903,204442,220375,214320,212588,205816,202196,195722,198563,229139,229527,211868) > 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] 129 > (np <- floor(n / par1)) [1] 10 > 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] 11 11 11 11 11 11 11 11 11 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 180144 163095 181140 198770 216234 235243 219277 194581 169701 186413 [2,] 173666 159044 177876 194163 213586 230354 219313 185686 164182 189226 [3,] 165688 155511 175041 190420 209465 227184 212610 178106 161914 191563 [4,] 161570 153745 169292 189733 204045 221678 214771 172608 159612 188906 [5,] 156145 150569 166070 186029 200237 217142 211142 167302 151001 186005 [6,] 153730 150605 166972 191531 203666 219452 211457 168053 158114 195309 [7,] 182698 179612 206348 232571 241476 256446 240048 202300 186530 223532 [8,] 200765 194690 215706 243477 260307 265845 240636 202388 187069 226899 [9,] 176512 189917 202108 227247 243324 248624 230580 182516 174330 214126 [10,] 166618 184128 195411 217859 244460 241114 208795 173476 169362 206903 [11,] 158644 175335 193111 208679 233575 229245 197922 166444 166827 204442 [12,] 159585 179566 195198 213188 237217 231805 194596 171297 178037 220375 [,11] [1,] 214320 [2,] 212588 [3,] 205816 [4,] 202196 [5,] 195722 [6,] 198563 [7,] 229139 [8,] 229527 [9,] 211868 [10,] NA [11,] NA [12,] 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/176hy1291462291.ps",horizontal=F,onefile=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/2hfh11291462291.ps",horizontal=F,onefile=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/3hfh11291462291.ps",horizontal=F,onefile=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/4hfh11291462291.ps",horizontal=F,onefile=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,] 163095 159044 155511.0 153745.0 150569.0 150605.0 179612.0 187069.0 [2,] 180642 175771 170364.5 165431.0 161107.5 162543.0 194415.0 201576.5 [3,] 194581 189226 190420.0 188906.0 186005.0 191531.0 223532.0 226899.0 [4,] 215277 213087 207640.5 203120.5 197979.5 201114.5 236309.5 242056.5 [5,] 235243 230354 227184.0 221678.0 217142.0 219452.0 256446.0 265845.0 [,9] [,10] [,11] [,12] [1,] 174330.0 166618 158644.0 159585 [2,] 186216.5 173476 166827.0 178037 [3,] 211868.0 201157 195516.5 194897 [4,] 228913.5 217859 208679.0 220375 [5,] 248624.0 244460 233575.0 237217 $n [1] 11 11 11 11 11 11 11 11 11 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 178081.3 171449.1 172662.2 170951.2 168439.6 173156 203574.0 207614.8 [2,] 211080.7 207002.9 208177.8 206860.8 203570.4 209906 243490.0 246183.2 [,9] [,10] [,11] [,12] [1,] 191527.7 178981.5 174605.6 173743.2 [2,] 232208.3 223332.5 216427.4 216050.8 $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(163095, 180642, 194581, 215277, 235243, 159044, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5aoy41291462291.ps",horizontal=F,onefile=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] [,8] [1,] 153730.0 150569 166070.0 186029.0 200237.0 217142.0 194596.0 166444.0 [2,] 159114.5 154628 172166.5 190975.5 206755.0 224431.0 209968.5 169675.0 [3,] 166153.0 169215 187125.5 203724.5 224904.5 231079.5 213690.5 175791.0 [4,] 178328.0 181870 198759.5 222553.0 242400.0 244869.0 224946.5 190133.5 [5,] 200765.0 194690 215706.0 243477.0 260307.0 265845.0 240636.0 202388.0 [,9] [,10] [,11] [1,] 151001.0 186005.0 195722 [2,] 160763.0 189066.0 202196 [3,] 168094.5 199875.5 211868 [4,] 176183.5 217250.5 214320 [5,] 187069.0 226899.0 229527 $n [1] 12 12 12 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 157389.6 156789.7 174996.3 189321.8 208646.6 221757.6 206858.9 166459.7 [2,] 174916.4 181640.3 199254.7 218127.2 241162.4 240401.4 220522.1 185122.3 [,9] [,10] [,11] [1,] 161061.1 187020.4 205482.7 [2,] 175127.9 212730.6 218253.3 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(153730, 159114.5, 166153, 178328, 200765, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6aoy41291462291.ps",horizontal=F,onefile=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,] 22747.09 66573.0 34635.00 [2,] 23501.78 70078.5 37296.00 [3,] 25451.84 73221.0 38618.62 [4,] 26470.01 77233.0 40319.50 [5,] 28154.23 78776.0 42697.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 24098.01 69957.78 37239.59 [2,] 26805.67 76484.22 39997.66 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(22747.0891768196, 23501.7795359379, 25451.8405707917, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/176hy1291462291.ps tmp/176hy1291462291.png",intern=TRUE)) character(0) > try(system("convert tmp/2hfh11291462291.ps tmp/2hfh11291462291.png",intern=TRUE)) character(0) > try(system("convert tmp/3hfh11291462291.ps tmp/3hfh11291462291.png",intern=TRUE)) character(0) > try(system("convert tmp/4hfh11291462291.ps tmp/4hfh11291462291.png",intern=TRUE)) character(0) > try(system("convert tmp/5aoy41291462291.ps tmp/5aoy41291462291.png",intern=TRUE)) character(0) > try(system("convert tmp/6aoy41291462291.ps tmp/6aoy41291462291.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.087 0.899 19.284