R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(15.14,14.2,13.83,14.31,14.04,14.9,14.92,15.36,15.5,15.65,16.18,15.44,15.58,15.24,15.33,16.07,15.82,15.87,15.72,17.07,16.83,17.52,17.76,17.36,17.95,16.71,17.14,16.72,17.26,17.24,17.69,18.13,18.08,18.18,18.18,17.64,17.89,16.82,16.61,16.66,17.02,16.91,17.18,18.06,17.58,17.48,17.54,17.44,17.79,16.79,16.19,16.62,16.39,16.54,17.26,18,17.29,18.16,17.82,17.48,18.31,17.04,17.03,16.97,17.11,17.12,17.69,18.5,18.27,18.45,18.35,18.03,18.49,18.07,17.8,17.88,18.12,18.68,18.8,19.64,19.56,19.3,20.07,19.82,20.29,19.36,18.74,18.87,18.87,18.91,19.31,20.06,20.72,20.42,20.58,20.58,21.18,19.87,19.83,19.48,19.49,19.4,19.89,20.44,20.07,19.75,19.54,19.07,19.55,18.01,17.5,17.41,17.47,17.6,17.64,18.3,18.27,17.99,18.04,17.62,18.22,17.67,17.73,17.99,18.15,18.41,18.36,19.52,19.96,19.6,19.48,19.13) > 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] 132 > (np <- floor(n / par1)) [1] 11 > 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] 11 11 11 11 11 11 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 15.14 15.58 17.95 17.89 17.79 18.31 18.49 20.29 21.18 19.55 18.22 NA [2,] 14.20 15.24 16.71 16.82 16.79 17.04 18.07 19.36 19.87 18.01 17.67 NA [3,] 13.83 15.33 17.14 16.61 16.19 17.03 17.80 18.74 19.83 17.50 17.73 NA [4,] 14.31 16.07 16.72 16.66 16.62 16.97 17.88 18.87 19.48 17.41 17.99 NA [5,] 14.04 15.82 17.26 17.02 16.39 17.11 18.12 18.87 19.49 17.47 18.15 NA [6,] 14.90 15.87 17.24 16.91 16.54 17.12 18.68 18.91 19.40 17.60 18.41 NA [7,] 14.92 15.72 17.69 17.18 17.26 17.69 18.80 19.31 19.89 17.64 18.36 NA [8,] 15.36 17.07 18.13 18.06 18.00 18.50 19.64 20.06 20.44 18.30 19.52 NA [9,] 15.50 16.83 18.08 17.58 17.29 18.27 19.56 20.72 20.07 18.27 19.96 NA [10,] 15.65 17.52 18.18 17.48 18.16 18.45 19.30 20.42 19.75 17.99 19.60 NA [11,] 16.18 17.76 18.18 17.54 17.82 18.35 20.07 20.58 19.54 18.04 19.48 NA [12,] 15.44 17.36 17.64 17.44 17.48 18.03 19.82 20.58 19.07 17.62 19.13 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/rcomp/tmp/1mcdg1322555397.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/rcomp/tmp/2mx4l1322555397.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/rcomp/tmp/3exic1322555397.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/rcomp/tmp/42rzu1322555397.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,] 17.79 15.24 15.330 16.070 15.820 14.900 15.72 17.07 15.500 15.650 16.18 [2,] 17.84 16.75 16.400 16.640 16.705 16.725 17.22 18.03 17.435 17.755 17.79 [3,] 18.22 17.04 17.140 16.970 17.260 17.240 17.69 18.30 18.270 18.180 18.18 [4,] 19.02 18.04 17.765 17.935 18.135 18.545 18.58 19.58 19.760 19.450 19.51 [5,] 20.29 19.87 18.740 19.480 19.490 19.400 19.89 20.44 20.720 20.420 20.58 [,12] [1,] 15.44 [2,] 17.46 [3,] 17.64 [4,] 19.10 [5,] 20.58 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17.65786 16.42546 16.48973 16.35308 16.57877 16.37297 17.04211 17.5616 [2,] 18.78214 17.65454 17.79027 17.58692 17.94123 18.10703 18.33789 19.0384 [,9] [,10] [,11] [,12] [1,] 17.16240 17.37252 17.36061 16.85872 [2,] 19.37760 18.98748 18.99939 18.42128 $out [1] 15.14 15.58 21.18 14.20 13.83 19.83 14.31 14.04 14.92 15.36 $group [1] 1 1 1 2 3 3 4 5 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(17.79, 17.84, 18.22, 19.02, 20.29, 15.24, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5xx1s1322555397.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] [,8] [,9] [,10] [1,] 13.830 15.240 16.710 16.610 16.190 16.970 17.800 18.74 19.070 17.410 [2,] 14.255 15.650 17.190 16.865 16.580 17.075 18.095 18.89 19.485 17.550 [3,] 15.030 15.970 17.665 17.310 17.275 17.860 18.740 19.71 19.790 17.815 [4,] 15.470 17.215 18.105 17.560 17.805 18.330 19.600 20.50 19.980 18.155 [5,] 16.180 17.760 18.180 18.060 18.160 18.500 20.070 20.72 20.440 18.300 [,11] [,12] [1,] 17.670 NA [2,] 18.070 NA [3,] 18.385 NA [4,] 19.500 NA [5,] 19.960 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14.47583 15.25619 17.24766 16.99301 16.71627 17.28759 18.05356 18.97567 [2,] 15.58417 16.68381 18.08234 17.62699 17.83373 18.43241 19.42644 20.44433 [,9] [,10] [,11] [,12] [1,] 19.56423 17.53906 17.73277 NA [2,] 20.01577 18.09094 19.03723 NA $out [1] 21.18 19.55 $group [1] 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(13.83, 14.255, 15.03, 15.47, 16.18, 15.24, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/672g71322555397.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,] 1.283887 4.400 1.1800 [2,] 1.383790 4.870 1.3275 [3,] 1.452434 5.155 1.4900 [4,] 1.595770 5.560 1.7075 [5,] 1.780983 6.040 1.8200 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.355748 4.840286 1.316679 [2,] 1.549119 5.469714 1.663321 $out [1] 2.325 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.28388685426149, 1.38378972988041, 1.45243363355982, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1mcdg1322555397.ps tmp/1mcdg1322555397.png",intern=TRUE)) character(0) > try(system("convert tmp/2mx4l1322555397.ps tmp/2mx4l1322555397.png",intern=TRUE)) character(0) > try(system("convert tmp/3exic1322555397.ps tmp/3exic1322555397.png",intern=TRUE)) character(0) > try(system("convert tmp/42rzu1322555397.ps tmp/42rzu1322555397.png",intern=TRUE)) character(0) > try(system("convert tmp/5xx1s1322555397.ps tmp/5xx1s1322555397.png",intern=TRUE)) character(0) > try(system("convert tmp/672g71322555397.ps tmp/672g71322555397.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.784 0.392 2.247