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(14861,14583.3,15305.8,17903.9,16379.4,15420.3,17870.5,15912.8,13866.5,17823.2,17872,17420.4,16704.4,15991.2,16583.6,19123.5,17838.7,17209.4,18586.5,16258.1,15141.6,19202.1,17746.5,19090.1,18040.3,17515.5,17751.8,21072.4,17170,19439.5,19795.4,17574.9,16165.4,19464.6,19932.1,19961.2,17343.4,18924.2,18574.1,21350.6,18594.6,19823.1,20844.4,19640.2,17735.4,19813.6,22160,20664.3,17877.4,20906.5,21164.1,21374.4,22952.3,21343.5,23899.3,22392.9,18274.1,22786.7,22321.5,17842.2,16373.5,16087.1,16555.9,17880.2,16764.5,16049,18288.3,17570.4,15133.4,19334.2,19291.8,20176.7) > 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,] 14861.0 16704.4 18040.3 17343.4 17877.4 16373.5 NA [2,] 14583.3 15991.2 17515.5 18924.2 20906.5 16087.1 NA [3,] 15305.8 16583.6 17751.8 18574.1 21164.1 16555.9 NA [4,] 17903.9 19123.5 21072.4 21350.6 21374.4 17880.2 NA [5,] 16379.4 17838.7 17170.0 18594.6 22952.3 16764.5 NA [6,] 15420.3 17209.4 19439.5 19823.1 21343.5 16049.0 NA [7,] 17870.5 18586.5 19795.4 20844.4 23899.3 18288.3 NA [8,] 15912.8 16258.1 17574.9 19640.2 22392.9 17570.4 NA [9,] 13866.5 15141.6 16165.4 17735.4 18274.1 15133.4 NA [10,] 17823.2 19202.1 19464.6 19813.6 22786.7 19334.2 NA [11,] 17872.0 17746.5 19932.1 22160.0 22321.5 19291.8 NA [12,] 17420.4 19090.1 19961.2 20664.3 17842.2 20176.7 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/rcomp/tmp/1q0an1274114147.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/rcomp/tmp/21rr81274114147.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/rcomp/tmp/31rr81274114147.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/rcomp/tmp/4b18b1274114147.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,] 14861.0 14583.3 15305.8 17880.20 16379.40 15420.30 17870.50 15912.80 [2,] 16373.5 15991.2 16555.9 17903.90 16764.50 16049.00 18288.30 16258.10 [3,] 17023.9 16801.3 17167.7 20097.95 17504.35 18324.45 19190.95 17572.65 [4,] 17877.4 18924.2 18574.1 21350.60 18594.60 19823.10 20844.40 19640.20 [5,] 18040.3 20906.5 21164.1 21374.40 18594.60 21343.50 23899.30 22392.90 [,9] [,10] [,11] [,12] [1,] 13866.5 19202.1 17746.50 17420.40 [2,] 15133.4 19202.1 17872.00 17842.20 [3,] 15653.5 19399.4 19611.95 19525.65 [4,] 17735.4 19813.6 22160.00 20176.70 [5,] 18274.1 19813.6 22321.50 20664.30 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 16053.84 14909.42 15865.90 17874.72 16323.88 15890.03 17542.18 15391.09 [2,] 17993.96 18693.18 18469.50 22321.18 18684.82 20758.87 20839.72 19754.21 [,9] [,10] [,11] [,12] [1,] 13975.13 19004.96 16846.05 18019.82 [2,] 17331.87 19793.84 22377.85 21031.48 $out [1] 22952.3 17823.2 22786.7 $group [1] 5 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(14861, 16373.5, 17023.9, 17877.4, 18040.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5b18b1274114147.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,] 13866.50 15141.60 16165.40 17343.40 17842.20 15133.40 NA [2,] 15083.40 16420.85 17545.20 18584.35 19590.30 16230.30 NA [3,] 16146.10 17477.95 18739.90 19726.90 21358.95 17167.45 NA [4,] 17846.85 18838.30 19863.75 20754.35 22589.80 18790.05 NA [5,] 17903.90 19202.10 21072.40 22160.00 23899.30 20176.70 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14885.67 16375.33 17682.39 18737.15 19990.86 15999.93 NA [2,] 17406.53 18580.57 19797.41 20716.65 22727.04 18334.97 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(13866.5, 15083.4, 16146.1, 17846.85, 17903.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6b18b1274114147.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,] 1176.309 3179.3 491.225 [2,] 1664.940 3950.9 1672.725 [3,] 2028.020 5410.9 2213.375 [4,] 2315.786 6176.0 2814.550 [5,] 2426.532 6572.9 3388.100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1731.164 4396.017 1692.581 [2,] 2324.875 6425.783 2734.169 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1176.30900305433, 1664.94016113664, 2028.01963679415, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1q0an1274114147.ps tmp/1q0an1274114147.png",intern=TRUE)) character(0) > try(system("convert tmp/21rr81274114147.ps tmp/21rr81274114147.png",intern=TRUE)) character(0) > try(system("convert tmp/31rr81274114147.ps tmp/31rr81274114147.png",intern=TRUE)) character(0) > try(system("convert tmp/4b18b1274114147.ps tmp/4b18b1274114147.png",intern=TRUE)) character(0) > try(system("convert tmp/5b18b1274114147.ps tmp/5b18b1274114147.png",intern=TRUE)) character(0) > try(system("convert tmp/6b18b1274114147.ps tmp/6b18b1274114147.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.380 1.250 2.424