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(93.89,93.36,92.25,91.07,90.93,90.68,90.65,90.6,90.02,89.74,89.31,89.16,89.15,88.98,88.25,87.36,87.13,86.93,86.93,86.93,86.98,86.16,85.88,85.91,85.91,85.6,84.9,83.67,83.41,83.33,83.32,83.3,82.73,82.2,81.7,81.52,81.52,81.55,81.89,81.8,81.84,81.77,81.77,82.98,83.13,82.84,82.8,82.8,82.8,82.98,81.91,81.64,81.4,81.21,81.21,81.23,81.01,80.55,80.5,80.54,80.54,80.72,80.63,80.36,79.88,79.66,79.66,79.13,78.81,78.67,78.43,78.13,78.13,78.07,76.94,74.97,75,75.1,75.1,75.02,73.87,73.18,72.55,72.42,72.4,72.45,71.42,70.89,70.42,69.57,69.57,69.44,68.25,66.86,66.5,66.46) > 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,] 93.89 89.15 85.91 81.52 82.80 80.54 78.13 72.40 NA [2,] 93.36 88.98 85.60 81.55 82.98 80.72 78.07 72.45 NA [3,] 92.25 88.25 84.90 81.89 81.91 80.63 76.94 71.42 NA [4,] 91.07 87.36 83.67 81.80 81.64 80.36 74.97 70.89 NA [5,] 90.93 87.13 83.41 81.84 81.40 79.88 75.00 70.42 NA [6,] 90.68 86.93 83.33 81.77 81.21 79.66 75.10 69.57 NA [7,] 90.65 86.93 83.32 81.77 81.21 79.66 75.10 69.57 NA [8,] 90.60 86.93 83.30 82.98 81.23 79.13 75.02 69.44 NA [9,] 90.02 86.98 82.73 83.13 81.01 78.81 73.87 68.25 NA [10,] 89.74 86.16 82.20 82.84 80.55 78.67 73.18 66.86 NA [11,] 89.31 85.88 81.70 82.80 80.50 78.43 72.55 66.50 NA [12,] 89.16 85.91 81.52 82.80 80.54 78.13 72.42 66.46 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/1ijg41231451906.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/21dvc1231451906.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/3hfot1231451906.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/4st0l1231451906.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] [,11] [1,] 72.400 72.450 71.420 70.890 70.42 69.57 69.570 69.440 68.250 66.860 66.50 [2,] 79.335 79.395 78.785 77.665 77.44 77.38 77.380 77.075 76.340 75.925 75.49 [3,] 82.160 82.265 81.900 81.720 81.62 81.49 81.490 82.105 81.870 81.375 81.10 [4,] 87.530 87.290 86.575 85.515 85.27 85.13 85.125 85.115 85.055 84.500 84.34 [5,] 93.890 93.360 92.250 91.070 90.93 90.68 90.650 90.600 90.020 89.740 89.31 [,12] [1,] 66.460 [2,] 75.275 [3,] 81.030 [4,] 84.355 [5,] 89.160 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 77.58216 77.85474 77.5484 77.33488 77.24605 77.16074 77.16353 77.61374 [2,] 86.73784 86.67526 86.2516 86.10512 85.99395 85.81926 85.81647 86.59626 [,9] [,10] [,11] [,12] [1,] 77.00168 76.58488 76.15626 75.95778 [2,] 86.73832 86.16512 86.04374 86.10222 $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(72.4, 79.335, 82.16, 87.53, 93.89, 72.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51yvl1231451906.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,] 89.160 85.880 81.520 81.520 80.500 78.13 72.420 66.460 NA [2,] 89.880 86.545 82.465 81.770 80.780 78.74 73.525 67.555 NA [3,] 90.665 86.955 83.325 81.865 81.220 79.66 75.010 69.570 NA [4,] 91.660 87.805 84.285 82.820 81.775 80.45 76.020 71.155 NA [5,] 93.890 89.150 85.910 83.130 82.980 80.72 78.130 72.450 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 89.85313 86.3803 82.49489 81.38609 80.76617 78.88006 73.87201 67.92802 [2,] 91.47687 87.5297 84.15511 82.34391 81.67383 80.43994 76.14799 71.21198 [,9] [1,] NA [2,] 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(89.16, 89.88, 90.665, 91.66, 93.89, 85.88, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fix41231451906.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,] 6.405895 20.180 5.58000 [2,] 6.460257 20.870 5.70625 [3,] 6.608343 21.135 6.23875 [4,] 7.112845 22.235 6.56375 [5,] 7.293737 22.880 6.87500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.310693 20.51241 5.847638 [2,] 6.905992 21.75759 6.629862 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(6.40589460686684, 6.46025680471694, 6.60834270563585, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ijg41231451906.ps tmp/1ijg41231451906.png") > system("convert tmp/21dvc1231451906.ps tmp/21dvc1231451906.png") > system("convert tmp/3hfot1231451906.ps tmp/3hfot1231451906.png") > system("convert tmp/4st0l1231451906.ps tmp/4st0l1231451906.png") > system("convert tmp/51yvl1231451906.ps tmp/51yvl1231451906.png") > system("convert tmp/6fix41231451906.ps tmp/6fix41231451906.png") > > > proc.time() user system elapsed 1.081 0.839 1.397