R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(96.92,99.06,99.65,99.82,99.99,100.33,99.31,101.1,101.1,100.93,100.85,100.93,99.6,101.88,101.81,102.38,102.74,102.82,101.72,103.47,102.98,102.68,102.9,103.03,101.29,103.69,103.68,104.2,104.08,104.16,103.05,104.66,104.46,104.95,105.85,106.23,104.86,107.44,108.23,108.45,109.39,110.15,109.13,110.28,110.17,109.99,109.26,109.11,107.06,109.53,108.92,109.24,109.12,109,107.23,109.49,109.04,109.02,109.23,109.46) > 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,] 96.92 99.60 101.29 104.86 107.06 NA [2,] 99.06 101.88 103.69 107.44 109.53 NA [3,] 99.65 101.81 103.68 108.23 108.92 NA [4,] 99.82 102.38 104.20 108.45 109.24 NA [5,] 99.99 102.74 104.08 109.39 109.12 NA [6,] 100.33 102.82 104.16 110.15 109.00 NA [7,] 99.31 101.72 103.05 109.13 107.23 NA [8,] 101.10 103.47 104.66 110.28 109.49 NA [9,] 101.10 102.98 104.46 110.17 109.04 NA [10,] 100.93 102.68 104.95 109.99 109.02 NA [11,] 100.85 102.90 105.85 109.26 109.23 NA [12,] 100.93 103.03 106.23 109.11 109.46 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/rcomp/tmp/1bb4a1291634972.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/www/html/rcomp/tmp/243lv1291634972.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/www/html/rcomp/tmp/343lv1291634972.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/www/html/rcomp/tmp/4xclg1291634972.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] [1,] 96.92 99.06 99.65 99.82 99.99 100.33 99.31 101.10 101.10 100.93 [2,] 99.60 101.88 101.81 102.38 102.74 102.82 101.72 103.47 102.98 102.68 [3,] 101.29 103.69 103.68 104.20 104.08 104.16 103.05 104.66 104.46 104.95 [4,] 104.86 107.44 108.23 108.45 109.12 109.00 107.23 109.49 109.04 109.02 [5,] 107.06 109.53 108.92 109.24 109.39 110.15 109.13 110.28 110.17 109.99 [,11] [,12] [1,] 100.85 100.93 [2,] 102.90 103.03 [3,] 105.85 106.23 [4,] 109.23 109.11 [5,] 109.26 109.46 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 97.5733 99.76132 99.14364 99.91095 99.5719 99.79323 99.15665 [2,] 105.0067 107.61868 108.21636 108.48905 108.5881 108.52677 106.94335 [,8] [,9] [,10] [,11] [,12] [1,] 100.4063 100.1780 100.4702 101.3772 101.9339 [2,] 108.9137 108.7420 109.4298 110.3228 110.5261 $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(96.92, 99.6, 101.29, 104.86, 107.06, 99.06, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xclg1291634972.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,] 99.06 101.720 103.050 107.440 108.92 NA [2,] 99.48 101.845 103.685 108.340 108.96 NA [3,] 100.16 102.710 104.180 109.195 109.08 NA [4,] 100.93 102.940 104.805 110.070 109.35 NA [5,] 101.10 103.470 106.230 110.280 109.53 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 99.49865 102.2106 103.6692 108.4059 108.9021 NA [2,] 100.82135 103.2094 104.6908 109.9841 109.2579 NA $out [1] 96.92 99.60 101.29 104.86 107.06 107.23 $group [1] 1 2 3 4 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(99.06, 99.48, 100.16, 100.93, 101.1, 101.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6xclg1291634972.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,] 3.738813 8.410 5.260 [2,] 3.918046 9.065 5.790 [3,] 4.013388 9.335 6.075 [4,] 4.079144 9.820 6.335 [5,] 4.210006 10.470 6.420 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.939910 8.99064 5.826422 [2,] 4.086866 9.67936 6.323578 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(3.73881264574731, 3.91804575302533, 4.01338773366147, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1bb4a1291634972.ps tmp/1bb4a1291634972.png",intern=TRUE)) character(0) > try(system("convert tmp/243lv1291634972.ps tmp/243lv1291634972.png",intern=TRUE)) character(0) > try(system("convert tmp/343lv1291634972.ps tmp/343lv1291634972.png",intern=TRUE)) character(0) > try(system("convert tmp/4xclg1291634972.ps tmp/4xclg1291634972.png",intern=TRUE)) character(0) > try(system("convert tmp/5xclg1291634972.ps tmp/5xclg1291634972.png",intern=TRUE)) character(0) > try(system("convert tmp/6xclg1291634972.ps tmp/6xclg1291634972.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.082 0.852 2.600