R version 2.8.0 (2008-10-20) 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(14620,16005,16683,15487,15684,15962,12000,13769,14031,16078,15827,13149,15969,16628,16670,16487,16883,16201,12168,14010,16556,17404,16435,13123,16744,17410,16484,17103,17301,17301,12843,13748,16904,17342,15476,15424,15988,19244,18715,17780,17160,17349,11171,13438,16713,18369,17067,14055,15500,18475,19423,18686,19646,19733,12605,16616,19156,21348,20049,18020,20262,21789,20603,21928,21025,19346,11786,19082,20127,20217,20385,16653,13065,20275,21776,20260,22523,23033,14133,20110,19682,22197,17212,11784,15467,17002,15952,18767,20605,19809,14233,19311,20827,23388,20181,14344) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 14620 15969 16744 15988 15500 20262 13065 15467 NA [2,] 16005 16628 17410 19244 18475 21789 20275 17002 NA [3,] 16683 16670 16484 18715 19423 20603 21776 15952 NA [4,] 15487 16487 17103 17780 18686 21928 20260 18767 NA [5,] 15684 16883 17301 17160 19646 21025 22523 20605 NA [6,] 15962 16201 17301 17349 19733 19346 23033 19809 NA [7,] 12000 12168 12843 11171 12605 11786 14133 14233 NA [8,] 13769 14010 13748 13438 16616 19082 20110 19311 NA [9,] 14031 16556 16904 16713 19156 20127 19682 20827 NA [10,] 16078 17404 17342 18369 21348 20217 22197 23388 NA [11,] 15827 16435 15476 17067 20049 20385 17212 20181 NA [12,] 13149 13123 15424 14055 18020 16653 11784 14344 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/freestat/rcomp/tmp/1bhtu1243891537.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/freestat/rcomp/tmp/2itcv1243891537.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/freestat/rcomp/tmp/3ul0t1243891537.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/freestat/rcomp/tmp/4pabh1243891537.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] [1,] 13065.0 16005.0 15952 15487.0 15684.0 15962.0 11171.0 13438.0 14031.0 [2,] 15043.5 16815.0 16577 16795.0 17021.5 16751.0 11893.0 13758.5 16634.5 [3,] 15734.5 17942.5 17699 18233.0 18473.5 18347.5 12386.5 15313.0 18030.0 [4,] 16366.0 19759.5 20013 19513.5 20815.0 19771.0 13488.0 19196.5 19904.5 [5,] 16744.0 21789.0 21776 21928.0 22523.0 23033.0 14233.0 20110.0 20827.0 [,10] [,11] [,12] [1,] 16078.0 15476.0 11784.0 [2,] 17373.0 16131.0 13136.0 [3,] 19293.0 17139.5 14199.5 [4,] 21772.5 20115.0 16038.5 [5,] 23388.0 20385.0 18020.0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14995.73 16297.66 15779.6 16714.41 16354.40 16660.48 11495.51 12275.26 [2,] 16473.27 19587.34 19618.4 19751.59 20592.60 20034.52 13277.49 18350.74 [,9] [,10] [,11] [,12] [1,] 16203.33 16835.38 14913.98 12578.12 [2,] 19856.67 21750.62 19365.02 15820.88 $out [1] 20262 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(13065, 15043.5, 15734.5, 16366, 16744, 16005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5xdk11243891537.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] [1,] 12000.0 13123.0 12843 11171.0 15500.0 19082.0 11784.0 14233.0 NA [2,] 13900.0 14989.5 15450 15021.5 17318.0 19214.0 15672.5 15709.5 NA [3,] 15585.5 16461.0 16824 17113.5 18921.0 20239.5 20185.0 19039.0 NA [4,] 15983.5 16649.0 17301 18074.5 19689.5 20814.0 21986.5 20393.0 NA [5,] 16683.0 17404.0 17410 19244.0 21348.0 21928.0 23033.0 23388.0 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14635.20 15704.09 15979.75 15721.01 17839.34 19509.73 17305.14 16902.82 [2,] 16535.80 17217.91 17668.25 18505.99 20002.66 20969.27 23064.86 21175.18 [,9] [1,] NA [2,] NA $out [1] 12168 12605 11786 16653 $group [1] 2 5 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(12000, 13900, 15585.5, 15983.5, 16683, 13123, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6zawj1243891537.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,] 1982.499 4909.0 921.750 [2,] 2045.974 5804.0 2390.000 [3,] 2123.791 6556.5 2910.250 [4,] 2390.279 6955.0 3709.125 [5,] 2872.603 7310.0 5375.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1966.751 6031.521 2308.588 [2,] 2280.831 7081.479 3511.912 $out [1] 1090.524 3062.000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1982.49921635726, 2045.97391568740, 2123.7913025293, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1bhtu1243891537.ps tmp/1bhtu1243891537.png") > system("convert tmp/2itcv1243891537.ps tmp/2itcv1243891537.png") > system("convert tmp/3ul0t1243891537.ps tmp/3ul0t1243891537.png") > system("convert tmp/4pabh1243891537.ps tmp/4pabh1243891537.png") > system("convert tmp/5xdk11243891537.ps tmp/5xdk11243891537.png") > system("convert tmp/6zawj1243891537.ps tmp/6zawj1243891537.png") > > > proc.time() user system elapsed 1.659 1.258 1.950