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(10.574,10.653,10.805,10.872,10.625,10.407,10.463,10.556,10.646,10.702,11.353,11.346,11.451,11.964,12.574,13.031,13.812,14.544,14.931,14.886,16.005,17.064,15.168,16.050,15.839,15.137,14.954,15.648,15.305,15.579,16.348,15.928,16.171,15.937,15.713,15.594,15.683,16.438,17.032,17.696,17.745,19.394,20.148,20.108,18.584,18.441,18.391,19.178,18.079,18.483,19.644,19.195,19.650,20.830,23.595,22.937,21.814,21.928,21.777,21.383,21.467) > 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] 61 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10.574 11.451 15.839 15.683 18.079 21.467 [2,] 10.653 11.964 15.137 16.438 18.483 NA [3,] 10.805 12.574 14.954 17.032 19.644 NA [4,] 10.872 13.031 15.648 17.696 19.195 NA [5,] 10.625 13.812 15.305 17.745 19.650 NA [6,] 10.407 14.544 15.579 19.394 20.830 NA [7,] 10.463 14.931 16.348 20.148 23.595 NA [8,] 10.556 14.886 15.928 20.108 22.937 NA [9,] 10.646 16.005 16.171 18.584 21.814 NA [10,] 10.702 17.064 15.937 18.441 21.928 NA [11,] 11.353 15.168 15.713 18.391 21.777 NA [12,] 11.346 16.050 15.594 19.178 21.383 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/1wakw1257953513.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/2bn4r1257953513.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/37tzx1257953513.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/4zeyx1257953513.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,] 10.574 10.653 10.805 10.872 10.625 10.407 10.463 10.556 16.005 15.937 [2,] 11.451 11.964 12.574 13.031 13.812 14.544 14.931 14.886 16.005 15.937 [3,] 15.761 15.137 14.954 15.648 15.305 15.579 16.348 15.928 16.171 17.064 [4,] 18.079 16.438 17.032 17.696 17.745 19.394 20.148 20.108 18.584 18.441 [5,] 21.467 18.483 19.644 19.195 19.650 20.830 23.595 22.937 21.814 21.928 [,11] [,12] [1,] 11.353 11.346 [2,] 15.168 15.594 [3,] 15.713 16.050 [4,] 18.391 19.178 [5,] 21.777 21.383 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.48573 11.97568 11.80399 12.35172 12.52595 12.15200 12.66168 12.23815 [2,] 20.03627 18.29832 18.10401 18.94428 18.08405 19.00600 20.03432 19.61785 [,9] [,10] [,11] [,12] [1,] 14.34869 15.29468 13.43564 13.51755 [2,] 17.99331 18.83332 17.99036 18.58245 $out [1] 10.646 10.702 $group [1] 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(10.574, 11.451, 15.761, 18.079, 21.467, 10.653, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5bp0a1257953513.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] [1,] 10.4070 11.4510 14.9540 15.683 18.0790 21.467 [2,] 10.5650 12.8025 15.4420 17.364 19.4195 21.467 [3,] 10.6495 14.7150 15.6805 18.416 21.1065 21.467 [4,] 10.8385 15.5865 15.9325 19.286 21.8710 21.467 [5,] 10.8720 17.0640 16.3480 20.148 23.5950 21.467 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 10.52475 13.4452 15.45678 17.53936 19.98835 21.467 [2,] 10.77425 15.9848 15.90422 19.29264 22.22465 21.467 $out [1] 11.353 11.346 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(10.407, 10.565, 10.6495, 10.8385, 10.872, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61uox1257953513.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,] 3.211327 7.8300 2.5040 [2,] 3.501255 8.9320 3.4035 [3,] 3.979352 10.4235 4.4660 [4,] 4.114169 11.1970 4.9300 [5,] 5.019839 13.1320 5.2220 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.699798 9.390418 3.769753 [2,] 4.258906 11.456582 5.162247 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(3.21132690643603, 3.50125528122487, 3.97935171766807, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1wakw1257953513.ps tmp/1wakw1257953513.png") > system("convert tmp/2bn4r1257953513.ps tmp/2bn4r1257953513.png") > system("convert tmp/37tzx1257953513.ps tmp/37tzx1257953513.png") > system("convert tmp/4zeyx1257953513.ps tmp/4zeyx1257953513.png") > system("convert tmp/5bp0a1257953513.ps tmp/5bp0a1257953513.png") > system("convert tmp/61uox1257953513.ps tmp/61uox1257953513.png") > > > proc.time() user system elapsed 1.079 0.831 1.613