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(2.12,2.13,2.14,2.15,2.15,2.16,2.17,2.17,2.18,2.17,2.17,2.18,2.17,2.18,2.18,2.18,2.17,2.17,2.18,2.17,2.18,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.19,2.19,2.19,2.2,2.2,2.21,2.21,2.21,2.2,2.21,2.2,2.21,2.21,2.22,2.22,2.23,2.24,2.24,2.25,2.25,2.32,2.36,2.37,2.37,2.37,2.38,2.38,2.41,2.42,2.43,2.44,2.44,2.44,2.43,2.43,2.43,2.42,2.42,2.42,2.42,2.42) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.12 2.17 2.17 2.18 2.21 2.24 2.43 NA [2,] 2.13 2.18 2.17 2.18 2.21 2.25 2.44 NA [3,] 2.14 2.18 2.17 2.18 2.21 2.25 2.44 NA [4,] 2.15 2.18 2.17 2.18 2.20 2.32 2.44 NA [5,] 2.15 2.17 2.17 2.18 2.21 2.36 2.43 NA [6,] 2.16 2.17 2.17 2.18 2.20 2.37 2.43 NA [7,] 2.17 2.18 2.18 2.18 2.21 2.37 2.43 NA [8,] 2.17 2.17 2.18 2.19 2.21 2.37 2.42 NA [9,] 2.18 2.18 2.18 2.19 2.22 2.38 2.42 NA [10,] 2.17 2.17 2.18 2.19 2.22 2.38 2.42 NA [11,] 2.17 2.17 2.18 2.20 2.23 2.41 2.42 NA [12,] 2.18 2.17 2.18 2.20 2.24 2.42 2.42 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/16e5f1262869053.ps",horizontal=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/28f421262869053.ps",horizontal=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/3q4f21262869053.ps",horizontal=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/4seba1262869053.ps",horizontal=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.120 2.130 2.140 2.150 2.150 2.160 2.17 2.170 2.18 2.170 2.170 2.17 [2,] 2.170 2.175 2.175 2.175 2.170 2.170 2.18 2.175 2.18 2.175 2.175 2.18 [3,] 2.180 2.180 2.180 2.180 2.180 2.180 2.18 2.190 2.19 2.190 2.200 2.20 [4,] 2.225 2.230 2.230 2.260 2.285 2.285 2.29 2.290 2.30 2.300 2.320 2.33 [5,] 2.240 2.250 2.250 2.320 2.430 2.430 2.43 2.420 2.42 2.420 2.420 2.42 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.147155 2.147155 2.147155 2.129239 2.111324 2.111324 2.114310 2.121324 [2,] 2.212845 2.212845 2.212845 2.230761 2.248676 2.248676 2.245690 2.258676 [,9] [,10] [,11] [,12] [1,] 2.118338 2.115352 2.113408 2.110422 [2,] 2.261662 2.264648 2.286592 2.289578 $out [1] 2.43 2.44 2.44 2.44 $group [1] 1 2 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.12, 2.17, 2.18, 2.225, 2.24, 2.13, 2.175, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ijm61262869053.ps",horizontal=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] [1,] 2.120 2.17 2.170 2.18 2.20 2.240 2.420 NA [2,] 2.145 2.17 2.170 2.18 2.21 2.285 2.420 NA [3,] 2.165 2.17 2.175 2.18 2.21 2.370 2.430 NA [4,] 2.170 2.18 2.180 2.19 2.22 2.380 2.435 NA [5,] 2.180 2.18 2.180 2.20 2.23 2.420 2.440 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.153597 2.165439 2.170439 2.175439 2.205439 2.32667 2.423158 NA [2,] 2.176403 2.174561 2.179561 2.184561 2.214561 2.41333 2.436842 NA $out [1] 2.24 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(2.12, 2.145, 2.165, 2.17, 2.18, 2.17, 2.17, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61odc1262869053.ps",horizontal=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.1009479 0.240 0.0550 [2,] 0.1033345 0.250 0.0700 [3,] 0.1064246 0.265 0.1150 [4,] 0.1107858 0.295 0.1225 [5,] 0.1126097 0.310 0.1500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1030260 0.2444752 0.0910544 [2,] 0.1098232 0.2855248 0.1389456 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.100947888489439, 0.103334460213354, 0.106424575879172, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/16e5f1262869053.ps tmp/16e5f1262869053.png",intern=TRUE)) character(0) > try(system("convert tmp/28f421262869053.ps tmp/28f421262869053.png",intern=TRUE)) character(0) > try(system("convert tmp/3q4f21262869053.ps tmp/3q4f21262869053.png",intern=TRUE)) character(0) > try(system("convert tmp/4seba1262869053.ps tmp/4seba1262869053.png",intern=TRUE)) character(0) > try(system("convert tmp/5ijm61262869053.ps tmp/5ijm61262869053.png",intern=TRUE)) character(0) > try(system("convert tmp/61odc1262869053.ps tmp/61odc1262869053.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.042 0.811 1.384