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(8.2,8.21,8.22,8.2,8.18,8.2,8.19,8.24,8.31,8.27,8.36,8.32,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) > 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] 77 > (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] 7 7 7 7 7 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8.20 8.29 8.39 7.89 7.95 8.04 8.16 [2,] 8.21 8.27 8.53 7.83 8.07 8.13 8.32 [3,] 8.22 8.27 8.52 7.85 8.17 8.14 8.43 [4,] 8.20 8.43 8.54 7.84 8.21 8.17 8.39 [5,] 8.18 8.46 8.62 7.88 8.20 8.25 8.41 [6,] 8.20 8.48 8.52 8.01 8.19 8.27 NA [7,] 8.19 8.46 8.49 8.08 8.18 8.27 NA [8,] 8.24 8.46 8.44 8.11 8.16 8.26 NA [9,] 8.31 8.43 8.31 8.11 8.17 8.24 NA [10,] 8.27 8.40 8.26 8.07 8.17 8.21 NA [11,] 8.36 8.38 8.21 8.06 8.19 8.25 NA [12,] 8.32 8.30 8.03 7.95 8.01 8.06 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/1ajrh1264436187.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/204dz1264436187.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/3tsbb1264436187.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/41vh31264436187.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,] 7.890 7.830 8.140 8.170 7.880 8.010 8.08 8.11 8.110 8.070 8.06 7.950 [2,] 7.995 8.100 8.155 8.185 8.190 8.190 8.18 8.16 8.170 8.170 8.19 8.010 [3,] 8.160 8.210 8.220 8.210 8.250 8.235 8.23 8.25 8.275 8.235 8.23 8.045 [4,] 8.245 8.295 8.350 8.410 8.435 8.480 8.46 8.44 8.310 8.270 8.36 8.300 [5,] 8.390 8.530 8.520 8.540 8.620 8.520 8.49 8.46 8.430 8.400 8.38 8.320 $n [1] 7 7 7 7 7 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 8.010704 8.093549 8.103549 8.075634 8.10369 8.04794 8.049391 8.069391 [2,] 8.309296 8.326451 8.336451 8.344366 8.39631 8.42206 8.410609 8.430609 [,9] [,10] [,11] [,12] [1,] 8.184695 8.170497 8.120345 7.85794 [2,] 8.365305 8.299503 8.339655 8.23206 $out [1] 7.85 7.84 $group [1] 3 4 $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.245, 8.39, 7.83, 8.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wkft1264436187.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] [1,] 8.180 8.270 8.030 7.830 8.010 8.040 8.32 [2,] 8.200 8.295 8.285 7.865 8.115 8.135 8.32 [3,] 8.215 8.415 8.465 7.980 8.170 8.225 8.39 [4,] 8.290 8.460 8.525 8.075 8.190 8.255 8.41 [5,] 8.360 8.480 8.620 8.110 8.210 8.270 8.43 $n [1] 12 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8.17395 8.339742 8.355534 7.884218 8.135792 8.170267 8.326406 [2,] 8.25605 8.490258 8.574466 8.075782 8.204208 8.279733 8.453594 $out [1] 7.95 8.16 $group [1] 5 7 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(8.18, 8.2, 8.215, 8.29, 8.36, 8.27, 8.295, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6jl621264436187.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.1104536 0.320 0.08750 [2,] 0.1309736 0.340 0.16625 [3,] 0.1726815 0.455 0.22000 [4,] 0.2176861 0.685 0.23250 [5,] 0.2387368 0.740 0.25000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1331314 0.2976432 0.1897829 [2,] 0.2122317 0.6123568 0.2502171 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.110453610171873, 0.130973613137129, 0.172681529046837, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ajrh1264436187.ps tmp/1ajrh1264436187.png",intern=TRUE)) character(0) > try(system("convert tmp/204dz1264436187.ps tmp/204dz1264436187.png",intern=TRUE)) character(0) > try(system("convert tmp/3tsbb1264436187.ps tmp/3tsbb1264436187.png",intern=TRUE)) character(0) > try(system("convert tmp/41vh31264436187.ps tmp/41vh31264436187.png",intern=TRUE)) character(0) > try(system("convert tmp/5wkft1264436187.ps tmp/5wkft1264436187.png",intern=TRUE)) character(0) > try(system("convert tmp/6jl621264436187.ps tmp/6jl621264436187.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.054 0.818 2.641