R version 2.6.2 (2008-02-08) 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(7840,8292,8534,8441,8602,8468,8832,9006,8749,8714,8193,8251,8192,9056,9407,9068,9431,9907,10044,10838,10871,11127,11303,11349,11493,12694,13227,12253,12234,12491,13248,14042,14392,14834,15542,15518,16197,17325,24016,23671,24998,25329,25904,26548,26752,26967,27034,27056,27476,28497,29085,28720,29067,29249,29672,29761,30066,30315,30571,30757,30742,31310,31381,31470,31226,31081,31061,31114,30828,30418,30195,29877,29192,29876,29409,28458,28340,28164,28438,28053) > 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] 80 > (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] 7 7 7 7 7 7 7 7 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7840 8192 11493 16197 27476 30742 29192 [2,] 8292 9056 12694 17325 28497 31310 29876 [3,] 8534 9407 13227 24016 29085 31381 29409 [4,] 8441 9068 12253 23671 28720 31470 28458 [5,] 8602 9431 12234 24998 29067 31226 28340 [6,] 8468 9907 12491 25329 29249 31081 28164 [7,] 8832 10044 13248 25904 29672 31061 28438 [8,] 9006 10838 14042 26548 29761 31114 28053 [9,] 8749 10871 14392 26752 30066 30828 NA [10,] 8714 11127 14834 26967 30315 30418 NA [11,] 8193 11303 15542 27034 30571 30195 NA [12,] 8251 11349 15518 27056 30757 29877 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/1fmm21210585143.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/2p3rg1210585143.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/3d4oy1210585143.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/4t1f01210585143.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,] 7840.0 8292.0 8534 8441.0 8602.0 8468.0 8832 9006 8749 8714.0 [2,] 9842.5 10875.0 11317 10660.5 10832.5 11199.0 11646 12440 10871 11127.0 [3,] 16197.0 17325.0 24016 23671.0 24998.0 25329.0 25904 26548 20572 20900.5 [4,] 28334.0 29186.5 29247 28589.0 28703.5 28706.5 29055 28907 30066 30315.0 [5,] 30742.0 31310.0 31381 31470.0 31226.0 31081.0 31061 31114 30828 30418.0 [,11] [,12] [1,] 8193 8251 [2,] 11303 11349 [3,] 21288 21287 [4,] 30195 29877 [5,] 30571 30757 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5154.175 6389.668 13308.49 12964.39 14325.73 14873.80 15507.63 16714.17 [2,] 27239.825 28260.332 34723.51 34377.61 35670.27 35784.20 36300.37 36381.83 [,9] [,10] [,11] [,12] [1,] 8190.605 8523.62 9102.05 9335.842 [2,] 32953.395 33277.38 33473.95 33238.158 $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(7840, 9842.5, 16197, 28334, 30742, 8292, 10875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5w7w61210585143.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,] 7840.0 8192.0 11493.0 23671.0 27476.0 29877 28053.0 [2,] 8271.5 9237.5 12372.0 23843.5 28893.5 30580 28252.0 [3,] 8501.0 9975.5 13237.5 25616.5 29460.5 31071 28448.0 [4,] 8731.5 10999.0 14613.0 26859.5 30190.5 31268 29300.5 [5,] 9006.0 11349.0 15542.0 27056.0 30757.0 31470 29876.0 $n [1] 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8291.191 9172.068 12215.36 24240.88 28868.93 30757.2 27862.29 [2,] 8710.809 10778.932 14259.64 26992.12 30052.07 31384.8 29033.71 $out [1] 16197 17325 $group [1] 4 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(7840, 8271.5, 8501, 8731.5, 9006, 8192, 9237.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66uex1210585143.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,] 9865.617 21704.0 16467.00 [2,] 9937.850 22168.5 17225.50 [3,] 10004.194 22559.5 17496.88 [4,] 10046.637 22874.5 17929.25 [5,] 10154.357 23029.0 18491.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 9954.576 22237.49 17175.89 [2,] 10053.813 22881.51 17817.86 $out [1] 9611.731 $group [1] 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(9865.61682236414, 9937.85043883117, 10004.1943684365, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1fmm21210585143.ps tmp/1fmm21210585143.png") > system("convert tmp/2p3rg1210585143.ps tmp/2p3rg1210585143.png") > system("convert tmp/3d4oy1210585143.ps tmp/3d4oy1210585143.png") > system("convert tmp/4t1f01210585143.ps tmp/4t1f01210585143.png") > system("convert tmp/5w7w61210585143.ps tmp/5w7w61210585143.png") > system("convert tmp/66uex1210585143.ps tmp/66uex1210585143.png") > > > proc.time() user system elapsed 1.301 0.829 2.282