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(15.58,15.66,15.73,15.74,15.77,15.78,15.8,15.81,15.82,15.88,15.85,15.89,15.92,16.02,16.1,16.13,16.21,16.25,16.27,16.21,16.21,16.24,16.32,16.32,16.36,16.48,16.54,16.58,16.56,16.55,16.58,16.53,16.6,16.46,16.48,16.48,16.49,16.54,16.67,16.72,16.79,16.86,16.84,16.86,16.96,17.01,17.02,17.04,17.04,17.39,17.54,17.57,17.58,17.56,17.63,17.67,17.71,17.75,17.82,17.86) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15.58 15.92 16.36 16.49 17.04 NA [2,] 15.66 16.02 16.48 16.54 17.39 NA [3,] 15.73 16.10 16.54 16.67 17.54 NA [4,] 15.74 16.13 16.58 16.72 17.57 NA [5,] 15.77 16.21 16.56 16.79 17.58 NA [6,] 15.78 16.25 16.55 16.86 17.56 NA [7,] 15.80 16.27 16.58 16.84 17.63 NA [8,] 15.81 16.21 16.53 16.86 17.67 NA [9,] 15.82 16.21 16.60 16.96 17.71 NA [10,] 15.88 16.24 16.46 17.01 17.75 NA [11,] 15.85 16.32 16.48 17.02 17.82 NA [12,] 15.89 16.32 16.48 17.04 17.86 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/1vgrm1322906839.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/205f81322906839.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/38vem1322906839.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/40k0g1322906839.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] [,12] [1,] 15.58 15.66 15.73 15.74 15.77 15.78 15.80 15.81 15.82 15.88 15.85 15.89 [2,] 15.92 16.02 16.10 16.13 16.21 16.25 16.27 16.21 16.21 16.24 16.32 16.32 [3,] 16.36 16.48 16.54 16.58 16.56 16.55 16.58 16.53 16.60 16.46 16.48 16.48 [4,] 16.49 16.54 16.67 16.72 16.79 16.86 16.84 16.86 16.96 17.01 17.02 17.04 [5,] 17.04 16.54 16.67 17.57 17.58 17.56 17.63 17.67 17.71 17.75 17.82 17.86 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15.95724 16.11257 16.13724 16.16311 16.15017 16.11898 16.17724 16.07071 [2,] 16.76276 16.84743 16.94276 16.99689 16.96983 16.98102 16.98276 16.98929 [,9] [,10] [,11] [,12] [1,] 16.07005 15.91592 15.98538 15.97125 [2,] 17.12995 17.00408 16.97462 16.98875 $out [1] 17.39 17.54 $group [1] 2 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15.58, 15.92, 16.36, 16.49, 17.04, 15.66, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5y9b51322906839.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] [1,] 15.660 15.920 16.360 16.490 17.390 NA [2,] 15.735 16.115 16.480 16.695 17.550 NA [3,] 15.790 16.210 16.535 16.850 17.605 NA [4,] 15.835 16.260 16.570 16.985 17.730 NA [5,] 15.890 16.320 16.600 17.040 17.860 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15.74439 16.14386 16.49395 16.71773 17.5229 NA [2,] 15.83561 16.27614 16.57605 16.98227 17.6871 NA $out [1] 15.58 17.04 $group [1] 1 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15.66, 15.735, 15.79, 15.835, 15.89, 15.92, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/68bkw1322906840.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.6512450 1.730 0.52 [2,] 0.6730436 1.795 0.57 [3,] 0.6862494 1.830 0.60 [4,] 0.7279443 1.880 0.71 [5,] 0.7596841 1.970 0.77 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.6612087 1.791231 0.5361451 [2,] 0.7112900 1.868769 0.6638549 $out [1] 0.558498 1.460000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.651244961592794, 0.673043591614894, 0.686249352199681, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vgrm1322906839.ps tmp/1vgrm1322906839.png",intern=TRUE)) character(0) > try(system("convert tmp/205f81322906839.ps tmp/205f81322906839.png",intern=TRUE)) character(0) > try(system("convert tmp/38vem1322906839.ps tmp/38vem1322906839.png",intern=TRUE)) character(0) > try(system("convert tmp/40k0g1322906839.ps tmp/40k0g1322906839.png",intern=TRUE)) character(0) > try(system("convert tmp/5y9b51322906839.ps tmp/5y9b51322906839.png",intern=TRUE)) character(0) > try(system("convert tmp/68bkw1322906840.ps tmp/68bkw1322906840.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.361 0.278 1.660