R version 2.9.0 (2009-04-17) Copyright (C) 2009 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.44,5.44,5.44,5.44,5.44,5.49,5.49,5.49,5.49,5.49,5.49,5.60,5.60,5.60,5.60,5.60,5.60,5.60,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,6.81,6.80,6.80,6.85,6.85,6.85,6.85,6.85,6.85,6.86,6.86,6.88,6.88,6.88,6.91,6.91,6.91,6.91,6.99,6.99,6.99,7.02,7.02,7.05,7.05,7.05,7.05,7.10,7.10,7.10,7.10,7.12,7.13,7.18) > 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] 119 > (np <- floor(n / par1)) [1] 9 > 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] 10 10 10 10 10 10 10 10 10 10 10 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 5.44 5.60 5.67 6.02 6.17 6.59 6.63 6.79 6.88 7.05 [2,] 5.44 5.60 5.67 6.05 6.17 6.59 6.63 6.81 6.88 7.05 [3,] 5.44 5.60 5.67 6.05 6.17 6.59 6.63 6.80 6.88 7.05 [4,] 5.44 5.60 5.82 6.05 6.17 6.59 6.63 6.80 6.91 7.05 [5,] 5.44 5.60 5.82 6.12 6.17 6.59 6.63 6.85 6.91 7.10 [6,] 5.49 5.60 5.95 6.12 6.28 6.63 6.63 6.85 6.91 7.10 [7,] 5.49 5.67 5.95 6.12 6.27 6.63 6.63 6.85 6.91 7.10 [8,] 5.49 5.67 5.95 6.12 6.28 6.63 6.63 6.85 6.99 7.10 [9,] 5.49 5.67 5.95 6.12 6.28 6.63 6.63 6.85 6.99 7.12 [10,] 5.49 5.67 5.95 6.12 6.27 6.63 6.63 6.85 6.99 7.13 [11,] 5.49 5.67 5.95 6.12 6.27 6.63 6.79 6.86 7.02 7.18 [12,] 5.60 5.67 6.02 6.12 6.28 6.63 6.79 6.86 7.02 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/11v6w1243547987.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/252zp1243547987.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/3td9y1243547987.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/48jho1243547987.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.44 5.44 5.44 5.44 5.44 5.490 5.49 5.490 5.490 5.49 5.49 5.60 [2,] 5.67 5.67 5.67 5.82 5.82 5.950 5.95 5.950 5.950 5.95 5.95 6.02 [3,] 6.38 6.38 6.38 6.38 6.38 6.455 6.45 6.455 6.455 6.45 6.45 6.28 [4,] 6.79 6.81 6.80 6.80 6.85 6.850 6.85 6.850 6.850 6.85 6.86 6.79 [5,] 7.05 7.05 7.05 7.05 7.10 7.100 7.10 7.100 7.120 7.13 7.18 7.02 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.820403 5.81041 5.815407 5.890353 5.865371 6.005324 6.000324 6.005324 [2,] 6.939597 6.94959 6.944593 6.869647 6.894629 6.904676 6.899676 6.904676 [,9] [,10] [,11] [,12] [1,] 6.005324 6.000324 5.995328 5.874467 [2,] 6.904676 6.899676 6.904672 6.685533 $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.44, 5.67, 6.38, 6.79, 7.05, 5.44, 5.67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5y82v1243547987.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] [,8] [,9] [,10] [1,] 5.44 5.600 5.670 6.02 6.17 6.59 6.63 6.790 6.880 7.05 [2,] 5.44 5.600 5.745 6.05 6.17 6.59 6.63 6.805 6.895 7.05 [3,] 5.49 5.635 5.950 6.12 6.27 6.63 6.63 6.850 6.910 7.10 [4,] 5.49 5.670 5.950 6.12 6.28 6.63 6.63 6.850 6.990 7.11 [5,] 5.49 5.670 6.020 6.12 6.28 6.63 6.63 6.860 7.020 7.18 $n [1] 12 12 12 12 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.467195 5.603073 5.856498 6.088073 6.219828 6.611756 6.63 6.829475 [2,] 5.512805 5.666927 6.043502 6.151927 6.320172 6.648244 6.63 6.870525 [,9] [,10] [1,] 6.86667 7.071417 [2,] 6.95333 7.128583 $out [1] 5.60 6.79 6.79 $group [1] 1 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(5.44, 5.44, 5.49, 5.49, 5.49, 5.6, 5.6, 5.635, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61kue1243547987.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.5480024 1.610 0.77000 [2,] 0.5576103 1.610 0.80250 [3,] 0.5655479 1.610 0.82625 [4,] 0.5820271 1.635 0.94625 [5,] 0.5838721 1.660 1.00000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.5544113 1.598597 0.7606847 [2,] 0.5766846 1.621403 0.8918153 $out [1] 0.5207873 1.6900000 1.4200000 $group [1] 1 2 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.548002433084623, 0.557610329540049, 0.565547930204879, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/11v6w1243547987.ps tmp/11v6w1243547987.png") > system("convert tmp/252zp1243547987.ps tmp/252zp1243547987.png") > system("convert tmp/3td9y1243547987.ps tmp/3td9y1243547987.png") > system("convert tmp/48jho1243547987.ps tmp/48jho1243547987.png") > system("convert tmp/5y82v1243547987.ps tmp/5y82v1243547987.png") > system("convert tmp/61kue1243547987.ps tmp/61kue1243547987.png") > > > proc.time() user system elapsed 1.010 0.783 1.287