R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(5.81,5.76,5.99,6.12,6.03,6.25,5.80,5.67,5.89,5.91,5.86,6.07,6.27,6.68,6.77,6.71,6.62,6.50,5.89,6.05,6.43,6.47,6.62,6.77,6.70,6.95,6.73,7.07,7.28,7.32,6.76,6.93,6.99,7.16,7.28,7.08,7.34,7.87,6.28,6.30,6.36,6.28,5.89,6.04,5.96,6.10,6.26,6.02,6.25,6.41,6.22,6.57,6.18,6.26,6.10,6.02,6.06,6.35,6.21,6.48,6.74,6.53,6.80,6.75,6.56,6.66,6.18,6.40,6.43,6.54,6.44,6.64,6.82,6.97,7.00,6.91,6.74,6.98,6.37,6.56,6.63,6.87,6.68,6.75,6.84,7.15,7.09,6.97,7.15) > 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] 89 > (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] 8 8 8 8 8 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.81 6.27 6.70 7.34 6.25 6.74 6.82 6.84 [2,] 5.76 6.68 6.95 7.87 6.41 6.53 6.97 7.15 [3,] 5.99 6.77 6.73 6.28 6.22 6.80 7.00 7.09 [4,] 6.12 6.71 7.07 6.30 6.57 6.75 6.91 6.97 [5,] 6.03 6.62 7.28 6.36 6.18 6.56 6.74 7.15 [6,] 6.25 6.50 7.32 6.28 6.26 6.66 6.98 NA [7,] 5.80 5.89 6.76 5.89 6.10 6.18 6.37 NA [8,] 5.67 6.05 6.93 6.04 6.02 6.40 6.56 NA [9,] 5.89 6.43 6.99 5.96 6.06 6.43 6.63 NA [10,] 5.91 6.47 7.16 6.10 6.35 6.54 6.87 NA [11,] 5.86 6.62 7.28 6.26 6.21 6.44 6.68 NA [12,] 6.07 6.77 7.08 6.02 6.48 6.64 6.75 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/rcomp/tmp/1qp5e1304956157.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/www/rcomp/tmp/2r5v51304956157.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/www/rcomp/tmp/3bl5i1304956157.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/www/rcomp/tmp/4x0vl1304956157.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,] 5.81 5.760 5.99 6.120 6.030 6.25 5.800 5.67 5.89 5.910 5.860 6.020 [2,] 6.26 6.470 6.25 6.435 6.270 6.27 5.890 6.03 6.01 6.225 6.235 6.275 [3,] 6.72 6.815 6.75 6.730 6.590 6.50 6.100 6.05 6.43 6.470 6.440 6.640 [4,] 6.83 7.060 6.90 6.940 6.945 6.82 6.275 6.48 6.53 6.705 6.650 6.760 [5,] 7.34 7.870 7.09 7.070 7.280 7.32 6.760 6.93 6.99 7.160 6.680 7.080 $n [1] 8 8 8 8 8 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.40159 6.485418 6.386901 6.4479 6.212935 6.171549 5.870084 5.781267 [2,] 7.03841 7.144582 7.113099 7.0121 6.967065 6.828451 6.329916 6.318733 [,9] [,10] [,11] [,12] [1,] 6.119464 6.183352 6.192169 6.350366 [2,] 6.740536 6.756648 6.687831 6.929634 $out [1] 7.28 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(5.81, 6.26, 6.72, 6.83, 7.34, 5.76, 6.47, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5ibs41304956157.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,] 5.670 5.890 6.700 5.89 6.020 6.180 6.370 6.84 [2,] 5.805 6.350 6.845 6.03 6.140 6.435 6.655 6.97 [3,] 5.900 6.560 7.030 6.27 6.235 6.550 6.785 7.09 [4,] 6.050 6.695 7.220 6.33 6.380 6.700 6.940 7.15 [5,] 6.250 6.770 7.320 6.36 6.570 6.800 7.000 7.15 $n [1] 12 12 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.788254 6.402643 6.85896 6.133168 6.125534 6.429132 6.65501 6.962812 [2,] 6.011746 6.717357 7.20104 6.406832 6.344466 6.670868 6.91499 7.217188 $out [1] 7.34 7.87 $group [1] 4 4 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(5.67, 5.805, 5.9, 6.05, 6.25, 5.89, 6.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6nrtd1304956157.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.3305407 0.950 0.38500 [2,] 0.3915010 1.065 0.43625 [3,] 0.4153175 1.175 0.50000 [4,] 0.4433038 1.340 0.53875 [5,] 0.4688264 1.530 0.58500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.3916899 1.049571 0.4532491 [2,] 0.4389451 1.300429 0.5467509 $out [1] 0.6140033 2.1100000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.330540682605247, 0.391501018420608, 0.415317522376527, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qp5e1304956157.ps tmp/1qp5e1304956157.png",intern=TRUE)) character(0) > try(system("convert tmp/2r5v51304956157.ps tmp/2r5v51304956157.png",intern=TRUE)) character(0) > try(system("convert tmp/3bl5i1304956157.ps tmp/3bl5i1304956157.png",intern=TRUE)) character(0) > try(system("convert tmp/4x0vl1304956157.ps tmp/4x0vl1304956157.png",intern=TRUE)) character(0) > try(system("convert tmp/5ibs41304956157.ps tmp/5ibs41304956157.png",intern=TRUE)) character(0) > try(system("convert tmp/6nrtd1304956157.ps tmp/6nrtd1304956157.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.430 0.950 2.354