R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(13429.9,13470.1,14785.8,14292,14308.8,14013,13240.9,12153.4,14289.7,15669.2,14169.5,14569.8,14469.1,14264.9,15320.9,14433.5,13691.5,14194.1,13519.2,11857.9,14616,15643.4,14077.2,14887.5,14159.9,14643,17192.5,15386.1,14287.1,17526.6,14497,14398.3,16629.6,16670.7,16614.8,16869.2,15663.9,16359.9,18447.7,16889,16505,18320.9,15052.1,15699.8,18135.3,16768.7,18883,19021,18101.9,17776.1,21489.9,17065.3,18690,18953.1,16398.9,16895.7,18553,19270,19422.1,17579.4,18637.3,18076.7,20438.6,18075.2,19563,19899.2,19227.5,17789.6,19220.8,21968.9,21131.5,19484.6) > 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,] 13429.9 14469.1 14159.9 15663.9 18101.9 18637.3 NA [2,] 13470.1 14264.9 14643.0 16359.9 17776.1 18076.7 NA [3,] 14785.8 15320.9 17192.5 18447.7 21489.9 20438.6 NA [4,] 14292.0 14433.5 15386.1 16889.0 17065.3 18075.2 NA [5,] 14308.8 13691.5 14287.1 16505.0 18690.0 19563.0 NA [6,] 14013.0 14194.1 17526.6 18320.9 18953.1 19899.2 NA [7,] 13240.9 13519.2 14497.0 15052.1 16398.9 19227.5 NA [8,] 12153.4 11857.9 14398.3 15699.8 16895.7 17789.6 NA [9,] 14289.7 14616.0 16629.6 18135.3 18553.0 19220.8 NA [10,] 15669.2 15643.4 16670.7 16768.7 19270.0 21968.9 NA [11,] 14169.5 14077.2 16614.8 18883.0 19422.1 21131.5 NA [12,] 14569.8 14887.5 16869.2 19021.0 17579.4 19484.6 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/1jrhi1228678998.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/2xzgj1228678998.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/32ppc1228678998.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/4v57t1228678998.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,] 13429.9 13470.10 14785.8 14292.00 13691.5 14013.00 13240.90 11857.90 [2,] 14159.9 14264.90 15320.9 14433.50 14287.1 14194.10 13519.20 12153.40 [3,] 15066.5 15501.45 17820.1 16137.55 15406.9 17923.75 14774.55 15049.05 [4,] 18101.9 17776.10 20438.6 17065.30 18690.0 18953.10 16398.90 16895.70 [5,] 18637.3 18076.70 21489.9 18075.20 19563.0 19899.20 19227.50 17789.60 [,9] [,10] [,11] [,12] [1,] 14289.70 15643.4 14077.2 14569.8 [2,] 14616.00 15669.2 14169.5 14887.5 [3,] 17382.45 16719.7 17748.9 17224.3 [4,] 18553.00 19270.0 19422.1 19021.0 [5,] 19220.80 21968.9 21131.5 19484.6 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 12523.78 13236.61 14519.02 14439.95 12566.89 14854.04 12917.05 11990.11 [2,] 17609.22 17766.29 21121.18 17835.15 18246.91 20993.46 16632.05 18107.99 [,9] [,10] [,11] [,12] [1,] 14842.96 14397.07 14360.80 14558.06 [2,] 19921.94 19042.33 21137.00 19890.54 $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(13429.9, 14159.9, 15066.5, 18101.9, 18637.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5716o1228678998.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,] 12153.4 13519.20 14159.90 15052.10 16398.90 17789.60 NA [2,] 13450.0 13884.35 14447.65 16029.85 17322.35 18357.00 NA [3,] 14229.6 14349.20 16000.45 16828.85 18327.45 19356.05 NA [4,] 14439.3 14751.75 16769.95 18384.30 19111.55 20168.90 NA [5,] 15669.2 15643.40 17526.60 19021.00 21489.90 21968.90 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 13778.37 13953.57 14941.23 15754.97 17511.38 18529.63 NA [2,] 14680.83 14744.83 17059.67 17902.73 19143.52 20182.47 NA $out [1] 11857.9 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(12153.4, 13450, 14229.6, 14439.3, 15669.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/69ynz1228678998.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,] 1547.668 3783.20 2298.550 [2,] 2066.269 4922.95 2893.862 [3,] 2336.317 5878.85 3303.425 [4,] 2491.763 6156.05 3866.663 [5,] 2908.753 7054.30 4506.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2142.246 5316.425 2859.724 [2,] 2530.388 6441.275 3747.126 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1547.66801274261, 2066.26903400382, 2336.31709816776, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1jrhi1228678998.ps tmp/1jrhi1228678998.png") > system("convert tmp/2xzgj1228678998.ps tmp/2xzgj1228678998.png") > system("convert tmp/32ppc1228678998.ps tmp/32ppc1228678998.png") > system("convert tmp/4v57t1228678998.ps tmp/4v57t1228678998.png") > system("convert tmp/5716o1228678998.ps tmp/5716o1228678998.png") > system("convert tmp/69ynz1228678998.ps tmp/69ynz1228678998.png") > > > proc.time() user system elapsed 1.047 0.783 1.920