R version 2.6.2 (2008-02-08) Copyright (C) 2008 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. Natural language support but running in an English locale 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(1.12,1.12,1.12,1.13,1.13,1.13,1.14,1.14,1.14,1.14,1.14,1.15,1.15,1.17,1.17,1.18,1.18,1.18,1.18,1.18,1.18,1.19,1.19,1.19,1.19,1.19,1.2,1.21,1.21,1.21,1.21,1.21,1.23,1.24,1.24,1.24,1.27,1.28,1.29,1.29,1.3,1.31,1.31,1.31,1.32,1.32,1.33,1.33,1.34,1.35,1.36,1.37,1.37,1.37,1.37,1.37,1.38,1.38,1.39,1.39,1.39,1.41,1.42,1.42,1.42,1.43,1.43,1.44,1.46,1.46,1.47,1.47,1.47,1.48,1.49,1.49,1.5,1.5,1.51,1.52,1.53,1.53,1.53,1.54) > 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,] 1.12 1.15 1.19 1.27 1.34 1.39 1.47 NA [2,] 1.12 1.17 1.19 1.28 1.35 1.41 1.48 NA [3,] 1.12 1.17 1.20 1.29 1.36 1.42 1.49 NA [4,] 1.13 1.18 1.21 1.29 1.37 1.42 1.49 NA [5,] 1.13 1.18 1.21 1.30 1.37 1.42 1.50 NA [6,] 1.13 1.18 1.21 1.31 1.37 1.43 1.50 NA [7,] 1.14 1.18 1.21 1.31 1.37 1.43 1.51 NA [8,] 1.14 1.18 1.21 1.31 1.37 1.44 1.52 NA [9,] 1.14 1.18 1.23 1.32 1.38 1.46 1.53 NA [10,] 1.14 1.19 1.24 1.32 1.38 1.46 1.53 NA [11,] 1.14 1.19 1.24 1.33 1.39 1.47 1.53 NA [12,] 1.15 1.19 1.24 1.33 1.39 1.47 1.54 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/1nuxk1210783979.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/24fa71210783979.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/3stn61210783979.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/4ibds1210783979.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,] 1.120 1.12 1.120 1.130 1.130 1.130 1.140 1.140 1.140 1.140 1.140 1.150 [2,] 1.170 1.18 1.185 1.195 1.195 1.195 1.195 1.195 1.205 1.215 1.215 1.215 [3,] 1.270 1.28 1.290 1.290 1.300 1.310 1.310 1.310 1.320 1.320 1.330 1.330 [4,] 1.365 1.38 1.390 1.395 1.395 1.400 1.400 1.405 1.420 1.420 1.430 1.430 [5,] 1.470 1.48 1.490 1.490 1.500 1.500 1.510 1.520 1.530 1.530 1.530 1.540 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.153549 1.160563 1.167577 1.170563 1.180563 1.187577 1.187577 1.184591 [2,] 1.386451 1.399437 1.412423 1.409437 1.419437 1.432423 1.432423 1.435409 [,9] [,10] [,11] [,12] [1,] 1.191605 1.197577 1.201605 1.201605 [2,] 1.448395 1.442423 1.458395 1.458395 $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(1.12, 1.17, 1.27, 1.365, 1.47, 1.12, 1.18, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5o2tq1210783979.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,] 1.120 1.170 1.190 1.27 1.350 1.39 1.470 NA [2,] 1.125 1.175 1.205 1.29 1.365 1.42 1.490 NA [3,] 1.135 1.180 1.210 1.31 1.370 1.43 1.505 NA [4,] 1.140 1.185 1.235 1.32 1.380 1.46 1.530 NA [5,] 1.150 1.190 1.240 1.33 1.390 1.47 1.540 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.128158 1.175439 1.196317 1.296317 1.363158 1.411756 1.486756 NA [2,] 1.141842 1.184561 1.223683 1.323683 1.376842 1.448244 1.523244 NA $out [1] 1.15 1.34 $group [1] 2 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1.12, 1.125, 1.135, 1.14, 1.15, 1.17, 1.175, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/612tl1210783979.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.1306212 0.350 0.1950 [2,] 0.1347975 0.365 0.2000 [3,] 0.1375118 0.370 0.2050 [4,] 0.1442999 0.390 0.2125 [5,] 0.1457166 0.390 0.2150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1331777 0.3585973 0.1992987 [2,] 0.1418459 0.3814027 0.2107013 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.130621226306848, 0.134797548363845, 0.137511795240343, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1nuxk1210783979.ps tmp/1nuxk1210783979.png") > system("convert tmp/24fa71210783979.ps tmp/24fa71210783979.png") > system("convert tmp/3stn61210783979.ps tmp/3stn61210783979.png") > system("convert tmp/4ibds1210783979.ps tmp/4ibds1210783979.png") > system("convert tmp/5o2tq1210783979.ps tmp/5o2tq1210783979.png") > system("convert tmp/612tl1210783979.ps tmp/612tl1210783979.png") > > > proc.time() user system elapsed 2.376 1.376 2.591