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(6715,7703,9856,8326,9269,7035,10342,11682,10304,11385,9777,8882,7897,6930,9545,9110,7459,7320,10017,12307,11072,10749,9589,9080,7384,8062,8511,8684,8306,7643,10577,13747,11783,11611,9946,8693,7303,7609,9423,8584,7586,6843,11811,13414,12103,11501,8213,7982,7687,7180,7862,8043,8340,6692,10065,12684,11587,9843,8110,7940,6475,6121,9669,7778,7826,7403,10741,14023,11519,10236,8075,8157) > 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,] 6715 7897 7384 7303 7687 6475 NA [2,] 7703 6930 8062 7609 7180 6121 NA [3,] 9856 9545 8511 9423 7862 9669 NA [4,] 8326 9110 8684 8584 8043 7778 NA [5,] 9269 7459 8306 7586 8340 7826 NA [6,] 7035 7320 7643 6843 6692 7403 NA [7,] 10342 10017 10577 11811 10065 10741 NA [8,] 11682 12307 13747 13414 12684 14023 NA [9,] 10304 11072 11783 12103 11587 11519 NA [10,] 11385 10749 11611 11501 9843 10236 NA [11,] 9777 9589 9946 8213 8110 8075 NA [12,] 8882 9080 8693 7982 7940 8157 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/1ov3x1291556131.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/www/html/rcomp/tmp/2h5201291556131.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/www/html/rcomp/tmp/3h5201291556131.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/www/html/rcomp/tmp/4ae131291556131.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,] 6475.0 6121.0 7862 7778 7459 6692.0 10017.0 11682 10304 9843 8075 7940 [2,] 6715.0 6930.0 8511 8043 7586 6843.0 10065.0 12307 11072 10236 8110 7982 [3,] 7343.5 7394.5 9484 8455 8066 7177.5 10459.5 13049 11553 11067 8901 8425 [4,] 7687.0 7703.0 9669 8684 8340 7403.0 10741.0 13747 11783 11501 9777 8882 [5,] 7897.0 8062.0 9856 9110 9269 7643.0 10741.0 14023 12103 11611 9946 9080 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6716.529 6895.89 8737.053 8041.534 7579.646 6816.282 10023.46 12120.15 [2,] 7970.471 7893.11 10230.947 8868.466 8552.354 7538.718 10895.54 13977.85 [,9] [,10] [,11] [,12] [1,] 11094.38 10251.03 7825.731 7844.471 [2,] 12011.62 11882.97 9976.269 9005.529 $out [1] 11811 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(6475, 6715, 7343.5, 7687, 7897, 6121, 6930, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ae131291556131.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] [,7] [1,] 6715.0 6930.0 7384.0 6843.0 6692.0 6121.0 NA [2,] 8014.5 7678.0 8184.0 7597.5 7774.5 7590.5 NA [3,] 9523.0 9327.5 8688.5 8398.5 8076.5 8116.0 NA [4,] 10323.0 10383.0 11094.0 11656.0 9954.0 10488.5 NA [5,] 11682.0 12307.0 13747.0 13414.0 12684.0 14023.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8470.078 8093.731 7361.23 6547.391 7082.415 6794.203 NA [2,] 10575.922 10561.269 10015.77 10249.609 9070.585 9437.797 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(6715, 8014.5, 9523, 10323, 11682, 6930, 7678, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6knj61291556131.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,] 361.3807 951.0 491.250 [2,] 521.1016 1377.0 558.000 [3,] 662.5834 1796.5 718.125 [4,] 757.6922 1906.0 1003.375 [5,] 905.3887 2341.0 1594.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 554.6728 1555.220 514.9865 [2,] 770.4940 2037.780 921.2635 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(361.380685704148, 521.101619696536, 662.583387467692, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ov3x1291556131.ps tmp/1ov3x1291556131.png",intern=TRUE)) character(0) > try(system("convert tmp/2h5201291556131.ps tmp/2h5201291556131.png",intern=TRUE)) character(0) > try(system("convert tmp/3h5201291556131.ps tmp/3h5201291556131.png",intern=TRUE)) character(0) > try(system("convert tmp/4ae131291556131.ps tmp/4ae131291556131.png",intern=TRUE)) character(0) > try(system("convert tmp/5ae131291556131.ps tmp/5ae131291556131.png",intern=TRUE)) character(0) > try(system("convert tmp/6knj61291556131.ps tmp/6knj61291556131.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.035 0.832 2.762