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(8.29,8.27,8.27,8.43,8.46,8.48,8.46,8.46,8.43,8.4,8.38,8.3,8.39,8.53,8.52,8.54,8.62,8.52,8.49,8.44,8.31,8.26,8.21,8.03,7.89,7.83,7.85,7.84,7.88,8.01,8.08,8.11,8.11,8.07,8.06,7.95,7.95,8.07,8.17,8.21,8.2,8.19,8.18,8.16,8.17,8.17,8.19,8.01,8.04,8.13,8.14,8.17,8.25,8.27,8.27,8.26,8.24,8.21,8.25,8.06,8.16,8.32,8.43,8.39,8.41,8.45,8.43,8.52,8.52,8.51,8.56,8.36,8.4,8.44,8.5,8.31,8.38,8.45,8.42,8.46,8.45,8.32,8.4,8.18) > 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,] 8.29 8.39 7.89 7.95 8.04 8.16 8.40 NA [2,] 8.27 8.53 7.83 8.07 8.13 8.32 8.44 NA [3,] 8.27 8.52 7.85 8.17 8.14 8.43 8.50 NA [4,] 8.43 8.54 7.84 8.21 8.17 8.39 8.31 NA [5,] 8.46 8.62 7.88 8.20 8.25 8.41 8.38 NA [6,] 8.48 8.52 8.01 8.19 8.27 8.45 8.45 NA [7,] 8.46 8.49 8.08 8.18 8.27 8.43 8.42 NA [8,] 8.46 8.44 8.11 8.16 8.26 8.52 8.46 NA [9,] 8.43 8.31 8.11 8.17 8.24 8.52 8.45 NA [10,] 8.40 8.26 8.07 8.17 8.21 8.51 8.32 NA [11,] 8.38 8.21 8.06 8.19 8.25 8.56 8.40 NA [12,] 8.30 8.03 7.95 8.01 8.06 8.36 8.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/130211322648878.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/26wji1322648878.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/3h53g1322648878.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/4ai8l1322648878.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,] 7.890 7.83 7.850 8.17 8.200 8.010 8.080 8.11 8.110 8.07 8.06 7.95 [2,] 7.995 8.10 8.155 8.19 8.225 8.230 8.225 8.21 8.205 8.19 8.20 8.02 [3,] 8.160 8.27 8.270 8.31 8.380 8.450 8.420 8.44 8.310 8.26 8.25 8.06 [4,] 8.340 8.38 8.465 8.41 8.435 8.465 8.445 8.46 8.440 8.36 8.39 8.24 [5,] 8.400 8.53 8.520 8.54 8.620 8.520 8.490 8.52 8.520 8.51 8.56 8.36 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.953972 8.102789 8.084873 8.17862 8.254591 8.309662 8.28862 8.290704 [2,] 8.366028 8.437211 8.455127 8.44138 8.505409 8.590338 8.55138 8.589296 [,9] [,10] [,11] [,12] [1,] 8.169662 8.158479 8.136535 7.92862 [2,] 8.450338 8.361521 8.363465 8.19138 $out [1] 7.84 7.88 $group [1] 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(7.89, 7.995, 8.16, 8.34, 8.4, 7.83, 8.1, 8.27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/58bug1322648878.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] [,8] [1,] 8.270 8.030 7.830 8.010 8.040 8.320 8.31 NA [2,] 8.295 8.285 7.865 8.115 8.135 8.375 8.35 NA [3,] 8.415 8.465 7.980 8.170 8.225 8.430 8.41 NA [4,] 8.460 8.525 8.075 8.190 8.255 8.515 8.45 NA [5,] 8.480 8.620 8.110 8.210 8.270 8.560 8.50 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 8.339742 8.355534 7.884218 8.135792 8.170267 8.366145 8.364389 NA [2,] 8.490258 8.574466 8.075782 8.204208 8.279733 8.493855 8.455611 NA $out [1] 7.95 8.16 8.18 $group [1] 4 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(8.27, 8.295, 8.415, 8.46, 8.48, 8.03, 8.285, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6yl861322648878.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.1473900 0.410 0.1700 [2,] 0.1568112 0.410 0.2150 [3,] 0.1767430 0.505 0.2275 [4,] 0.2321640 0.685 0.2650 [5,] 0.2395432 0.740 0.3100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1423741 0.3795707 0.2046947 [2,] 0.2111119 0.6304293 0.2503053 $out [1] 0.345 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.147389991260633, 0.156811202455174, 0.176742994431416, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/130211322648878.ps tmp/130211322648878.png",intern=TRUE)) character(0) > try(system("convert tmp/26wji1322648878.ps tmp/26wji1322648878.png",intern=TRUE)) character(0) > try(system("convert tmp/3h53g1322648878.ps tmp/3h53g1322648878.png",intern=TRUE)) character(0) > try(system("convert tmp/4ai8l1322648878.ps tmp/4ai8l1322648878.png",intern=TRUE)) character(0) > try(system("convert tmp/58bug1322648878.ps tmp/58bug1322648878.png",intern=TRUE)) character(0) > try(system("convert tmp/6yl861322648878.ps tmp/6yl861322648878.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.380 0.304 2.138