R version 2.6.2 (2008-02-08) 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(513.13,513.13,513.13,513.13,513.13,513.13,513.13,513.13,513.13,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,527.96,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,536.61,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,545.06,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,564.24,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,573.68,576.3,576.29,576.29,576.29,576.29,576.29,576.29,576.29,576.3,576.29,576.3,576.29,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,589.85,599.12,599.12,599.12) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [2,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [3,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [4,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [5,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [6,] 513.13 527.96 536.61 545.06 564.24 573.68 576.30 589.85 NA [7,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [8,] 513.13 527.96 536.61 545.06 564.24 573.68 576.30 589.85 NA [9,] 513.13 527.96 536.61 545.06 564.24 573.68 576.29 589.85 NA [10,] 527.96 536.61 545.06 564.24 573.68 576.30 589.85 599.12 NA [11,] 527.96 536.61 545.06 564.24 573.68 576.29 589.85 599.12 NA [12,] 527.96 536.61 545.06 564.24 573.68 576.29 589.85 599.12 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/freestat/rcomp/tmp/1gp1t1210766339.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/freestat/rcomp/tmp/2jz0o1210766339.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/freestat/rcomp/tmp/30w4t1210766339.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/freestat/rcomp/tmp/4irxy1210766339.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,] 513.130 513.130 513.130 513.130 513.130 513.130 513.130 513.130 513.130 [2,] 532.285 532.285 532.285 532.285 532.285 532.285 532.285 532.285 532.285 [3,] 554.650 554.650 554.650 554.650 554.650 554.650 554.650 554.650 554.650 [4,] 574.985 574.985 574.985 574.985 574.985 574.990 574.985 574.990 574.985 [5,] 589.850 589.850 589.850 589.850 589.850 589.850 589.850 589.850 589.850 [,10] [,11] [,12] [1,] 527.960 527.960 527.960 [2,] 540.835 540.835 540.835 [3,] 568.960 568.960 568.960 [4,] 583.075 583.070 583.070 [5,] 599.120 599.120 599.120 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 530.7972 530.7972 530.7972 530.7972 530.7972 530.7944 530.7972 530.7944 [2,] 578.5028 578.5028 578.5028 578.5028 578.5028 578.5056 578.5028 578.5056 [,9] [,10] [,11] [,12] [1,] 530.7972 545.3641 545.3669 545.3669 [2,] 578.5028 592.5559 592.5531 592.5531 $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(513.13, 532.285, 554.65, 574.985, 589.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5pxhz1210766339.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] [,9] [1,] 513.130 527.960 536.610 545.06 564.24 573.680 576.290 589.850 NA [2,] 513.130 527.960 536.610 545.06 564.24 573.680 576.290 589.850 NA [3,] 513.130 527.960 536.610 545.06 564.24 573.680 576.290 589.850 NA [4,] 520.545 532.285 540.835 554.65 568.96 574.985 583.075 594.485 NA [5,] 527.960 536.610 545.060 564.24 573.68 576.300 589.850 599.120 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 509.748 525.9873 534.683 540.6859 562.0872 573.0848 573.1953 587.736 NA [2,] 516.512 529.9327 538.537 549.4341 566.3928 574.2752 579.3847 591.964 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(513.13, 513.13, 513.13, 520.545, 527.96, 527.96, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/61oyk1210766339.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,] 25.50680 71.16 36.7325 [2,] 26.11900 73.94 38.3125 [3,] 26.73052 76.72 39.8850 [4,] 26.73052 76.72 39.8850 [5,] 26.73175 76.72 39.8875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 26.45161 75.45202 39.16777 [2,] 27.00944 77.98798 40.60223 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(25.5067954180842, 26.1190016343089, 26.7305249534257, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1gp1t1210766339.ps tmp/1gp1t1210766339.png") > system("convert tmp/2jz0o1210766339.ps tmp/2jz0o1210766339.png") > system("convert tmp/30w4t1210766339.ps tmp/30w4t1210766339.png") > system("convert tmp/4irxy1210766339.ps tmp/4irxy1210766339.png") > system("convert tmp/5pxhz1210766339.ps tmp/5pxhz1210766339.png") > system("convert tmp/61oyk1210766339.ps tmp/61oyk1210766339.png") > > > proc.time() user system elapsed 1.821 1.175 3.005