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(5.6,5.6,5.6,5.6,5.6,5.67,5.67,5.67,5.67,5.67,5.67,5.67,5.67,5.67,5.82,5.82,5.95,5.95,5.95,5.95,5.95,5.95,6.02,6.02,6.05,6.05,6.05,6.12,6.12,6.12,6.12,6.12,6.12,6.12,6.12,6.17,6.17,6.17,6.17,6.17,6.28,6.27,6.28,6.28,6.27,6.27,6.28,6.59,6.59,6.59,6.59,6.59,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.79,6.79,6.79) > 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,] 5.60 5.67 6.05 6.17 6.59 6.63 NA [2,] 5.60 5.67 6.05 6.17 6.59 6.63 NA [3,] 5.60 5.82 6.05 6.17 6.59 6.63 NA [4,] 5.60 5.82 6.12 6.17 6.59 6.63 NA [5,] 5.60 5.95 6.12 6.28 6.63 6.63 NA [6,] 5.67 5.95 6.12 6.27 6.63 6.63 NA [7,] 5.67 5.95 6.12 6.28 6.63 6.63 NA [8,] 5.67 5.95 6.12 6.28 6.63 6.63 NA [9,] 5.67 5.95 6.12 6.27 6.63 6.63 NA [10,] 5.67 5.95 6.12 6.27 6.63 6.79 NA [11,] 5.67 6.02 6.12 6.28 6.63 6.79 NA [12,] 5.67 6.02 6.17 6.59 6.63 6.79 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/16i711229779797.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/2ujpa1229779797.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/3moip1229779797.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/4yfrv1229779797.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,] 5.60 5.60 5.60 5.600 5.60 5.670 5.67 5.67 5.670 5.670 5.67 5.67 [2,] 5.67 5.67 5.82 5.820 5.95 5.950 5.95 5.95 5.950 5.950 6.02 6.02 [3,] 6.11 6.11 6.11 6.145 6.20 6.195 6.20 6.20 6.195 6.195 6.20 6.38 [4,] 6.59 6.59 6.59 6.590 6.63 6.630 6.63 6.63 6.630 6.630 6.63 6.63 [5,] 6.63 6.63 6.63 6.630 6.63 6.630 6.63 6.63 6.630 6.790 6.79 6.79 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.51657 5.51657 5.613325 5.648325 5.761378 5.756378 5.761378 5.761378 [2,] 6.70343 6.70343 6.606675 6.641675 6.638622 6.633622 6.638622 6.638622 [,9] [,10] [,11] [,12] [1,] 5.756378 5.756378 5.80653 5.98653 [2,] 6.633622 6.633622 6.59347 6.77347 $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(5.6, 5.67, 6.11, 6.59, 6.63, 5.6, 5.67, 6.11, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lqrw1229779797.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,] 5.60 5.67 6.050 6.17 6.59 6.63 NA [2,] 5.60 5.82 6.085 6.17 6.59 6.63 NA [3,] 5.67 5.95 6.120 6.27 6.63 6.63 NA [4,] 5.67 5.95 6.120 6.28 6.63 6.71 NA [5,] 5.67 6.02 6.170 6.28 6.63 6.79 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.638073 5.890706 6.104036 6.219828 6.611756 6.593511 NA [2,] 5.701927 6.009294 6.135964 6.320172 6.648244 6.666489 NA $out [1] 6.59 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(5.6, 5.6, 5.67, 5.67, 5.67, 5.67, 5.82, 5.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6cnf31229779797.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.3804427 0.960 0.49750 [2,] 0.3807711 0.960 0.54750 [3,] 0.4098325 1.030 0.55000 [4,] 0.4246267 1.075 0.59875 [5,] 0.4384708 1.120 0.60750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.3898297 0.9775477 0.5266245 [2,] 0.4298353 1.0824523 0.5733755 $out [1] 0.72 0.72 $group [1] 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.380442724554783, 0.380771147366324, 0.409832524340227, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/16i711229779797.ps tmp/16i711229779797.png") > system("convert tmp/2ujpa1229779797.ps tmp/2ujpa1229779797.png") > system("convert tmp/3moip1229779797.ps tmp/3moip1229779797.png") > system("convert tmp/4yfrv1229779797.ps tmp/4yfrv1229779797.png") > system("convert tmp/5lqrw1229779797.ps tmp/5lqrw1229779797.png") > system("convert tmp/6cnf31229779797.ps tmp/6cnf31229779797.png") > > > proc.time() user system elapsed 2.300 1.338 2.527