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(2.98,2.98,2.98,3.03,3.07,3.08,3.08,3.08,3.08,3.08,3.08,3.08,3.08,3.08,3.12,3.15,3.15,3.15,3.15,3.16,3.19,3.20,3.20,3.20,3.21,3.21,3.21,3.21,3.21,3.28,3.30,3.30,3.30,3.30,3.30,3.30,3.30,3.45,3.49,3.50,3.54,3.64,3.67,3.67,3.68,3.68,3.68,3.68,3.70,3.83,3.87,3.87,3.87,3.87,3.87,3.87,3.87,3.87,3.87,3.88,3.88,3.88,3.88,3.88,3.88,3.89,3.89,3.91,3.95,3.99,3.99,3.99,4.00,4.00,4.00,4.00,4.00,4.00,4.00,4.00,4.06,4.07,4.07,4.07,4.07,4.07,4.30,4.44,4.52,4.52,4.52,4.53,4.53,4.53,4.53,4.53,4.53,4.53,4.53,4.61,4.63,4.63,4.63,4.63,4.63,4.63,4.63,4.63,4.63,4.63,4.66,4.73,4.73,4.72,4.7,4.74,4.74,4.74,4.76,4.88,4.88,4.88,4.88,4.89,4.97,4.97,4.97,4.97,4.97,4.97,4.97,4.97) > 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,] 2.98 3.08 3.21 3.30 3.70 3.88 4.00 4.07 4.53 4.63 4.88 NA [2,] 2.98 3.08 3.21 3.45 3.83 3.88 4.00 4.07 4.53 4.63 4.88 NA [3,] 2.98 3.12 3.21 3.49 3.87 3.88 4.00 4.30 4.53 4.66 4.88 NA [4,] 3.03 3.15 3.21 3.50 3.87 3.88 4.00 4.44 4.61 4.73 4.89 NA [5,] 3.07 3.15 3.21 3.54 3.87 3.88 4.00 4.52 4.63 4.73 4.97 NA [6,] 3.08 3.15 3.28 3.64 3.87 3.89 4.00 4.52 4.63 4.72 4.97 NA [7,] 3.08 3.15 3.30 3.67 3.87 3.89 4.00 4.52 4.63 4.70 4.97 NA [8,] 3.08 3.16 3.30 3.67 3.87 3.91 4.00 4.53 4.63 4.74 4.97 NA [9,] 3.08 3.19 3.30 3.68 3.87 3.95 4.06 4.53 4.63 4.74 4.97 NA [10,] 3.08 3.20 3.30 3.68 3.87 3.99 4.07 4.53 4.63 4.74 4.97 NA [11,] 3.08 3.20 3.30 3.68 3.87 3.99 4.07 4.53 4.63 4.76 4.97 NA [12,] 3.08 3.20 3.30 3.68 3.88 3.99 4.07 4.53 4.63 4.88 4.97 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/1kdce1323894556.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/2ldw71323894556.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/3nua41323894556.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/48h341323894556.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,] 2.980 2.98 2.980 3.030 3.070 3.080 3.080 3.080 3.08 3.08 3.08 3.08 [2,] 3.255 3.33 3.350 3.355 3.375 3.460 3.485 3.485 3.49 3.49 3.49 3.49 [3,] 3.880 3.88 3.880 3.880 3.880 3.890 3.890 3.910 3.95 3.99 3.99 3.99 [4,] 4.300 4.30 4.415 4.525 4.575 4.575 4.575 4.580 4.58 4.58 4.58 4.58 [5,] 4.880 4.88 4.880 4.890 4.970 4.970 4.970 4.970 4.97 4.97 4.97 4.97 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.382175 3.417904 3.372647 3.322626 3.308334 3.358827 3.370737 3.388355 [2,] 4.377825 4.342096 4.387353 4.437374 4.451666 4.421173 4.409263 4.431645 [,9] [,10] [,11] [,12] [1,] 3.430737 3.470737 3.470737 3.470737 [2,] 4.469263 4.509263 4.509263 4.509263 $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(2.98, 3.255, 3.88, 4.3, 4.88, 2.98, 3.33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5wfam1323894556.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] [,12] [1,] 2.980 3.080 3.21 3.300 3.87 3.88 4.000 4.30 4.53 4.63 4.880 NA [2,] 3.005 3.135 3.21 3.495 3.87 3.88 4.000 4.37 4.57 4.68 4.885 NA [3,] 3.080 3.150 3.29 3.655 3.87 3.89 4.000 4.52 4.63 4.73 4.970 NA [4,] 3.080 3.195 3.30 3.680 3.87 3.97 4.065 4.53 4.63 4.74 4.970 NA [5,] 3.080 3.200 3.30 3.680 3.87 3.99 4.070 4.53 4.63 4.76 4.970 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 3.045792 3.122634 3.24895 3.57062 3.87 3.84895 3.970353 4.447023 4.602634 [2,] 3.114208 3.177366 3.33105 3.73938 3.87 3.93105 4.029647 4.592977 4.657366 [,10] [,11] [,12] [1,] 4.702634 4.931231 NA [2,] 4.757366 5.008769 NA $out [1] 3.70 3.83 3.88 4.07 4.07 4.88 $group [1] 5 5 5 8 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(2.98, 3.005, 3.08, 3.08, 3.08, 3.08, 3.135, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6u8rf1323894556.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.6418737 1.89 1.0450 [2,] 0.6538679 1.89 1.0775 [3,] 0.6552487 1.89 1.0900 [4,] 0.6626827 1.90 1.1050 [5,] 0.6698724 1.90 1.1150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.6512282 1.885439 1.077457 [2,] 0.6592692 1.894561 1.102543 $out [1] 0.6766602 1.8600000 0.9700000 1.1700000 1.2000000 $group [1] 1 2 3 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.641873677744942, 0.65386786683432, 0.655248700734413, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1kdce1323894556.ps tmp/1kdce1323894556.png",intern=TRUE)) character(0) > try(system("convert tmp/2ldw71323894556.ps tmp/2ldw71323894556.png",intern=TRUE)) character(0) > try(system("convert tmp/3nua41323894556.ps tmp/3nua41323894556.png",intern=TRUE)) character(0) > try(system("convert tmp/48h341323894556.ps tmp/48h341323894556.png",intern=TRUE)) character(0) > try(system("convert tmp/5wfam1323894556.ps tmp/5wfam1323894556.png",intern=TRUE)) character(0) > try(system("convert tmp/6u8rf1323894556.ps tmp/6u8rf1323894556.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.366 0.371 1.791