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(8166,2322,2924,5209,5597,5616,5764,5854,6019,6047,6082,6251,6576,6820,7024,7102,7107,7237,7630,7842,8086,8201,8323,9016,9077,9115,9230,9535,9565,9807,9815,9999,10176,10416,10439,10737,10790,11196,11221,11340,11356,11772,11836,11926,12013,12132,12178,12382,12448,12543,12662,12692,12767,13136,13145,13330,13381,13533,14176,14314,14444,15092,15130,15550,15557,15874,15892,16364,16379,16668,16713,16830,17368,17808,17846,18137,18504,18898,18938,19139,19573,19796,19845,21461) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 8166 6576 9077 10790 12448 14444 17368 NA [2,] 2322 6820 9115 11196 12543 15092 17808 NA [3,] 2924 7024 9230 11221 12662 15130 17846 NA [4,] 5209 7102 9535 11340 12692 15550 18137 NA [5,] 5597 7107 9565 11356 12767 15557 18504 NA [6,] 5616 7237 9807 11772 13136 15874 18898 NA [7,] 5764 7630 9815 11836 13145 15892 18938 NA [8,] 5854 7842 9999 11926 13330 16364 19139 NA [9,] 6019 8086 10176 12013 13381 16379 19573 NA [10,] 6047 8201 10416 12132 13533 16668 19796 NA [11,] 6082 8323 10439 12178 14176 16713 19845 NA [12,] 6251 9016 10737 12382 14314 16830 21461 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/1hsbc1242411203.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/2ffhu1242411203.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/32nmt1242411203.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/4nf8m1242411203.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] [,10] [1,] 6576.0 2322.0 2924 5209.0 5597 5616 5764.0 5854.0 6019 6047.0 [2,] 8621.5 7967.5 8127 8318.5 8336 8522 8722.5 8920.5 9131 9308.5 [3,] 10790.0 11196.0 11221 11340.0 11356 11772 11836.0 11926.0 12013 12132.0 [4,] 13446.0 13817.5 13896 14121.0 14162 14505 14518.5 14847.0 14880 15100.5 [5,] 17368.0 17808.0 17846 18137.0 18504 18898 18938.0 19139.0 19573 19796.0 [,11] [,12] [1,] 6082.0 6251.0 [2,] 9381.0 9876.5 [3,] 12178.0 12382.0 [4,] 15444.5 15572.0 [5,] 19845.0 21461.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7908.886 7702.474 7775.846 7874.84 7876.807 8199.049 8374.722 [2,] 13671.114 14689.526 14666.154 14805.16 14835.193 15344.951 15297.278 [,8] [,9] [,10] [,11] [,12] [1,] 8386.79 8579.79 8673.111 8556.976 8980.74 [2,] 15465.21 15446.21 15590.889 15799.024 15783.26 $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(6576, 8621.5, 10790, 13446, 17368, 2322, 7967.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5bpsg1242411203.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] [,8] [1,] 5209.0 6576.0 9077.0 10790.0 12448.0 14444.0 17368.0 NA [2,] 5403.0 7063.0 9382.5 11280.5 12677.0 15340.0 17991.5 NA [3,] 5809.0 7433.5 9811.0 11804.0 13140.5 15883.0 18918.0 NA [4,] 6064.5 8143.5 10296.0 12072.5 13457.0 16523.5 19684.5 NA [5,] 6251.0 9016.0 10737.0 12382.0 14314.0 16830.0 21461.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5507.285 6940.677 9394.347 11442.76 12784.74 15343.20 18145.81 NA [2,] 6110.715 7926.323 10227.653 12165.24 13496.26 16422.80 19690.19 NA $out [1] 8166 2322 2924 $group [1] 1 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(5209, 5403, 5809, 6064.5, 6251, 6576, 7063, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6h1rz1242411203.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,] 4556.207 12907.0 5695.50 [2,] 4585.005 13051.0 5759.00 [3,] 4692.755 13419.5 5799.25 [4,] 4899.838 14342.5 5888.25 [5,] 5183.524 15486.0 6063.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4549.158 12830.44 5740.298 [2,] 4836.352 14008.56 5858.202 $out [1] 3771.728 10792.000 4824.500 $group [1] 1 2 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4556.20737226123, 4585.00499563540, 4692.75510853027, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1hsbc1242411203.ps tmp/1hsbc1242411203.png") > system("convert tmp/2ffhu1242411203.ps tmp/2ffhu1242411203.png") > system("convert tmp/32nmt1242411203.ps tmp/32nmt1242411203.png") > system("convert tmp/4nf8m1242411203.ps tmp/4nf8m1242411203.png") > system("convert tmp/5bpsg1242411203.ps tmp/5bpsg1242411203.png") > system("convert tmp/6h1rz1242411203.ps tmp/6h1rz1242411203.png") > > > proc.time() user system elapsed 1.066 0.805 1.390