R version 2.10.1 (2009-12-14) 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(10574,10653,10805,10872,10625,10407,10463,10556,10646,10702,11353,11346,11451,11964,12574,13031,13812,14544,14931,14886,16005,17064,15168,16050,15839,15137,14954,15648,15305,15579,16348,15928,16171,15937,15713,15594,15683,16438,17032,17696,17745,19394,20148,20108,18584,18441,18391,19178,18073,18483,19644,19195,19650,20830,23595,22937,21814,21928,21777,21383,21467,22052,22680,24320,24977,25204,27390,26434,27525,30695,32436,30160,30236) > 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,] 10574 11451 15839 15683 18073 21467 30236 [2,] 10653 11964 15137 16438 18483 22052 NA [3,] 10805 12574 14954 17032 19644 22680 NA [4,] 10872 13031 15648 17696 19195 24320 NA [5,] 10625 13812 15305 17745 19650 24977 NA [6,] 10407 14544 15579 19394 20830 25204 NA [7,] 10463 14931 16348 20148 23595 27390 NA [8,] 10556 14886 15928 20108 22937 26434 NA [9,] 10646 16005 16171 18584 21814 27525 NA [10,] 10702 17064 15937 18441 21928 30695 NA [11,] 11353 15168 15713 18391 21777 32436 NA [12,] 11346 16050 15594 19178 21383 30160 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/yougetitorg/rcomp/tmp/1eqy51295185039.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/yougetitorg/rcomp/tmp/2idsg1295185039.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/yougetitorg/rcomp/tmp/3ws621295185039.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/yougetitorg/rcomp/tmp/4t5rq1295185039.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] [,9] [,10] [,11] [1,] 10574 10653.0 10805 10872 10625 10407.0 10463 10556 10646.0 10702.0 11353 [2,] 13567 11964.0 12574 13031 13812 14544.0 14931 14886 16005.0 15937.0 15168 [3,] 15839 15787.5 15993 16672 16525 17486.5 18248 18018 17377.5 17752.5 17052 [4,] 19770 18483.0 19644 19195 19650 20830.0 23595 22937 21814.0 21928.0 21777 [5,] 21467 22052.0 22680 24320 24977 25204.0 27390 26434 27525.0 30695.0 21777 [,12] [1,] 11346 [2,] 15594 [3,] 17614 [4,] 21383 [5,] 21383 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 12134.67 11582.53 11432.62 12696.02 12759.30 13431.83 12659.44 12824.84 [2,] 19543.33 19992.47 20553.38 20647.98 20290.70 21541.17 23836.56 23211.16 [,9] [,10] [,11] [,12] [1,] 13630.51 13888.11 12788.98 13879.91 [2,] 21124.49 21616.89 21315.02 21348.09 $out [1] 30236 32436 30160 $group [1] 1 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(10574, 13567, 15839, 19770, 21467, 10653, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/537v81295185039.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] [1,] 10407.0 11451.0 14954.0 15683 18073.0 21467.0 30236 [2,] 10565.0 12802.5 15442.0 17364 19419.5 23500.0 30236 [3,] 10649.5 14715.0 15680.5 18416 21106.5 25819.0 30236 [4,] 10838.5 15586.5 15932.5 19286 21871.0 28842.5 30236 [5,] 10872.0 17064.0 16348.0 20148 23595.0 32436.0 30236 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10524.75 13445.2 15456.78 17539.36 19988.35 23382.25 30236 [2,] 10774.25 15984.8 15904.22 19292.64 22224.65 28255.75 30236 $out [1] 11353 11346 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(10407, 10565, 10649.5, 10838.5, 10872, 11451, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/62aud1295185039.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,] 4203.290 11399.0 4837.500 [2,] 4883.829 13900.0 5056.125 [3,] 5777.203 16378.5 5420.375 [4,] 6580.251 19238.0 6012.500 [5,] 7381.827 21083.0 7083.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5003.454 13943.80 4984.166 [2,] 6550.953 18813.20 5856.584 $out [1] 7448 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4203.28973146828, 4883.82915573425, 5777.20330042535, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1eqy51295185039.ps tmp/1eqy51295185039.png",intern=TRUE)) character(0) > try(system("convert tmp/2idsg1295185039.ps tmp/2idsg1295185039.png",intern=TRUE)) character(0) > try(system("convert tmp/3ws621295185039.ps tmp/3ws621295185039.png",intern=TRUE)) character(0) > try(system("convert tmp/4t5rq1295185039.ps tmp/4t5rq1295185039.png",intern=TRUE)) character(0) > try(system("convert tmp/537v81295185039.ps tmp/537v81295185039.png",intern=TRUE)) character(0) > try(system("convert tmp/62aud1295185039.ps tmp/62aud1295185039.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.280 1.030 1.876