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(14271,14013,15912,14290,14744,14721,13918,13263,15660,15629,15113,14526,15132,14908,16167,14122,13985,14236,13921,12394,15454,16146,15107,14593,14695,14513,17071,15179,15460,17173,15938,15003,18216,17847,18029,17281,16706,16750,18912,17763,16736,18061,16713,16769,19514,19251,19951,19052,19555,19083,22534,18854,19801,20346,18169,19087,20842,21602,22360,20334,21215,20530,23152,20134,21193,21628,20823,20493,22106,24178,24958,21620) > 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,] 14271 15132 14695 16706 19555 21215 NA [2,] 14013 14908 14513 16750 19083 20530 NA [3,] 15912 16167 17071 18912 22534 23152 NA [4,] 14290 14122 15179 17763 18854 20134 NA [5,] 14744 13985 15460 16736 19801 21193 NA [6,] 14721 14236 17173 18061 20346 21628 NA [7,] 13918 13921 15938 16713 18169 20823 NA [8,] 13263 12394 15003 16769 19087 20493 NA [9,] 15660 15454 18216 19514 20842 22106 NA [10,] 15629 16146 17847 19251 21602 24178 NA [11,] 15113 15107 18029 19951 22360 24958 NA [12,] 14526 14593 17281 19052 20334 21620 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/15zp61257505073.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/2zh7e1257505073.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/3iahx1257505073.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/4lb3n1257505073.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] [1,] 14271 14013 15912.0 14122 13985 14236 13918.0 12394 15454 15629 15107 [2,] 14695 14513 16167.0 14290 14744 14721 13921.0 13263 15660 16146 15113 [3,] 15919 15829 17991.5 16471 16098 17617 16325.5 15886 18865 18549 18990 [4,] 19555 19083 22534.0 18854 19801 20346 18169.0 19087 20842 21602 22360 [5,] 21215 20530 23152.0 20134 21193 21628 20823.0 20493 22106 24178 24958 [,12] [1,] 14526.0 [2,] 14593.0 [3,] 18166.5 [4,] 20334.0 [5,] 21620.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 12784.14 12881.20 13884.58 13527.07 12836.07 13988.69 13585.40 12129.33 [2,] 19053.86 18776.80 22098.42 19414.93 19359.93 21245.31 19065.60 19642.67 [,9] [,10] [,11] [,12] [1,] 15522.44 15029.70 14315.45 14463.37 [2,] 22207.56 22068.30 23664.55 21869.63 $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(14271, 14695, 15919, 19555, 21215, 14013, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5iohd1257505073.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,] 13263.0 12394.0 14513.0 16706.0 18169.0 20134.0 NA [2,] 14142.0 14053.5 15091.0 16743.0 19085.0 20676.5 NA [3,] 14623.5 14750.5 16504.5 17912.0 20067.5 21417.5 NA [4,] 15371.0 15293.0 17564.0 19151.5 21222.0 22629.0 NA [5,] 15912.0 16167.0 18216.0 19951.0 22534.0 24958.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14062.94 14185.16 15376.55 16813.47 19092.8 20526.95 NA [2,] 15184.06 15315.84 17632.45 19010.53 21042.2 22308.05 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(13263, 14142, 14623.5, 15371, 15912, 12394, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64cdy1257505073.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,] 2542.688 6012.0 3379.750 [2,] 2690.123 6778.5 4053.750 [3,] 2928.324 7151.0 4325.875 [4,] 3203.652 7745.5 4779.000 [5,] 3962.695 8549.0 5235.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2694.100 6709.945 3995.084 [2,] 3162.548 7592.055 4656.666 $out [1] 9851.00 5915.75 $group [1] 2 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2542.68776428933, 2690.12300006312, 2928.32394905675, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15zp61257505073.ps tmp/15zp61257505073.png") > system("convert tmp/2zh7e1257505073.ps tmp/2zh7e1257505073.png") > system("convert tmp/3iahx1257505073.ps tmp/3iahx1257505073.png") > system("convert tmp/4lb3n1257505073.ps tmp/4lb3n1257505073.png") > system("convert tmp/5iohd1257505073.ps tmp/5iohd1257505073.png") > system("convert tmp/64cdy1257505073.ps tmp/64cdy1257505073.png") > > > proc.time() user system elapsed 1.050 0.816 1.413