R version 2.7.0 (2008-04-22) 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(0.31,0.32,0.31,0.32,0.31,0.91,0.68,0.48,0.43,0.39,0.44,0.5,0.56,0.59,0.6,0.59,0.59,0.78,0.64,0.47,0.4,0.36,0.36,0.36,0.36,0.35,0.35,0.35,0.33,0.78,0.71,0.62,0.52,0.46,0.43,0.43,0.42,0.42,0.42,0.42,0.43,0.99,1.03,0.83,0.64,0.6,0.58,0.58,0.58,0.57,0.57,0.56,0.56,0.88,0.84,0.69,0.59,0.54,0.52,0.52,0.51,0.52,0.51,0.51,0.53,0.95,0.98,0.88,0.81,0.77,0.76,0.75,0.73,0.74,0.73,0.75,0.77,1.09,1.03,0.9,0.76,0.66,0.63,0.61,0.61,0.61,0.61,0.61,0.62,0.76,0.83,0.81,0.77,0.75,0.76,0.76) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.31 0.56 0.36 0.42 0.58 0.51 0.73 0.61 NA [2,] 0.32 0.59 0.35 0.42 0.57 0.52 0.74 0.61 NA [3,] 0.31 0.60 0.35 0.42 0.57 0.51 0.73 0.61 NA [4,] 0.32 0.59 0.35 0.42 0.56 0.51 0.75 0.61 NA [5,] 0.31 0.59 0.33 0.43 0.56 0.53 0.77 0.62 NA [6,] 0.91 0.78 0.78 0.99 0.88 0.95 1.09 0.76 NA [7,] 0.68 0.64 0.71 1.03 0.84 0.98 1.03 0.83 NA [8,] 0.48 0.47 0.62 0.83 0.69 0.88 0.90 0.81 NA [9,] 0.43 0.40 0.52 0.64 0.59 0.81 0.76 0.77 NA [10,] 0.39 0.36 0.46 0.60 0.54 0.77 0.66 0.75 NA [11,] 0.44 0.36 0.43 0.58 0.52 0.76 0.63 0.76 NA [12,] 0.50 0.36 0.43 0.58 0.52 0.75 0.61 0.76 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/1hsc41218471360.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/2uuv81218471360.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/32tua1218471360.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/474zb1218471360.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,] 0.310 0.320 0.310 0.320 0.310 0.760 0.640 0.470 0.400 0.360 0.360 0.360 [2,] 0.390 0.385 0.385 0.385 0.380 0.780 0.695 0.550 0.475 0.425 0.435 0.465 [3,] 0.535 0.545 0.540 0.535 0.545 0.895 0.835 0.750 0.615 0.570 0.550 0.550 [4,] 0.595 0.600 0.605 0.600 0.605 0.970 1.005 0.855 0.765 0.705 0.695 0.680 [5,] 0.730 0.740 0.730 0.750 0.770 1.090 1.030 0.900 0.810 0.770 0.760 0.760 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.4204841 0.4248979 0.4171048 0.4148979 0.4193118 0.7888633 0.6618295 [2,] 0.6495159 0.6651021 0.6628952 0.6551021 0.6706882 1.0011367 1.0081705 [,8] [,9] [,10] [,11] [,12] [1,] 0.5796226 0.4530018 0.413588 0.4047603 0.4298979 [2,] 0.9203774 0.7769982 0.726412 0.6952397 0.6701021 $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(0.31, 0.39, 0.535, 0.595, 0.73, 0.32, 0.385, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5s59t1218471360.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] [,9] [1,] 0.310 0.360 0.33 0.420 0.52 0.510 0.610 0.610 NA [2,] 0.315 0.380 0.35 0.420 0.55 0.515 0.695 0.610 NA [3,] 0.410 0.575 0.43 0.580 0.57 0.755 0.745 0.755 NA [4,] 0.490 0.595 0.57 0.735 0.64 0.845 0.835 0.765 NA [5,] 0.680 0.780 0.78 1.030 0.69 0.980 1.030 0.830 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3301813 0.4769371 0.3296565 0.4363264 0.5289504 0.6044848 0.681145 [2,] 0.4898187 0.6730629 0.5303435 0.7236736 0.6110496 0.9055152 0.808855 [,8] [,9] [1,] 0.6843035 NA [2,] 0.8256965 NA $out [1] 0.91 0.88 0.84 1.09 $group [1] 1 5 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.31, 0.315, 0.41, 0.49, 0.68, 0.36, 0.38, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/669rt1218471360.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.1395912 0.390 0.16250 [2,] 0.1423239 0.400 0.18750 [3,] 0.1474228 0.415 0.19625 [4,] 0.1568851 0.425 0.24875 [5,] 0.1725440 0.460 0.29000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1407814 0.4035973 0.1683135 [2,] 0.1540643 0.4264027 0.2241865 $out [1] 0.1165884 0.3300000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.139591240003498, 0.142323878074471, 0.147422845922012, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1hsc41218471360.ps tmp/1hsc41218471360.png") > system("convert tmp/2uuv81218471360.ps tmp/2uuv81218471360.png") > system("convert tmp/32tua1218471360.ps tmp/32tua1218471360.png") > system("convert tmp/474zb1218471360.ps tmp/474zb1218471360.png") > system("convert tmp/5s59t1218471360.ps tmp/5s59t1218471360.png") > system("convert tmp/669rt1218471360.ps tmp/669rt1218471360.png") > > > proc.time() user system elapsed 2.301 1.347 2.532