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.17,2.18,2.18,2.18,2.17,2.17,2.18,2.17,2.18,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.19,2.19,2.19,2.2,2.2,2.21,2.21,2.21,2.2,2.21,2.2,2.21,2.21,2.22,2.22,2.23,2.24,2.24,2.25,2.25,2.32,2.36,2.37,2.37,2.37,2.38,2.38,2.41,2.42,2.43,2.44,2.44,2.44,2.43,2.43,2.43,2.42,2.42,2.42,2.42,2.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.17 2.17 2.18 2.21 2.24 2.43 NA [2,] 2.18 2.17 2.18 2.21 2.25 2.44 NA [3,] 2.18 2.17 2.18 2.21 2.25 2.44 NA [4,] 2.18 2.17 2.18 2.20 2.32 2.44 NA [5,] 2.17 2.17 2.18 2.21 2.36 2.43 NA [6,] 2.17 2.17 2.18 2.20 2.37 2.43 NA [7,] 2.18 2.18 2.18 2.21 2.37 2.43 NA [8,] 2.17 2.18 2.19 2.21 2.37 2.42 NA [9,] 2.18 2.18 2.19 2.22 2.38 2.42 NA [10,] 2.17 2.18 2.19 2.22 2.38 2.42 NA [11,] 2.17 2.18 2.20 2.23 2.41 2.42 NA [12,] 2.17 2.18 2.20 2.24 2.42 2.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/1ziyp1210420240.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/28njy1210420240.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/39enh1210420240.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/4797n1210420240.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.170 2.170 2.170 2.17 2.170 2.17 2.180 2.17 2.180 2.170 2.170 2.17 [2,] 2.170 2.180 2.180 2.18 2.170 2.17 2.180 2.18 2.180 2.180 2.180 2.18 [3,] 2.195 2.195 2.195 2.19 2.195 2.19 2.195 2.20 2.205 2.205 2.215 2.22 [4,] 2.240 2.250 2.250 2.32 2.360 2.37 2.370 2.37 2.380 2.380 2.410 2.42 [5,] 2.240 2.250 2.250 2.44 2.430 2.43 2.430 2.42 2.420 2.420 2.420 2.42 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.149848 2.149848 2.149848 2.099695 2.072444 2.060994 2.072444 2.077444 [2,] 2.240152 2.240152 2.240152 2.280305 2.317556 2.319006 2.317556 2.322556 [,9] [,10] [,11] [,12] [1,] 2.075994 2.075994 2.066643 2.065192 [2,] 2.334006 2.334006 2.363357 2.374808 $out [1] 2.43 2.44 2.44 $group [1] 1 2 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.17, 2.17, 2.195, 2.24, 2.24, 2.17, 2.18, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5g1ld1210420240.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.17 2.170 2.18 2.20 2.240 2.420 NA [2,] 2.17 2.170 2.18 2.21 2.285 2.420 NA [3,] 2.17 2.175 2.18 2.21 2.370 2.430 NA [4,] 2.18 2.180 2.19 2.22 2.380 2.435 NA [5,] 2.18 2.180 2.20 2.23 2.420 2.440 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.165439 2.170439 2.175439 2.205439 2.32667 2.423158 NA [2,] 2.174561 2.179561 2.184561 2.214561 2.41333 2.436842 NA $out [1] 2.24 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.17, 2.17, 2.17, 2.18, 2.18, 2.17, 2.17, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6f4p11210420240.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.1001332 0.240 0.0600 [2,] 0.1059628 0.250 0.0850 [3,] 0.1098543 0.255 0.1500 [4,] 0.1141928 0.265 0.1575 [5,] 0.1173740 0.270 0.1900 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1061006 0.2481584 0.1169323 [2,] 0.1136081 0.2618416 0.1830677 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.100133244562766, 0.105962766050574, 0.10985433172468, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ziyp1210420240.ps tmp/1ziyp1210420240.png") > system("convert tmp/28njy1210420240.ps tmp/28njy1210420240.png") > system("convert tmp/39enh1210420240.ps tmp/39enh1210420240.png") > system("convert tmp/4797n1210420240.ps tmp/4797n1210420240.png") > system("convert tmp/5g1ld1210420240.ps tmp/5g1ld1210420240.png") > system("convert tmp/6f4p11210420240.ps tmp/6f4p11210420240.png") > > > proc.time() user system elapsed 1.293 0.824 1.710