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(13.81,13.9,13.91,13.94,13.96,14.01,14.01,14.06,14.09,14.13,14.12,14.13,14.14,14.16,14.21,14.26,14.29,14.32,14.33,14.39,14.48,14.44,14.46,14.48,14.53,14.58,14.62,14.62,14.61,14.65,14.68,14.7,14.78,14.84,14.89,14.89,15.13,15.25,15.33,15.36,15.4,15.4,15.41,15.47,15.54,15.55,15.59,15.65,15.75,15.86,15.89,15.94,15.93,15.95,15.99,15.99,16.06,16.08,16.07,16.11,16.15,16.18,16.3,16.42,16.49,16.5,16.58,16.64,16.66,16.81,16.91,16.92,16.95,17.11,17.16,17.16,17.27,17.34,17.39,17.43,17.45,17.5,17.56,17.65) > 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,] 13.81 14.14 14.53 15.13 15.75 16.15 16.95 NA [2,] 13.90 14.16 14.58 15.25 15.86 16.18 17.11 NA [3,] 13.91 14.21 14.62 15.33 15.89 16.30 17.16 NA [4,] 13.94 14.26 14.62 15.36 15.94 16.42 17.16 NA [5,] 13.96 14.29 14.61 15.40 15.93 16.49 17.27 NA [6,] 14.01 14.32 14.65 15.40 15.95 16.50 17.34 NA [7,] 14.01 14.33 14.68 15.41 15.99 16.58 17.39 NA [8,] 14.06 14.39 14.70 15.47 15.99 16.64 17.43 NA [9,] 14.09 14.48 14.78 15.54 16.06 16.66 17.45 NA [10,] 14.13 14.44 14.84 15.55 16.08 16.81 17.50 NA [11,] 14.12 14.46 14.89 15.59 16.07 16.91 17.56 NA [12,] 14.13 14.48 14.89 15.65 16.11 16.92 17.65 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/1ebif1291210586.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/html/rcomp/tmp/2ebif1291210586.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/html/rcomp/tmp/3o3h01291210586.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/html/rcomp/tmp/4o3h01291210586.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] [1,] 13.810 13.90 13.910 13.94 13.96 14.010 14.010 14.060 14.09 14.130 14.120 [2,] 14.335 14.37 14.415 14.44 14.45 14.485 14.505 14.545 14.63 14.640 14.675 [3,] 15.130 15.25 15.330 15.36 15.40 15.400 15.410 15.470 15.54 15.550 15.590 [4,] 15.950 16.02 16.095 16.18 16.21 16.225 16.285 16.315 16.36 16.445 16.490 [5,] 16.950 17.11 17.160 17.16 17.27 17.340 17.390 17.430 17.45 17.500 17.560 [,12] [1,] 14.130 [2,] 14.685 [3,] 15.650 [4,] 16.515 [5,] 17.650 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14.16555 14.26465 14.32673 14.3209 14.34896 14.3609 14.34701 14.41298 [2,] 16.09445 16.23535 16.33327 16.3991 16.45104 16.4391 16.47299 16.52702 [,9] [,10] [,11] [,12] [1,] 14.50687 14.47208 14.50611 14.55715 [2,] 16.57313 16.62792 16.67389 16.74285 $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(13.81, 14.335, 15.13, 15.95, 16.95, 13.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5o3h01291210586.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,] 13.810 14.140 14.530 15.130 15.750 16.150 16.950 NA [2,] 13.925 14.235 14.615 15.345 15.910 16.360 17.160 NA [3,] 14.010 14.325 14.665 15.405 15.970 16.540 17.365 NA [4,] 14.105 14.450 14.810 15.545 16.065 16.735 17.475 NA [5,] 14.130 14.480 14.890 15.650 16.110 16.920 17.650 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 13.9279 14.22694 14.57606 15.31378 15.89930 16.36896 17.22133 NA [2,] 14.0921 14.42306 14.75394 15.49622 16.04070 16.71104 17.50867 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(13.81, 13.925, 14.01, 14.105, 14.13, 14.14, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6hug31291210586.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,] 1.138456 3.140 1.6150 [2,] 1.184828 3.235 1.7050 [3,] 1.220755 3.345 1.7500 [4,] 1.246127 3.375 1.7925 [5,] 1.295518 3.520 1.8300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.192796 3.281145 1.710091 [2,] 1.248714 3.408855 1.789909 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.13845551181456, 1.18482822430420, 1.22075491804114, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ebif1291210586.ps tmp/1ebif1291210586.png",intern=TRUE)) character(0) > try(system("convert tmp/2ebif1291210586.ps tmp/2ebif1291210586.png",intern=TRUE)) character(0) > try(system("convert tmp/3o3h01291210586.ps tmp/3o3h01291210586.png",intern=TRUE)) character(0) > try(system("convert tmp/4o3h01291210586.ps tmp/4o3h01291210586.png",intern=TRUE)) character(0) > try(system("convert tmp/5o3h01291210586.ps tmp/5o3h01291210586.png",intern=TRUE)) character(0) > try(system("convert tmp/6hug31291210586.ps tmp/6hug31291210586.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.085 0.874 3.112