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(6.715,7.703,9.856,8.326,9.269,7.035,10.342,11.682,10.304,11.385,9.777,8.882,7.897,6.930,9.545,9.110,7.459,7.320,10.017,12.307,11.072,10.749,9.589,9.080,7.384,8.062,8.511,8.684,8.306,7.643,10.577,13.747,11.783,11.611,9.946,8.693,7.303,7.609,9.423,8.584,7.586,6.843,11.811,13.414,12.103,11.501,8.213,7.982,7.687,7.180,7.862,8.043,8.340,6.692,10.065,12.684,11.587,9.843,8.110,7.940,6.475,6.121,9.669,7.778,7.826,7.403,10.741,14.023,11.519,10.236,8.075,8.157) > 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,] 6.715 7.897 7.384 7.303 7.687 6.475 NA [2,] 7.703 6.930 8.062 7.609 7.180 6.121 NA [3,] 9.856 9.545 8.511 9.423 7.862 9.669 NA [4,] 8.326 9.110 8.684 8.584 8.043 7.778 NA [5,] 9.269 7.459 8.306 7.586 8.340 7.826 NA [6,] 7.035 7.320 7.643 6.843 6.692 7.403 NA [7,] 10.342 10.017 10.577 11.811 10.065 10.741 NA [8,] 11.682 12.307 13.747 13.414 12.684 14.023 NA [9,] 10.304 11.072 11.783 12.103 11.587 11.519 NA [10,] 11.385 10.749 11.611 11.501 9.843 10.236 NA [11,] 9.777 9.589 9.946 8.213 8.110 8.075 NA [12,] 8.882 9.080 8.693 7.982 7.940 8.157 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/1yq731291310777.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/2yq731291310777.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/3yq731291310777.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/48h6o1291310777.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] [1,] 6.4750 6.1210 7.862 7.778 7.459 6.6920 10.0170 11.682 10.304 9.843 8.075 [2,] 6.7150 6.9300 8.511 8.043 7.586 6.8430 10.0650 12.307 11.072 10.236 8.110 [3,] 7.3435 7.3945 9.484 8.455 8.066 7.1775 10.4595 13.049 11.553 11.067 8.901 [4,] 7.6870 7.7030 9.669 8.684 8.340 7.4030 10.7410 13.747 11.783 11.501 9.777 [5,] 7.8970 8.0620 9.856 9.110 9.269 7.6430 10.7410 14.023 12.103 11.611 9.946 [,12] [1,] 7.940 [2,] 7.982 [3,] 8.425 [4,] 8.882 [5,] 9.080 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.716529 6.89589 8.737053 8.041534 7.579646 6.816282 10.02346 12.12015 [2,] 7.970471 7.89311 10.230947 8.868466 8.552354 7.538718 10.89554 13.97785 [,9] [,10] [,11] [,12] [1,] 11.09438 10.25103 7.825731 7.844471 [2,] 12.01162 11.88297 9.976269 9.005529 $out [1] 11.811 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(6.475, 6.715, 7.3435, 7.687, 7.897, 6.121, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58h6o1291310777.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,] 6.7150 6.9300 7.3840 6.8430 6.6920 6.1210 NA [2,] 8.0145 7.6780 8.1840 7.5975 7.7745 7.5905 NA [3,] 9.5230 9.3275 8.6885 8.3985 8.0765 8.1160 NA [4,] 10.3230 10.3830 11.0940 11.6560 9.9540 10.4885 NA [5,] 11.6820 12.3070 13.7470 13.4140 12.6840 14.0230 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8.470078 8.093731 7.36123 6.547391 7.082415 6.794203 NA [2,] 10.575922 10.561269 10.01577 10.249609 9.070585 9.437797 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(6.715, 8.0145, 9.523, 10.323, 11.682, 6.93, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61qor1291310777.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,] 0.3613807 0.9510 0.491250 [2,] 0.5211016 1.3770 0.558000 [3,] 0.6625834 1.7965 0.718125 [4,] 0.7576922 1.9060 1.003375 [5,] 0.9053887 2.3410 1.594250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.5546728 1.555220 0.5149865 [2,] 0.7704940 2.037780 0.9212635 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.361380685704148, 0.521101619696536, 0.662583387467692, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1yq731291310777.ps tmp/1yq731291310777.png",intern=TRUE)) character(0) > try(system("convert tmp/2yq731291310777.ps tmp/2yq731291310777.png",intern=TRUE)) character(0) > try(system("convert tmp/3yq731291310777.ps tmp/3yq731291310777.png",intern=TRUE)) character(0) > try(system("convert tmp/48h6o1291310777.ps tmp/48h6o1291310777.png",intern=TRUE)) character(0) > try(system("convert tmp/58h6o1291310777.ps tmp/58h6o1291310777.png",intern=TRUE)) character(0) > try(system("convert tmp/61qor1291310777.ps tmp/61qor1291310777.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.080 0.837 2.426