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. 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(68.64,68.61,68.61,68.61,68.58,68.75,68.54,68.5,68.47,68.47,68.47,68.59,68.32,67.86,67.91,67.91,68.05,68.15,68.25,68.25,68.31,68.31,69.65,69.65,70.18,70.08,70.08,70.09,70.04,70.14,70.26,70.23,70.54,70.54,70.57,70.61,70.63,70.45,70.4,70.4,70.33,70.51,70.45,70.39,70.59,70.59,70.32,70.94,70.44,70.57,70.61,70.61,70.68,69.96,70.11,70.22,70.49,70.49,70.58,70.85,70.69,70.7,70.7,70.7,70.67,70.64,70.98,70.75,70.88,70.88,70.92,70.89,71.02,71.01,71.02) > 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] 75 > (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 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 68.64 68.32 70.18 70.63 70.44 70.69 71.02 [2,] 68.61 67.86 70.08 70.45 70.57 70.70 71.01 [3,] 68.61 67.91 70.08 70.40 70.61 70.70 71.02 [4,] 68.61 67.91 70.09 70.40 70.61 70.70 NA [5,] 68.58 68.05 70.04 70.33 70.68 70.67 NA [6,] 68.75 68.15 70.14 70.51 69.96 70.64 NA [7,] 68.54 68.25 70.26 70.45 70.11 70.98 NA [8,] 68.50 68.25 70.23 70.39 70.22 70.75 NA [9,] 68.47 68.31 70.54 70.59 70.49 70.88 NA [10,] 68.47 68.31 70.54 70.59 70.49 70.88 NA [11,] 68.47 69.65 70.57 70.32 70.58 70.92 NA [12,] 68.59 69.65 70.61 70.94 70.85 70.89 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/10m351210343517.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/24l2b1210343517.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/36kjn1210343517.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/4ab3q1210343517.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] [1,] 68.32 67.860 67.910 67.910 68.050 68.15 68.250 68.250 68.310 68.310 68.470 [2,] 69.41 69.345 69.345 68.610 68.580 68.75 68.540 68.500 68.470 68.470 69.650 [3,] 70.44 70.450 70.400 70.245 70.185 70.05 70.185 70.225 70.515 70.515 70.445 [4,] 70.66 70.635 70.655 70.610 70.670 70.51 70.450 70.390 70.590 70.590 70.580 [5,] 71.02 71.010 71.020 70.700 70.680 70.64 70.980 70.750 70.880 70.880 70.920 [,12] [1,] 68.59 [2,] 69.65 [3,] 70.73 [4,] 70.89 [5,] 70.94 $n [1] 7 7 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 69.69352 69.67963 69.61769 68.95494 68.83688 68.91474 68.95299 69.00589 [2,] 71.18648 71.22037 71.18231 71.53506 71.53312 71.18526 71.41701 71.44411 [,9] [,10] [,11] [,12] [1,] 69.14753 69.14753 69.84512 69.93016 [2,] 71.88247 71.88247 71.04488 71.52984 $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(68.32, 69.41, 70.44, 70.66, 71.02, 67.86, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xtar1210343517.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,] 68.470 67.860 70.040 70.320 69.96 70.640 71.010 [2,] 68.485 67.980 70.085 70.395 70.33 70.695 71.015 [3,] 68.585 68.250 70.205 70.450 70.53 70.725 71.020 [4,] 68.610 68.315 70.540 70.590 70.61 70.885 71.020 [5,] 68.750 68.320 70.610 70.630 70.85 70.980 71.020 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 68.52799 68.0972 69.99747 70.36106 70.40229 70.63834 71.01544 [2,] 68.64201 68.4028 70.41253 70.53894 70.65771 70.81166 71.02456 $out [1] 69.65 69.65 70.94 $group [1] 2 2 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(68.47, 68.485, 68.585, 68.61, 68.75, 67.86, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/69k4i1210343517.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.8977917 2.350 0.9900 [2,] 1.0376531 2.495 1.2700 [3,] 1.1176186 2.600 1.3925 [4,] 1.1672461 2.760 1.5900 [5,] 1.1889451 3.150 1.6400 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.058510 2.479132 1.246546 [2,] 1.176727 2.720868 1.538454 $out [1] 0.76 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.897791735315044, 1.03765312575284, 1.11761857758323, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/10m351210343517.ps tmp/10m351210343517.png") > system("convert tmp/24l2b1210343517.ps tmp/24l2b1210343517.png") > system("convert tmp/36kjn1210343517.ps tmp/36kjn1210343517.png") > system("convert tmp/4ab3q1210343517.ps tmp/4ab3q1210343517.png") > system("convert tmp/5xtar1210343517.ps tmp/5xtar1210343517.png") > system("convert tmp/69k4i1210343517.ps tmp/69k4i1210343517.png") > > > proc.time() user system elapsed 1.270 0.806 1.589