R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(9.26,9.29,9.28,9.31,9.27,9.27,9.28,9.25,9.32,9.33,9.31,9.3,9.29,9.33,9.35,9.35,9.37,9.37,9.35,9.33,9.34,9.37,9.33,9.31,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) > 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.29 9.26 9.47 9.65 10.12 10.57 10.92 10.92 11.85 11.96 NA [2,] 9.29 9.33 9.27 9.50 9.72 10.12 10.65 10.91 10.98 11.82 12.12 NA [3,] 9.28 9.35 9.29 9.55 9.75 10.05 10.57 10.88 11.15 11.92 11.85 NA [4,] 9.31 9.35 9.27 9.58 9.77 10.14 10.61 10.87 11.19 11.86 12.01 NA [5,] 9.27 9.37 9.29 9.61 9.78 10.17 10.63 11.00 11.33 11.87 12.10 NA [6,] 9.27 9.37 9.31 9.57 9.82 10.20 10.71 10.99 11.38 11.94 12.21 NA [7,] 9.28 9.35 9.33 9.61 9.84 10.20 10.72 11.03 11.40 11.86 12.31 NA [8,] 9.25 9.33 9.35 9.65 9.90 10.35 10.77 11.04 11.45 11.92 12.31 NA [9,] 9.32 9.34 9.34 9.62 9.94 10.43 10.79 10.99 11.56 11.83 12.39 NA [10,] 9.33 9.37 9.35 9.63 9.96 10.52 10.82 10.90 11.61 11.91 12.35 NA [11,] 9.31 9.33 9.38 9.62 10.03 10.57 10.90 11.00 11.82 11.93 12.41 NA [12,] 9.30 9.31 9.43 9.63 10.03 10.57 10.83 10.99 11.77 11.99 12.51 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/freestat/rcomp/tmp/1xle41246653392.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/freestat/rcomp/tmp/2akci1246653392.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/freestat/rcomp/tmp/34wls1246653392.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/freestat/rcomp/tmp/4ai841246653392.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] [1,] 9.26 9.270 9.280 9.270 9.270 9.270 9.280 9.250 9.320 9.330 9.31 [2,] 9.38 9.415 9.450 9.465 9.490 9.470 9.480 9.500 9.480 9.500 9.50 [3,] 10.12 10.120 10.050 10.140 10.170 10.200 10.200 10.350 10.430 10.520 10.57 [4,] 10.92 10.945 11.015 11.030 11.165 11.185 11.215 11.245 11.275 11.255 11.41 [5,] 11.96 12.120 11.920 12.010 12.100 12.210 12.310 12.310 12.390 12.350 12.41 [,12] [1,] 9.30 [2,] 9.53 [3,] 10.57 [4,] 11.38 [5,] 12.51 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.386363 9.391126 9.304453 9.394453 9.37205 9.382995 9.373467 [2,] 10.853637 10.848874 10.795547 10.885547 10.96795 11.017005 11.026533 [,8] [,9] [,10] [,11] [,12] [1,] 9.518703 9.574884 9.68394 9.6601 9.688682 [2,] 11.181297 11.285116 11.35606 11.4799 11.451318 $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.38, 10.12, 10.92, 11.96, 9.27, 9.415, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/50x4y1246653392.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] [,11] [1,] 9.250 9.290 9.26 9.470 9.65 10.050 10.570 10.870 10.920 11.820 11.850 [2,] 9.270 9.330 9.28 9.560 9.76 10.130 10.620 10.905 11.170 11.855 12.055 [3,] 9.285 9.345 9.32 9.610 9.83 10.200 10.715 10.990 11.390 11.890 12.260 [4,] 9.310 9.360 9.35 9.625 9.95 10.475 10.805 11.000 11.585 11.925 12.370 [5,] 9.330 9.370 9.43 9.650 10.03 10.570 10.900 11.040 11.820 11.990 12.510 [,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.266756 9.331317 9.288073 9.580353 9.74334 10.04264 10.63062 10.94667 [2,] 9.303244 9.358683 9.351927 9.639647 9.91666 10.35736 10.79938 11.03333 [,9] [,10] [,11] [,12] [1,] 11.20072 11.85807 12.11633 NA [2,] 11.57928 11.92193 12.40367 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(9.25, 9.27, 9.285, 9.31, 9.33, 9.29, 9.33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6czbz1246653392.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,] 1.001933 2.640 1.530 [2,] 1.022770 2.785 1.565 [3,] 1.080831 2.980 1.725 [4,] 1.092741 3.065 1.775 [5,] 1.146236 3.210 1.910 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.048917 2.85229 1.629218 [2,] 1.112745 3.10771 1.820782 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.00193267783274, 1.02277014843402, 1.08083086222157, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xle41246653392.ps tmp/1xle41246653392.png") > system("convert tmp/2akci1246653392.ps tmp/2akci1246653392.png") > system("convert tmp/34wls1246653392.ps tmp/34wls1246653392.png") > system("convert tmp/4ai841246653392.ps tmp/4ai841246653392.png") > system("convert tmp/50x4y1246653392.ps tmp/50x4y1246653392.png") > system("convert tmp/6czbz1246653392.ps tmp/6czbz1246653392.png") > > > proc.time() user system elapsed 1.687 1.284 4.665