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(5789,6333,6901,5813,6504,5619,5867,6084,5258,5601,5081,4678,5463,5546,6810,6407,5985,5119,5904,5034,4922,6083,4365,4464,4557,5885,5286,6017,5376,5935,6276,5510,5998,5193,4602,5326,5307,5014,6153,6441,5584,6427,6062,5589,6216,5809,4989,6706,7174,6122,8075,6292,6337,8576,6077,5931,6288,7167,6054,6468,6403,6927,7914,7728,8701,8522,6481,7502,7778,7424,6941,8574,9171,7718,9083,7164,8213,8124,7075,7026,7390,7778,6203,6905,7087,6495,7664,6516,6322,7828,6708,6717,5707,8063,6315,5893,6914,7319,6615,7341,6210,7408,6168,5878,6834,6211,5982,6973) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 5789 5463 4557 5307 7174 6403 9171 7087 6914 NA [2,] 6333 5546 5885 5014 6122 6927 7718 6495 7319 NA [3,] 6901 6810 5286 6153 8075 7914 9083 7664 6615 NA [4,] 5813 6407 6017 6441 6292 7728 7164 6516 7341 NA [5,] 6504 5985 5376 5584 6337 8701 8213 6322 6210 NA [6,] 5619 5119 5935 6427 8576 8522 8124 7828 7408 NA [7,] 5867 5904 6276 6062 6077 6481 7075 6708 6168 NA [8,] 6084 5034 5510 5589 5931 7502 7026 6717 5878 NA [9,] 5258 4922 5998 6216 6288 7778 7390 5707 6834 NA [10,] 5601 6083 5193 5809 7167 7424 7778 8063 6211 NA [11,] 5081 4365 4602 4989 6054 6941 6203 6315 5982 NA [12,] 4678 4464 5326 6706 6468 8574 6905 5893 6973 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/1d1bh1262714013.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/2jyyz1262714013.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/3vckf1262714013.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/41rqx1262714013.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] [,12] [1,] 4557 5014 5286 5813 5376 5119 5867 5034 4922 5193 4365 4464 [2,] 5463 5885 6615 6292 5985 5935 6062 5589 5707 5809 4989 5326 [3,] 6403 6333 6901 6441 6322 7408 6168 5931 6216 6211 5982 6468 [4,] 7087 6927 7914 7164 6504 8124 6481 6717 6834 7424 6203 6905 [5,] 9171 7718 9083 7728 6504 8576 7075 7502 7778 8063 6941 8574 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5547.693 5784.213 6216.86 5981.747 6048.66 6255.127 5947.327 5336.92 [2,] 7258.307 6881.787 7585.14 6900.253 6595.34 8560.873 6388.673 6525.08 [,9] [,10] [,11] [,12] [1,] 5622.447 5360.433 5342.627 5636.393 [2,] 6809.553 7061.567 6621.373 7299.607 $out [1] 8701 8213 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(4557, 5463, 6403, 7087, 9171, 5014, 5885, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56cw61262714013.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] [,10] [1,] 4678.0 4365.0 4557.0 4989.0 5931.0 6403 6203.0 5707.0 5878.0 NA [2,] 5429.5 4978.0 5239.5 5445.5 6099.5 6934 7050.5 6318.5 6189.0 NA [3,] 5801.0 5504.5 5443.0 5935.5 6314.5 7615 7554.0 6612.0 6724.5 NA [4,] 6208.5 6034.0 5966.5 6321.5 7170.5 8218 8168.5 7375.5 7146.0 NA [5,] 6901.0 6810.0 6276.0 6706.0 8576.0 8701 9171.0 8063.0 7408.0 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5445.693 5022.851 5111.41 5535.95 5826.01 7029.359 7044.073 6129.895 [2,] 6156.307 5986.149 5774.59 6335.05 6802.99 8200.641 8063.927 7094.105 [,9] [,10] [1,] 6288.006 NA [2,] 7160.994 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(4678, 5429.5, 5801, 6208.5, 6901, 4365, 4978, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6kwio1262714014.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,] 398.0862 1208 419 [2,] 823.6702 2522 957 [3,] 987.3318 2863 1171 [4,] 1212.5593 3627 1597 [5,] 1362.3728 4614 2189 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 809.9569 2359.002 879.0917 [2,] 1164.7068 3366.998 1462.9083 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(398.086185531615, 823.67017454538, 987.331816972615, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1d1bh1262714013.ps tmp/1d1bh1262714013.png",intern=TRUE)) character(0) > try(system("convert tmp/2jyyz1262714013.ps tmp/2jyyz1262714013.png",intern=TRUE)) character(0) > try(system("convert tmp/3vckf1262714013.ps tmp/3vckf1262714013.png",intern=TRUE)) character(0) > try(system("convert tmp/41rqx1262714013.ps tmp/41rqx1262714013.png",intern=TRUE)) character(0) > try(system("convert tmp/56cw61262714013.ps tmp/56cw61262714013.png",intern=TRUE)) character(0) > try(system("convert tmp/6kwio1262714014.ps tmp/6kwio1262714014.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.090 0.826 1.915