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.12,2.13,2.16,2.25,2.26,2.39,2.36,2.26,2.26,2.27,2.29,2.21,2.17,2.17,2.08,2.12,2.18,2.13,2.21,2.06,1.91,1.99,2.04,2.02,2.01,2.1,2.01,2.07,2.05,2.1,2.15,2.15,1.96,2.06,2.07,2.05,2.08,2.14,2.16,2.35,2.31,2.2,2.3,2.22,2.14,2.17,2.12,2.1,2.17,2.29,2.17,2.25,2.13,2.23,2.17,2.24,2.13,2.16,2.1,2.05,2.03,2.24,2.17,2.13,2.21,2.18,2.21,2.23,2.09,2.16,2.13,2.12) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.12 2.17 2.01 2.08 2.17 2.03 NA [2,] 2.13 2.17 2.10 2.14 2.29 2.24 NA [3,] 2.16 2.08 2.01 2.16 2.17 2.17 NA [4,] 2.25 2.12 2.07 2.35 2.25 2.13 NA [5,] 2.26 2.18 2.05 2.31 2.13 2.21 NA [6,] 2.39 2.13 2.10 2.20 2.23 2.18 NA [7,] 2.36 2.21 2.15 2.30 2.17 2.21 NA [8,] 2.26 2.06 2.15 2.22 2.24 2.23 NA [9,] 2.26 1.91 1.96 2.14 2.13 2.09 NA [10,] 2.27 1.99 2.06 2.17 2.16 2.16 NA [11,] 2.29 2.04 2.07 2.12 2.10 2.13 NA [12,] 2.21 2.02 2.05 2.10 2.05 2.12 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/1h19n1322516025.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/23bcu1322516025.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/3rj271322516025.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/4wd9e1322516025.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.01 2.100 2.01 2.07 2.050 2.10 2.15 2.060 1.91 1.99 2.04 2.020 [2,] 2.03 2.130 2.08 2.12 2.130 2.13 2.17 2.150 1.96 2.06 2.07 2.050 [3,] 2.10 2.155 2.16 2.19 2.195 2.19 2.21 2.225 2.11 2.16 2.11 2.075 [4,] 2.17 2.240 2.17 2.25 2.260 2.23 2.30 2.240 2.14 2.17 2.13 2.120 [5,] 2.17 2.290 2.17 2.35 2.310 2.23 2.36 2.260 2.26 2.27 2.13 2.210 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.009695 2.084046 2.101947 2.106146 2.111146 2.125497 2.126146 2.166947 [2,] 2.190305 2.225954 2.218053 2.273854 2.278854 2.254503 2.293854 2.283053 [,9] [,10] [,11] [,12] [1,] 1.993894 2.089046 2.071298 2.029848 [2,] 2.226106 2.230954 2.148702 2.120152 $out [1] 2.39 2.29 $group [1] 6 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.01, 2.03, 2.1, 2.17, 2.17, 2.1, 2.13, 2.155, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5uobi1322516025.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,] 2.120 1.91 1.960 2.080 2.050 2.030 NA [2,] 2.185 2.03 2.030 2.130 2.130 2.125 NA [3,] 2.260 2.10 2.065 2.165 2.170 2.165 NA [4,] 2.280 2.17 2.100 2.260 2.235 2.210 NA [5,] 2.390 2.21 2.150 2.350 2.290 2.240 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.21667 2.036145 2.033073 2.105706 2.122109 2.126231 NA [2,] 2.30333 2.163855 2.096927 2.224294 2.217891 2.203769 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.12, 2.185, 2.26, 2.28, 2.39, 1.91, 2.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6z3cl1322516025.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.06595453 0.16 0.05000 [2,] 0.07055401 0.19 0.06875 [3,] 0.08400689 0.23 0.08625 [4,] 0.09972065 0.28 0.11000 [5,] 0.12797135 0.35 0.14500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.07070379 0.1889504 0.0674356 [2,] 0.09730999 0.2710496 0.1050644 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0659545297913647, 0.0705540119723045, 0.0840068915031894, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1h19n1322516025.ps tmp/1h19n1322516025.png",intern=TRUE)) character(0) > try(system("convert tmp/23bcu1322516025.ps tmp/23bcu1322516025.png",intern=TRUE)) character(0) > try(system("convert tmp/3rj271322516025.ps tmp/3rj271322516025.png",intern=TRUE)) character(0) > try(system("convert tmp/4wd9e1322516025.ps tmp/4wd9e1322516025.png",intern=TRUE)) character(0) > try(system("convert tmp/5uobi1322516025.ps tmp/5uobi1322516025.png",intern=TRUE)) character(0) > try(system("convert tmp/6z3cl1322516025.ps tmp/6z3cl1322516025.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.378 0.280 1.671