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(2.9,2.9,2.9,2.9,2.9,2.9,2.9,2.9,2.95,2.96,2.96,2.96,2.96,2.96,2.96,2.96,2.96,2.96,2.96,2.96,3.04,3.04,3.04,3.04,3.04,3.04,3.04,3.04,3.04,3.03,3.03,3.03,3.15,3.15,3.15,3.15,3.15,3.15,3.15,3.15,3.15,3.15,3.15,3.15,3.26,3.26,3.27,3.27,3.27,3.27,3.27,3.27,3.27,3.27,3.27,3.27,3.32,3.32,3.32,3.32,3.32,3.32,3.32,3.32,3.32,3.32,3.32,3.33,3.41,3.42,3.42,3.42) > 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,] 2.90 2.96 3.04 3.15 3.27 3.32 NA [2,] 2.90 2.96 3.04 3.15 3.27 3.32 NA [3,] 2.90 2.96 3.04 3.15 3.27 3.32 NA [4,] 2.90 2.96 3.04 3.15 3.27 3.32 NA [5,] 2.90 2.96 3.04 3.15 3.27 3.32 NA [6,] 2.90 2.96 3.03 3.15 3.27 3.32 NA [7,] 2.90 2.96 3.03 3.15 3.27 3.32 NA [8,] 2.90 2.96 3.03 3.15 3.27 3.33 NA [9,] 2.95 3.04 3.15 3.26 3.32 3.41 NA [10,] 2.96 3.04 3.15 3.26 3.32 3.42 NA [11,] 2.96 3.04 3.15 3.27 3.32 3.42 NA [12,] 2.96 3.04 3.15 3.27 3.32 3.42 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/1et5u1211207452.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/27y7m1211207452.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/3b4ka1211207452.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/4lq7i1211207452.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,] 2.900 2.900 2.900 2.900 2.900 2.90 2.90 2.90 2.950 2.960 2.96 2.96 [2,] 2.960 2.960 2.960 2.960 2.960 2.96 2.96 2.96 3.040 3.040 3.04 3.04 [3,] 3.095 3.095 3.095 3.095 3.095 3.09 3.09 3.09 3.205 3.205 3.21 3.21 [4,] 3.270 3.270 3.270 3.270 3.270 3.27 3.27 3.27 3.320 3.320 3.32 3.32 [5,] 3.320 3.320 3.320 3.320 3.320 3.32 3.32 3.33 3.410 3.420 3.42 3.42 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 2.89504 2.89504 2.89504 2.89504 2.89504 2.89004 2.89004 2.89004 3.024391 [2,] 3.29496 3.29496 3.29496 3.29496 3.29496 3.28996 3.28996 3.28996 3.385609 [,10] [,11] [,12] [1,] 3.024391 3.029391 3.029391 [2,] 3.385609 3.390609 3.390609 $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(2.9, 2.96, 3.095, 3.27, 3.32, 2.9, 2.96, 3.095, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59m7w1211207452.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,] 2.900 2.96 3.030 3.15 3.27 3.320 NA [2,] 2.900 2.96 3.035 3.15 3.27 3.320 NA [3,] 2.900 2.96 3.040 3.15 3.27 3.320 NA [4,] 2.955 3.04 3.150 3.26 3.32 3.415 NA [5,] 2.960 3.04 3.150 3.27 3.32 3.420 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.874914 2.923511 2.987548 3.099828 3.247195 3.27667 NA [2,] 2.925086 2.996489 3.092452 3.200172 3.292805 3.36333 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.9, 2.9, 2.9, 2.955, 2.96, 2.96, 2.96, 2.96, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6mw601211207452.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.1689576 0.42 0.23750 [2,] 0.1689576 0.42 0.24000 [3,] 0.1697940 0.42 0.26000 [4,] 0.1742316 0.46 0.26125 [5,] 0.1750048 0.46 0.26250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1673885 0.4017557 0.2503077 [2,] 0.1721995 0.4382443 0.2696923 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.168957588366627, 0.168957588366627, 0.169793992826601, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1et5u1211207452.ps tmp/1et5u1211207452.png") > system("convert tmp/27y7m1211207452.ps tmp/27y7m1211207452.png") > system("convert tmp/3b4ka1211207452.ps tmp/3b4ka1211207452.png") > system("convert tmp/4lq7i1211207452.ps tmp/4lq7i1211207452.png") > system("convert tmp/59m7w1211207452.ps tmp/59m7w1211207452.png") > system("convert tmp/6mw601211207452.ps tmp/6mw601211207452.png") > > > proc.time() user system elapsed 1.287 0.810 1.623