R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(9.26,9.27,9.29,9.27,9.29,9.31,9.33,9.35,9.34,9.35,9.38,9.43,9.47,9.5,9.55,9.58,9.61,9.57,9.61,9.65,9.62,9.63,9.62,9.63,9.65,9.72,9.75,9.77,9.78,9.82,9.84,9.9,9.94,9.96,10.03,10.03,10.12,10.12,10.05,10.14,10.17,10.2,10.2,10.35,10.43,10.52,10.57,10.57,10.57,10.65,10.57,10.61,10.63,10.71,10.72,10.77,10.79,10.82,10.9,10.83,10.92,10.91,10.88,10.87,11,10.99,11.03,11.04,10.99,10.9,11,10.99,10.92,10.98,11.15,11.19,11.33,11.38,11.4,11.45,11.56,11.61,11.82,11.77,11.85,11.82,11.92,11.86,11.87,11.94,11.86,11.92,11.83,11.91,11.93,11.99,11.96,12.12,11.85,12.01,12.1,12.21,12.31,12.31,12.39,12.35,12.41,12.51,12.27,12.51,12.44,12.47,12.51,12.58,12.5,12.52,12.59,12.51,12.67,12.64,12.54,12.6,12.67,12.62,12.72,12.85,12.85,12.82,12.79,12.94,12.71,12.56) > 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,] 9.26 9.47 9.65 10.12 10.57 10.92 10.92 11.85 11.96 12.27 12.54 NA [2,] 9.27 9.50 9.72 10.12 10.65 10.91 10.98 11.82 12.12 12.51 12.60 NA [3,] 9.29 9.55 9.75 10.05 10.57 10.88 11.15 11.92 11.85 12.44 12.67 NA [4,] 9.27 9.58 9.77 10.14 10.61 10.87 11.19 11.86 12.01 12.47 12.62 NA [5,] 9.29 9.61 9.78 10.17 10.63 11.00 11.33 11.87 12.10 12.51 12.72 NA [6,] 9.31 9.57 9.82 10.20 10.71 10.99 11.38 11.94 12.21 12.58 12.85 NA [7,] 9.33 9.61 9.84 10.20 10.72 11.03 11.40 11.86 12.31 12.50 12.85 NA [8,] 9.35 9.65 9.90 10.35 10.77 11.04 11.45 11.92 12.31 12.52 12.82 NA [9,] 9.34 9.62 9.94 10.43 10.79 10.99 11.56 11.83 12.39 12.59 12.79 NA [10,] 9.35 9.63 9.96 10.52 10.82 10.90 11.61 11.91 12.35 12.51 12.94 NA [11,] 9.38 9.62 10.03 10.57 10.90 11.00 11.82 11.93 12.41 12.67 12.71 NA [12,] 9.43 9.63 10.03 10.57 10.83 10.99 11.77 11.99 12.51 12.64 12.56 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/wessaorg/rcomp/tmp/1z4md1322587786.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/wessaorg/rcomp/tmp/244ce1322587786.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/wessaorg/rcomp/tmp/3xt581322587786.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/wessaorg/rcomp/tmp/4oj0y1322587786.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,] 9.260 9.27 9.290 9.270 9.290 9.310 9.330 9.350 9.340 9.35 9.38 [2,] 9.885 9.92 9.900 9.955 9.975 10.010 10.020 10.125 10.185 10.24 10.30 [3,] 10.920 10.91 10.880 10.870 11.000 10.990 11.030 11.040 10.990 10.90 11.00 [4,] 11.905 11.97 11.885 11.935 11.985 12.075 12.085 12.115 12.110 12.13 12.17 [5,] 12.540 12.60 12.670 12.620 12.720 12.850 12.850 12.820 12.790 12.94 12.71 [,12] [1,] 9.43 [2,] 10.30 [3,] 10.99 [4,] 12.25 [5,] 12.64 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9.957696 9.933405 9.93437 9.926752 10.04246 10.00626 10.04626 10.09199 [2,] 11.882304 11.886595 11.82563 11.813248 11.95754 11.97374 12.01374 11.98801 [,9] [,10] [,11] [,12] [1,] 10.07295 9.999627 10.10915 10.06104 [2,] 11.90705 11.800373 11.89085 11.91896 $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(9.26, 9.885, 10.92, 11.905, 12.54, 9.27, 9.92, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5t41m1322587786.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] [,11] [1,] 9.26 9.470 9.65 10.050 10.570 10.870 10.920 11.820 11.850 12.440 12.540 [2,] 9.28 9.560 9.76 10.130 10.620 10.905 11.170 11.855 12.055 12.485 12.610 [3,] 9.32 9.610 9.83 10.200 10.715 10.990 11.390 11.890 12.260 12.510 12.715 [4,] 9.35 9.625 9.95 10.475 10.805 11.000 11.585 11.925 12.370 12.585 12.835 [5,] 9.43 9.650 10.03 10.570 10.900 11.040 11.820 11.990 12.510 12.670 12.940 [,12] [1,] NA [2,] NA [3,] NA [4,] NA [5,] 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,] 9.288073 9.580353 9.74334 10.04264 10.63062 10.94667 11.20072 11.85807 [2,] 9.351927 9.639647 9.91666 10.35736 10.79938 11.03333 11.57928 11.92193 [,9] [,10] [,11] [,12] [1,] 12.11633 12.46439 12.61238 NA [2,] 12.40367 12.55561 12.81762 NA $out [1] 12.27 $group [1] 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(9.26, 9.28, 9.32, 9.35, 9.43, 9.47, 9.56, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/66vv81322587786.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.165987 3.210 1.8700 [2,] 1.187468 3.330 1.9375 [3,] 1.204350 3.405 1.9875 [4,] 1.214256 3.495 2.0350 [5,] 1.240971 3.590 2.0650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.192132 3.329742 1.94303 [2,] 1.216568 3.480258 2.03197 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.16598690153254, 1.18746775643168, 1.20435000970975, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1z4md1322587786.ps tmp/1z4md1322587786.png",intern=TRUE)) character(0) > try(system("convert tmp/244ce1322587786.ps tmp/244ce1322587786.png",intern=TRUE)) character(0) > try(system("convert tmp/3xt581322587786.ps tmp/3xt581322587786.png",intern=TRUE)) character(0) > try(system("convert tmp/4oj0y1322587786.ps tmp/4oj0y1322587786.png",intern=TRUE)) character(0) > try(system("convert tmp/5t41m1322587786.ps tmp/5t41m1322587786.png",intern=TRUE)) character(0) > try(system("convert tmp/66vv81322587786.ps tmp/66vv81322587786.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.373 0.287 1.668