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(98.1,98.0,98.3,98.5,98.7,99.3,99.5,99.8,100.3,99.3,99.6,99.3,99.4,99.7,100.0,99.3,100.3,100.8,101.4,101.1,100.6,99.5,99.1,98.8,99.1,98.8,98.5,99.0,99.0,100.6,101.0,101.8,101.8,101.8,101.8,102.4,103.0,103.3,103.6,104.1,104.5,105.6,105.9,106.0,106.3,107.3,107.1,107.3,107.7,108.0,108.9,108.5,109.0,108.9,109.0,108.9,110.3,109.4,108.6,108.0,108.4,108.0,108.0,107.6,107.5,107.9,108.0,107.5,106.8,106.7,107.2,107.8,106.6,106.3,105.7,105.9,106.5,107.2,108.3) > 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] 79 > (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 7 7 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 98.1 99.4 99.1 103.0 107.7 108.4 106.6 [2,] 98.0 99.7 98.8 103.3 108.0 108.0 106.3 [3,] 98.3 100.0 98.5 103.6 108.9 108.0 105.7 [4,] 98.5 99.3 99.0 104.1 108.5 107.6 105.9 [5,] 98.7 100.3 99.0 104.5 109.0 107.5 106.5 [6,] 99.3 100.8 100.6 105.6 108.9 107.9 107.2 [7,] 99.5 101.4 101.0 105.9 109.0 108.0 108.3 [8,] 99.8 101.1 101.8 106.0 108.9 107.5 NA [9,] 100.3 100.6 101.8 106.3 110.3 106.8 NA [10,] 99.3 99.5 101.8 107.3 109.4 106.7 NA [11,] 99.6 99.1 101.8 107.1 108.6 107.2 NA [12,] 99.3 98.8 102.4 107.3 108.0 107.8 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/1t0up1291558986.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/2t0up1291558986.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/3m9ua1291558986.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/4m9ua1291558986.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] [1,] 98.10 98.00 98.30 98.50 98.70 99.30 99.50 99.8 100.30 99.30 [2,] 99.25 99.25 99.25 99.15 99.65 100.70 101.20 101.1 100.60 99.50 [3,] 103.00 103.30 103.60 104.10 104.50 105.60 105.90 103.9 104.05 104.25 [4,] 107.15 107.15 106.85 106.75 107.00 107.55 108.15 107.5 106.80 107.30 [5,] 108.40 108.00 108.90 108.50 109.00 108.90 109.00 108.9 110.30 109.40 [,11] [,12] [1,] 99.10 98.80 [2,] 99.60 99.30 [3,] 104.45 104.85 [4,] 107.20 107.80 [5,] 108.60 108.00 $n [1] 7 7 7 7 7 7 7 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 98.28225 98.58225 99.0614 99.5614 100.1107 101.5093 101.7496 99.7718 [2,] 107.71775 108.01775 108.1386 108.6386 108.8893 109.6907 110.0504 108.0282 [,9] [,10] [,11] [,12] [1,] 100.0508 99.21875 99.54775 99.36723 [2,] 108.0492 109.28125 109.35225 110.33277 $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(98.1, 99.25, 103, 107.15, 108.4, 98, 99.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5fitd1291558986.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] [1,] 98.00 98.80 98.5 103.00 107.70 106.70 105.7 [2,] 98.40 99.35 99.0 103.85 108.25 107.35 106.1 [3,] 99.30 99.85 100.8 105.75 108.90 107.70 106.5 [4,] 99.55 100.70 101.8 106.70 109.00 108.00 106.9 [5,] 100.30 101.40 102.4 107.30 109.40 108.40 107.2 $n [1] 12 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 98.77548 99.23426 99.5229 104.4501 108.5579 107.4035 106.0223 [2,] 99.82452 100.46574 102.0771 107.0499 109.2421 107.9965 106.9777 $out [1] 110.3 108.3 $group [1] 5 7 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(98, 98.4, 99.3, 99.55, 100.3, 98.8, 99.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fitd1291558986.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,] 3.766917 9.1 6.8500 [2,] 4.020686 9.5 6.9000 [3,] 4.282626 10.0 7.2125 [4,] 4.356606 10.2 7.6000 [5,] 4.439005 10.6 7.9000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.129411 9.680725 6.893225 [2,] 4.435842 10.319275 7.531775 $out [1] 5.850 5.775 $group [1] 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(3.76691739578487, 4.02068567220804, 4.28262643429346, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1t0up1291558986.ps tmp/1t0up1291558986.png",intern=TRUE)) character(0) > try(system("convert tmp/2t0up1291558986.ps tmp/2t0up1291558986.png",intern=TRUE)) character(0) > try(system("convert tmp/3m9ua1291558986.ps tmp/3m9ua1291558986.png",intern=TRUE)) character(0) > try(system("convert tmp/4m9ua1291558986.ps tmp/4m9ua1291558986.png",intern=TRUE)) character(0) > try(system("convert tmp/5fitd1291558986.ps tmp/5fitd1291558986.png",intern=TRUE)) character(0) > try(system("convert tmp/6fitd1291558986.ps tmp/6fitd1291558986.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.037 0.823 2.692