R version 2.7.0 (2008-04-22) 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(18.33,18.22,18.21,18.06,18.26,18.21,18.05,18.25,18.27,18.28,18.13,18.01,18.02,17.97,18.06,18.08,18.23,18.06,18.23,18.17,18.27,18.33,18.18,18.29,18.33,18.31,18.44,18.63,18.37,18.59,18.72,18.75,18.87,18.83,18.89,18.78,19.27,19.19,19.43,19.36,19.39,19.07,19.31,19.19,19.06,19.05,19.49,19.25,19.76,20.35,19.61,19.33,18.95,18.97,19.28,19.41,18.99,19.37,19.63,19.53,19.86,20.13,19.47,19.49,18.95,19.33,19.65,19.44,19.73,18.89,19.56,19.56) > 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,] 18.33 18.02 18.33 19.27 19.76 19.86 NA [2,] 18.22 17.97 18.31 19.19 20.35 20.13 NA [3,] 18.21 18.06 18.44 19.43 19.61 19.47 NA [4,] 18.06 18.08 18.63 19.36 19.33 19.49 NA [5,] 18.26 18.23 18.37 19.39 18.95 18.95 NA [6,] 18.21 18.06 18.59 19.07 18.97 19.33 NA [7,] 18.05 18.23 18.72 19.31 19.28 19.65 NA [8,] 18.25 18.17 18.75 19.19 19.41 19.44 NA [9,] 18.27 18.27 18.87 19.06 18.99 19.73 NA [10,] 18.28 18.33 18.83 19.05 19.37 18.89 NA [11,] 18.13 18.18 18.89 19.49 19.63 19.56 NA [12,] 18.01 18.29 18.78 19.25 19.53 19.56 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/1goh81231604269.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/2zjo41231604269.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/3e0y31231604269.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/4msg81231604269.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] [,12] [1,] 18.02 17.97 18.060 18.06 18.23 18.06 18.05 18.17 18.27 18.28 18.13 18.010 [2,] 18.33 18.22 18.210 18.08 18.26 18.21 18.23 18.25 18.27 18.33 18.18 18.290 [3,] 18.80 18.75 18.935 18.98 18.66 18.78 19.00 18.97 18.93 18.86 19.19 19.015 [4,] 19.76 20.13 19.470 19.36 18.95 19.07 19.31 19.41 19.06 19.05 19.56 19.530 [5,] 19.86 20.35 19.610 19.49 19.39 19.33 19.65 19.44 19.73 19.37 19.63 19.560 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17.87760 17.51799 18.12226 18.15436 18.21493 18.22527 18.30337 18.22176 [2,] 19.72240 19.98201 19.74774 19.80564 19.10507 19.33473 19.69663 19.71824 [,9] [,10] [,11] [,12] [1,] 18.42042 18.39558 18.29986 18.21516 [2,] 19.43958 19.32442 20.08014 19.81484 $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(18.02, 18.33, 18.8, 19.76, 19.86, 17.97, 18.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vtzb1231604269.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,] 18.010 17.970 18.310 19.050 18.950 18.950 NA [2,] 18.095 18.060 18.405 19.130 19.135 19.385 NA [3,] 18.215 18.175 18.675 19.260 19.390 19.525 NA [4,] 18.265 18.250 18.805 19.375 19.620 19.690 NA [5,] 18.330 18.330 18.890 19.490 19.760 20.130 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 18.13746 18.08834 18.49256 19.14825 19.16879 19.38589 NA [2,] 18.29254 18.26166 18.85744 19.37175 19.61121 19.66411 NA $out [1] 20.35 18.89 $group [1] 5 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(18.01, 18.095, 18.215, 18.265, 18.33, 17.97, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6hilc1231604269.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,] 0.4212561 1.090 0.55500 [2,] 0.5265964 1.270 0.70125 [3,] 0.6486802 1.480 1.01375 [4,] 0.6990566 1.575 1.18875 [5,] 0.8021824 1.840 1.65250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.5700199 1.340887 0.791398 [2,] 0.7273404 1.619113 1.236102 $out [1] 1.027237 2.380000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.421256058314497, 0.526596398559184, 0.648680187096734, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1goh81231604269.ps tmp/1goh81231604269.png") > system("convert tmp/2zjo41231604269.ps tmp/2zjo41231604269.png") > system("convert tmp/3e0y31231604269.ps tmp/3e0y31231604269.png") > system("convert tmp/4msg81231604269.ps tmp/4msg81231604269.png") > system("convert tmp/5vtzb1231604269.ps tmp/5vtzb1231604269.png") > system("convert tmp/6hilc1231604269.ps tmp/6hilc1231604269.png") > > > proc.time() user system elapsed 2.349 1.377 2.547