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(66.2,66.2,66.08,66.31,66.39,66.37,66.23,66.27,66.27,66.27,66.28,66.28,66.28,66.26,66.13,65.86,65.9,65.94,65.94,65.91,65.95,65.91,66.08,66.47,66.47,66.56,66.78,67.08,67.28,67.27,67.27,67.26,67.37,67.5,67.63,67.64,67.64,67.71,67.87,67.93,68.33,68.39,68.39,68.58,68.44,68.49,68.52,68.54,68.54,68.54,68.62,68.75,68.71,68.72,68.72,68.72,68.92,68.9,69.12,69.09,69.09,69.1,69.16,68.83,68.52,68.53,68.53,68.51,68.38,68.44,68.41,68.42,68.42,68.45,68.63,68.84,68.72,68.37,68.37,68.47,68.69,68.46,68.17,68.17) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.20 66.28 66.47 67.64 68.54 69.09 68.42 NA [2,] 66.20 66.26 66.56 67.71 68.54 69.10 68.45 NA [3,] 66.08 66.13 66.78 67.87 68.62 69.16 68.63 NA [4,] 66.31 65.86 67.08 67.93 68.75 68.83 68.84 NA [5,] 66.39 65.90 67.28 68.33 68.71 68.52 68.72 NA [6,] 66.37 65.94 67.27 68.39 68.72 68.53 68.37 NA [7,] 66.23 65.94 67.27 68.39 68.72 68.53 68.37 NA [8,] 66.27 65.91 67.26 68.58 68.72 68.51 68.47 NA [9,] 66.27 65.95 67.37 68.44 68.92 68.38 68.69 NA [10,] 66.27 65.91 67.50 68.49 68.90 68.44 68.46 NA [11,] 66.28 66.08 67.63 68.52 69.12 68.41 68.17 NA [12,] 66.28 66.47 67.64 68.54 69.09 68.42 68.17 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/1f5g81210872836.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/2bk8r1210872836.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/390w81210872836.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/47axb1210872836.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,] 66.200 66.200 66.080 65.860 65.900 65.94 65.94 65.910 65.950 65.910 66.080 [2,] 66.375 66.410 66.455 66.695 66.835 66.82 66.75 66.765 66.820 66.885 66.955 [3,] 67.640 67.710 67.870 67.930 68.330 68.37 68.37 68.470 68.380 68.440 68.170 [4,] 68.480 68.495 68.625 68.790 68.615 68.46 68.46 68.545 68.565 68.475 68.465 [5,] 69.090 69.100 69.160 68.840 68.720 68.72 68.72 68.720 68.920 68.900 69.120 [,12] [1,] 66.280 [2,] 67.055 [3,] 68.170 [4,] 68.480 [5,] 69.090 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.38293 66.46487 66.57411 66.6789 67.26701 67.39062 67.34882 67.40701 [2,] 68.89707 68.95513 69.16589 69.1811 69.39299 69.34938 69.39118 69.53299 [,9] [,10] [,11] [,12] [1,] 67.33791 67.49048 67.26825 67.31901 [2,] 69.42209 69.38952 69.07175 69.02099 $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(66.2, 66.375, 67.64, 68.48, 69.09, 66.2, 66.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5w6au1210872836.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] [1,] 66.200 65.860 66.470 67.640 68.540 68.380 68.170 NA [2,] 66.215 65.910 66.930 67.900 68.665 68.430 68.370 NA [3,] 66.270 65.945 67.270 68.390 68.720 68.525 68.455 NA [4,] 66.295 66.195 67.435 68.505 68.910 68.960 68.660 NA [5,] 66.390 66.470 67.640 68.580 69.120 69.160 68.840 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.23351 65.81501 67.03967 68.11406 68.60825 68.28326 68.32273 NA [2,] 66.30649 66.07499 67.50033 68.66594 68.83175 68.76674 68.58727 NA $out [1] 66.08 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(66.2, 66.215, 66.27, 66.295, 66.39, 65.86, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6oxzm1210872836.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,] 1.132252 2.780 1.4250 [2,] 1.158826 2.810 1.6150 [3,] 1.189515 2.895 1.7625 [4,] 1.204330 2.985 2.0900 [5,] 1.253072 3.080 2.1700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.168761 2.815181 1.545849 [2,] 1.210270 2.974819 1.979151 $out [1] 1.274807 1.067543 $group [1] 1 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.13225228553324, 1.15882608165426, 1.18951540644708, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1f5g81210872836.ps tmp/1f5g81210872836.png") > system("convert tmp/2bk8r1210872836.ps tmp/2bk8r1210872836.png") > system("convert tmp/390w81210872836.ps tmp/390w81210872836.png") > system("convert tmp/47axb1210872836.ps tmp/47axb1210872836.png") > system("convert tmp/5w6au1210872836.ps tmp/5w6au1210872836.png") > system("convert tmp/6oxzm1210872836.ps tmp/6oxzm1210872836.png") > > > proc.time() user system elapsed 1.285 0.809 3.178