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(9721,9897,9828,9924,10371,10846,10413,10709,10662,10570,10297,10635,10872,10296,10383,10431,10574,10653,10805,10872,10625,10407,10463,10556,10646,10702,11353,11346,11451,11964,12574,13031,13812,14544,14931,14886,16005,17064,15168,16050,15839,15137,14954,15648,15305,15579,16348,15928,16171,15937,15713,15594,15683,16438,17032,17696,17745,19394,20148,20108,18584,18441,18391,19178,18079,18483,19644,19195,19650,20830,23595,22937) > 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,] 9721 10872 10646 16005 16171 18584 NA [2,] 9897 10296 10702 17064 15937 18441 NA [3,] 9828 10383 11353 15168 15713 18391 NA [4,] 9924 10431 11346 16050 15594 19178 NA [5,] 10371 10574 11451 15839 15683 18079 NA [6,] 10846 10653 11964 15137 16438 18483 NA [7,] 10413 10805 12574 14954 17032 19644 NA [8,] 10709 10872 13031 15648 17696 19195 NA [9,] 10662 10625 13812 15305 17745 19650 NA [10,] 10570 10407 14544 15579 19394 20830 NA [11,] 10297 10463 14931 16348 20148 23595 NA [12,] 10635 10556 14886 15928 20108 22937 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/1kabu1243927561.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/2ly3q1243927561.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/3g7yd1243927561.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/4ni2t1243927561.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,] 9721.0 9897.0 9828.0 9924 10371 10653.0 10413 10709.0 10625.0 10407.0 [2,] 10646.0 10296.0 10383.0 10431 10574 10846.0 10805 10872.0 10662.0 10570.0 [3,] 13438.5 13319.5 13260.5 13470 13567 13550.5 13764 14339.5 14558.5 15061.5 [4,] 16171.0 17064.0 15713.0 16050 15839 16438.0 17032 17696.0 17745.0 19394.0 [5,] 18584.0 18441.0 18391.0 19178 18079 18483.0 19644 19195.0 19650.0 20830.0 [,11] [,12] [1,] 10297.0 10556 [2,] 10463.0 10635 [3,] 15639.5 15407 [4,] 20148.0 20108 [5,] 23595.0 22937 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9874.697 8953.921 9822.478 9845.564 10170.90 9943.48 9747.384 [2,] 17002.303 17685.079 16698.522 17094.436 16963.10 17157.52 17780.616 [,8] [,9] [,10] [,11] [,12] [1,] 9937.8 9989.736 9369.735 9392.362 9296.609 [2,] 18741.2 19127.264 20753.265 21886.638 21517.391 $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(9721, 10646, 13438.5, 16171, 18584, 9897, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5qudx1243927561.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,] 9721.0 10296 10646.0 14954.0 15594.0 18079.0 NA [2,] 9910.5 10419 11349.5 15236.5 15825.0 18462.0 NA [3,] 10392.0 10565 12269.0 15743.5 16735.0 19186.5 NA [4,] 10648.5 10729 14178.0 16027.5 18569.5 20240.0 NA [5,] 10846.0 10872 14931.0 17064.0 20148.0 20830.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10055.39 10423.61 10978.90 15382.72 15483.22 18375.54 NA [2,] 10728.61 10706.39 13559.10 16104.28 17986.78 19997.46 NA $out [1] 23595 22937 $group [1] 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(9721, 9910.5, 10392, 10648.5, 10846, 10296, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6bgaz1243927561.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,] 3243.180 7708.0 4951.25 [2,] 3501.987 8515.0 5136.00 [3,] 3691.005 8944.0 5556.25 [4,] 4092.395 9838.5 6630.75 [5,] 4342.066 10423.0 7618.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3421.716 8340.343 4874.484 [2,] 3960.295 9547.657 6238.016 $out [1] 5278.796 4990.266 13298.000 12381.000 $group [1] 1 1 2 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(3243.18000836627, 3501.98668664591, 3691.00543715797, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1kabu1243927561.ps tmp/1kabu1243927561.png") > system("convert tmp/2ly3q1243927561.ps tmp/2ly3q1243927561.png") > system("convert tmp/3g7yd1243927561.ps tmp/3g7yd1243927561.png") > system("convert tmp/4ni2t1243927561.ps tmp/4ni2t1243927561.png") > system("convert tmp/5qudx1243927561.ps tmp/5qudx1243927561.png") > system("convert tmp/6bgaz1243927561.ps tmp/6bgaz1243927561.png") > > > proc.time() user system elapsed 1.084 0.827 2.798