R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(31956,29506,34506,27165,26736,23691,18157,17328,18205,20995,17382,9367,31124,26551,30651,25859,25100,25778,20418,18688,20424,24776,19814,12738,31566,30111,30019,31934,25826,26835,20205,17789,20520,22518,15572,11509,25447,24090,27786,26195,20516,22759,19028,16971,20036,22485,18730,14538,27561,25985,34670,32066,27186,29586,21359,21553,19573,24256,22380,16167) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 31956 31124 31566 25447 27561 NA [2,] 29506 26551 30111 24090 25985 NA [3,] 34506 30651 30019 27786 34670 NA [4,] 27165 25859 31934 26195 32066 NA [5,] 26736 25100 25826 20516 27186 NA [6,] 23691 25778 26835 22759 29586 NA [7,] 18157 20418 20205 19028 21359 NA [8,] 17328 18688 17789 16971 21553 NA [9,] 18205 20424 20520 20036 19573 NA [10,] 20995 24776 22518 22485 24256 NA [11,] 17382 19814 15572 18730 22380 NA [12,] 9367 12738 11509 14538 16167 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/wessaorg/rcomp/tmp/1fiy21322491801.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/250vt1322491801.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3kzgc1322491801.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/469o01322491801.ps",horizontal=F,onefile=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,] 25447 24090 27786 25859 25100 22759 18157 16971 19573 20995 15572 9367 [2,] 27561 25985 30019 26195 25100 23691 19028 17328 19573 22485 17382 11509 [3,] 31124 26551 30651 27165 25826 25778 20205 17789 20036 22518 18730 12738 [4,] 31566 29506 34506 31934 26736 26835 20418 18688 20424 24256 19814 14538 [5,] 31956 30111 34670 32066 27186 29586 21359 18688 20520 24776 22380 16167 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 28294.08 24063.07 27480.5 23109.84 24670.01 23556.46 19222.83 16828.03 [2,] 33953.92 29038.93 33821.5 31220.16 26981.99 27999.54 21187.17 18749.97 [,9] [,10] [,11] [,12] [1,] 19434.69 21266.62 17011.55 10597.72 [2,] 20637.31 23769.38 20448.45 14878.28 $out [1] 20516 21553 18205 $group [1] 5 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(25447, 27561, 31124, 31566, 31956, 24090, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5dj411322491801.ps",horizontal=F,onefile=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,] 9367.0 12738 11509 14538.0 16167.0 NA [2,] 17769.5 20116 18997 18879.0 21456.0 NA [3,] 22343.0 24938 24172 21500.5 25120.5 NA [4,] 28335.5 26205 30065 24768.5 28573.5 NA [5,] 34506.0 31124 31934 27786.0 34670.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 17523.78 22160.77 19123.81 18814.26 21874.16 NA [2,] 27162.22 27715.23 29220.19 24186.74 28366.84 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(9367, 17769.5, 22343, 28335.5, 34506, 12738, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6y01o1322491801.ps",horizontal=F,onefile=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,] 941.7156 2315.0 851.0 [2,] 1681.1523 4181.5 1513.0 [3,] 2599.5095 6358.0 2730.5 [4,] 2786.8017 6804.0 3763.0 [5,] 3101.4291 6884.0 5739.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2095.215 5161.86 1704.26 [2,] 3103.804 7554.14 3756.74 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(941.715615246981, 1681.15230218217, 2599.50949493896, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fiy21322491801.ps tmp/1fiy21322491801.png",intern=TRUE)) character(0) > try(system("convert tmp/250vt1322491801.ps tmp/250vt1322491801.png",intern=TRUE)) character(0) > try(system("convert tmp/3kzgc1322491801.ps tmp/3kzgc1322491801.png",intern=TRUE)) character(0) > try(system("convert tmp/469o01322491801.ps tmp/469o01322491801.png",intern=TRUE)) character(0) > try(system("convert tmp/5dj411322491801.ps tmp/5dj411322491801.png",intern=TRUE)) character(0) > try(system("convert tmp/6y01o1322491801.ps tmp/6y01o1322491801.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.677 0.348 2.060