R version 2.8.1 (2008-12-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(0.5857,0.5858,0.5717,0.5945,0.5961,0.5973,0.6036,0.6096,0.6315,0.6262,0.6121,0.6326,0.6214,0.6274,0.6175,0.6208,0.6225,0.5889,0.6020,0.5932,0.5841,0.6000,0.5947,0.5891,0.6051,0.5960,0.6012,0.5957,0.5959,0.6049,0.6064,0.6137,0.6311,0.6258,0.6010,0.6232,0.6384,0.6014,0.5980,0.5987,0.6237,0.5813,0.5991,0.6160,0.6096,0.6051,0.5857,0.5565,0.5223,0.5091,0.4919,0.4995,0.5069,0.5190,0.5460,0.5648,0.5751,0.5862,0.5877) > 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] 59 > (np <- floor(n / par1)) [1] 4 > 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] 5 5 5 5 5 5 5 5 5 5 5 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 0.5857 0.6214 0.6051 0.6384 0.5223 [2,] 0.5858 0.6274 0.5960 0.6014 0.5091 [3,] 0.5717 0.6175 0.6012 0.5980 0.4919 [4,] 0.5945 0.6208 0.5957 0.5987 0.4995 [5,] 0.5961 0.6225 0.5959 0.6237 0.5069 [6,] 0.5973 0.5889 0.6049 0.5813 0.5190 [7,] 0.6036 0.6020 0.6064 0.5991 0.5460 [8,] 0.6096 0.5932 0.6137 0.6160 0.5648 [9,] 0.6315 0.5841 0.6311 0.6096 0.5751 [10,] 0.6262 0.6000 0.6258 0.6051 0.5862 [11,] 0.6121 0.5947 0.6010 0.5857 0.5877 [12,] 0.6326 0.5891 0.6232 0.5565 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/rcomp/tmp/1kgid1257452935.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/rcomp/tmp/2vzgp1257452935.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/rcomp/tmp/30n5w1257452935.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/rcomp/tmp/4zrw41257452936.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] [1,] 0.5857 0.5858 0.5717 0.5945 0.5959 0.5813 0.5991 0.5648 0.5751 0.5862 [2,] 0.5857 0.5858 0.5717 0.5945 0.5959 0.5813 0.5991 0.5932 0.5841 0.6000 [3,] 0.6051 0.5960 0.5980 0.5957 0.5961 0.5889 0.6020 0.6096 0.6096 0.6051 [4,] 0.6214 0.6014 0.6012 0.5987 0.6225 0.5973 0.6036 0.6137 0.6311 0.6258 [5,] 0.6384 0.6014 0.6175 0.5987 0.6237 0.6049 0.6064 0.6160 0.6315 0.6262 [,11] [,12] [1,] 0.5857 0.55650 [2,] 0.5877 0.57280 [3,] 0.5947 0.60615 [4,] 0.6010 0.62790 [5,] 0.6121 0.63260 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.5798745 0.5849771 0.5771554 0.5927323 0.5773045 0.5775944 0.5988203 [2,] 0.6303255 0.6070229 0.6188446 0.5986677 0.6148955 0.6002056 0.6051797 [,8] [,9] [,10] [,11] [,12] [1,] 0.5951148 0.5763899 0.5868698 0.5853023 0.562621 [2,] 0.6240852 0.6428101 0.6233302 0.6040977 0.649679 $out [1] 0.5223 0.6274 0.5091 0.4919 0.6208 0.4995 0.5069 0.5190 0.5460 $group [1] 1 2 2 3 4 4 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.5857, 0.5857, 0.6051, 0.6214, 0.6384, 0.5858, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/57scz1257452936.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] [1,] 0.57170 0.58410 0.59570 0.58130 0.49190 [2,] 0.59015 0.59115 0.59850 0.59185 0.50800 [3,] 0.60045 0.60100 0.60500 0.60025 0.52230 [4,] 0.61915 0.62110 0.61845 0.61280 0.56995 [5,] 0.63260 0.62740 0.63110 0.63840 0.58770 $n [1] 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [1,] 0.5872229 0.5873396 0.5959007 0.5906946 0.4927878 [2,] 0.6136771 0.6146604 0.6140993 0.6098054 0.5518122 $out [1] 0.5565 $group [1] 4 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(0.5717, 0.59015, 0.60045, 0.61915, 0.6326, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ysrj1257452936.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.01073070 0.02640 0.00420 [2,] 0.02342824 0.05380 0.01445 [3,] 0.03449914 0.08100 0.02315 [4,] 0.04606570 0.11755 0.03260 [5,] 0.04983114 0.12560 0.04700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.02417404 0.0519232 0.01487166 [2,] 0.04482423 0.1100768 0.03142834 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0107307036115997, 0.0234282390361283, 0.0344991351497655, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1kgid1257452935.ps tmp/1kgid1257452935.png") > system("convert tmp/2vzgp1257452935.ps tmp/2vzgp1257452935.png") > system("convert tmp/30n5w1257452935.ps tmp/30n5w1257452935.png") > system("convert tmp/4zrw41257452936.ps tmp/4zrw41257452936.png") > system("convert tmp/57scz1257452936.ps tmp/57scz1257452936.png") > system("convert tmp/6ysrj1257452936.ps tmp/6ysrj1257452936.png") > > > proc.time() user system elapsed 1.350 1.290 1.962