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(15023.6,12083,15761.3,16943,15070.3,13659.6,14768.9,14725.1,15998.1,15370.6,14956.9,15469.7,15101.8,11703.7,16283.6,16726.5,14968.9,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,18840.1,20304.8,21132.4,19753.9) > 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] 61 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15023.6 15101.8 15912.8 16258.1 17574.9 19753.9 [2,] 12083.0 11703.7 13866.5 15141.6 16165.4 NA [3,] 15761.3 16283.6 17823.2 19202.1 19464.6 NA [4,] 16943.0 16726.5 17872.0 17746.5 19932.1 NA [5,] 15070.3 14968.9 17420.4 19090.1 19961.2 NA [6,] 13659.6 14861.0 16704.4 18040.3 17343.4 NA [7,] 14768.9 14583.3 15991.2 17515.5 18924.2 NA [8,] 14725.1 15305.8 16583.6 17751.8 18574.1 NA [9,] 15998.1 17903.9 19123.5 21072.4 21350.6 NA [10,] 15370.6 16379.4 17838.7 17170.0 18840.1 NA [11,] 14956.9 15420.3 17209.4 19439.5 20304.8 NA [12,] 15469.7 17870.5 18586.5 19795.4 21132.4 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/1g4261229507131.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/24rzu1229507131.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/3aygb1229507131.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/4r0ti1229507131.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] [1,] 15023.60 11703.7 15761.3 16726.5 14968.9 13659.6 14583.3 14725.1 15998.1 [2,] 15101.80 12083.0 16283.6 16943.0 15070.3 14861.0 14768.9 15305.8 17903.9 [3,] 16085.45 13866.5 17823.2 17746.5 17420.4 16704.4 15991.2 16583.6 19123.5 [4,] 17574.90 15141.6 19202.1 17872.0 19090.1 17343.4 17515.5 17751.8 21072.4 [5,] 19753.90 16165.4 19464.6 17872.0 19961.2 18040.3 18924.2 18574.1 21350.6 [,10] [,11] [,12] [1,] 15370.6 14956.9 15469.7 [2,] 16379.4 15420.3 17870.5 [3,] 17170.0 17209.4 18586.5 [4,] 17838.7 19439.5 19795.4 [5,] 18840.1 20304.8 21132.4 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14490.22 11705.3 15761.00 17090.07 14580.02 14950.34 14050.46 14855.26 [2,] 17680.68 16027.7 19885.40 18402.93 20260.78 18458.46 17931.94 18311.94 [,9] [,10] [,11] [,12] [1,] 16884.65 16138.86 14369.44 17226.37 [2,] 21362.35 18201.14 20049.36 19946.63 $out [1] 19932.1 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15023.6, 15101.8, 16085.45, 17574.9, 19753.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/548f81229507131.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] [1,] 13659.60 14583.30 15912.80 15141.60 16165.4 19753.9 [2,] 14747.00 14914.95 16287.40 17342.75 18074.5 19753.9 [3,] 15046.95 15363.05 17314.90 17896.05 19194.4 19753.9 [4,] 15615.50 16552.95 17855.35 19320.80 20133.0 19753.9 [5,] 15998.10 17903.90 19123.50 21072.40 21350.6 19753.9 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 14650.82 14615.95 16599.75 16993.85 18255.50 19753.9 [2,] 15443.08 16110.15 18030.05 18798.25 20133.30 19753.9 $out [1] 12083.0 16943.0 11703.7 13866.5 $group [1] 1 1 2 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(13659.6, 14747, 15046.95, 15615.5, 15998.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6debs1229507131.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,] 1267.977 3205.60 929.000 [2,] 1641.531 3776.15 1933.025 [3,] 1833.573 4421.20 2614.500 [4,] 2183.884 5170.10 3113.550 [5,] 2371.698 5662.70 4019.800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1586.202 3785.41 2076.055 [2,] 2080.944 5056.99 3152.945 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1267.97664686697, 1641.53087118261, 1833.57288750512, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1g4261229507131.ps tmp/1g4261229507131.png") > system("convert tmp/24rzu1229507131.ps tmp/24rzu1229507131.png") > system("convert tmp/3aygb1229507131.ps tmp/3aygb1229507131.png") > system("convert tmp/4r0ti1229507131.ps tmp/4r0ti1229507131.png") > system("convert tmp/548f81229507131.ps tmp/548f81229507131.png") > system("convert tmp/6debs1229507131.ps tmp/6debs1229507131.png") > > > proc.time() user system elapsed 1.104 0.844 1.402