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(14.92,14.95,14.97,15.05,15.06,15.07,15.07,15.08,15.09,15.09,15.09,15.12,15.13,15.15,15.15,15.16,15.17,15.17,15.18,15.18,15.19,15.19,15.2,15.21,15.24,15.31,15.45,15.46,15.65,15.67,15.68,15.73,15.74,15.79,15.8,15.81,15.82,15.84,15.84,15.85,15.86,15.87,15.87,15.88,15.88,15.88,15.88,15.9,15.91,15.92,15.94,15.96,15.96,15.97,15.97,16,16.02,16.05,16.07,16.08,16.08,16.08,16.11,16.12,16.12,16.14,16.14,16.14,16.15,16.15,16.18,16.18,16.19,16.25) > 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] 74 > (np <- floor(n / par1)) [1] 6 > 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] 7 7 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.92 15.13 15.24 15.82 15.91 16.08 16.19 [2,] 14.95 15.15 15.31 15.84 15.92 16.08 16.25 [3,] 14.97 15.15 15.45 15.84 15.94 16.11 NA [4,] 15.05 15.16 15.46 15.85 15.96 16.12 NA [5,] 15.06 15.17 15.65 15.86 15.96 16.12 NA [6,] 15.07 15.17 15.67 15.87 15.97 16.14 NA [7,] 15.07 15.18 15.68 15.87 15.97 16.14 NA [8,] 15.08 15.18 15.73 15.88 16.00 16.14 NA [9,] 15.09 15.19 15.74 15.88 16.02 16.15 NA [10,] 15.09 15.19 15.79 15.88 16.05 16.15 NA [11,] 15.09 15.20 15.80 15.88 16.07 16.18 NA [12,] 15.12 15.21 15.81 15.90 16.08 16.18 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/1d3eu1322482069.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/2stjz1322482069.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/37qpt1322482069.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/4qxeo1322482069.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,] 14.920 14.95 14.970 15.050 15.060 15.07 15.070 15.080 15.09 15.090 15.09 [2,] 15.185 15.23 15.150 15.160 15.170 15.17 15.180 15.180 15.19 15.190 15.20 [3,] 15.820 15.84 15.645 15.655 15.755 15.77 15.775 15.805 15.81 15.835 15.84 [4,] 15.995 16.00 15.940 15.960 15.960 15.97 15.970 16.000 16.02 16.050 16.07 [5,] 16.190 16.25 16.110 16.120 16.120 16.14 16.140 16.140 16.15 16.150 16.18 [,12] [1,] 15.120 [2,] 15.210 [3,] 15.855 [4,] 16.080 [5,] 16.180 $n [1] 7 7 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 15.33628 15.38017 15.13542 15.13897 15.24542 15.25397 15.26542 15.27607 [2,] 16.30372 16.29983 16.15458 16.17103 16.26458 16.28603 16.28458 16.33393 [,9] [,10] [,11] [,12] [1,] 15.27462 15.28027 15.27882 15.29382 [2,] 16.34538 16.38973 16.40118 16.41618 $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(14.92, 15.185, 15.82, 15.995, 16.19, 14.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5j5va1322482069.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] [1,] 14.92 15.130 15.240 15.820 15.910 16.080 16.19 [2,] 15.01 15.155 15.455 15.845 15.950 16.115 16.19 [3,] 15.07 15.175 15.675 15.870 15.970 16.140 16.22 [4,] 15.09 15.190 15.765 15.880 16.035 16.150 16.25 [5,] 15.12 15.210 15.810 15.900 16.080 16.180 16.25 $n [1] 12 12 12 12 12 12 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 15.03351 15.15904 15.53361 15.85404 15.93123 16.12404 16.15297 [2,] 15.10649 15.19096 15.81639 15.88596 16.00877 16.15596 16.28703 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(14.92, 15.01, 15.07, 15.09, 15.12, 15.13, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/60hhv1322482069.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.4332513 1.060 0.64000 [2,] 0.4386068 1.060 0.65125 [3,] 0.4444589 1.070 0.67000 [4,] 0.4564666 1.115 0.69375 [5,] 0.4586793 1.140 0.69750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.4363129 1.044914 0.6506155 [2,] 0.4526049 1.095086 0.6893845 $out [1] 0.5057573 0.5015215 1.2700000 1.3000000 0.8100000 0.7700000 $group [1] 1 1 2 2 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.433251274281642, 0.438606789793497, 0.44445891211801, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1d3eu1322482069.ps tmp/1d3eu1322482069.png",intern=TRUE)) character(0) > try(system("convert tmp/2stjz1322482069.ps tmp/2stjz1322482069.png",intern=TRUE)) character(0) > try(system("convert tmp/37qpt1322482069.ps tmp/37qpt1322482069.png",intern=TRUE)) character(0) > try(system("convert tmp/4qxeo1322482069.ps tmp/4qxeo1322482069.png",intern=TRUE)) character(0) > try(system("convert tmp/5j5va1322482069.ps tmp/5j5va1322482069.png",intern=TRUE)) character(0) > try(system("convert tmp/60hhv1322482069.ps tmp/60hhv1322482069.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.326 0.290 1.636