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(105.86,105.86,105.86,105.86,105.86,105.86,108.42,108.42,108.42,108.42,108.42,108.42,108.42,108.42,108.42,108.42,108.84,108.84,108.84,108.84,108.84,108.84,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,110.51,112.43,112.43,112.43,112.43,112.43,113.68,113.68,113.68,113.68,113.68) > 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] 46 > (np <- floor(n / par1)) [1] 3 > 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] 4 4 4 4 4 4 4 4 4 4 3 3 > arr [,1] [,2] [,3] [,4] [1,] 105.86 108.42 110.51 112.43 [2,] 105.86 108.42 110.51 112.43 [3,] 105.86 108.42 110.51 112.43 [4,] 105.86 108.42 110.51 112.43 [5,] 105.86 108.84 110.51 112.43 [6,] 105.86 108.84 110.51 113.68 [7,] 108.42 108.84 110.51 113.68 [8,] 108.42 108.84 110.51 113.68 [9,] 108.42 108.84 110.51 113.68 [10,] 108.42 108.84 110.51 113.68 [11,] 108.42 110.51 110.51 NA [12,] 108.42 110.51 110.51 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/1eak81257930633.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/2ttsk1257930633.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/3clks1257930633.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/4b7qy1257930633.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] [1,] 105.860 105.860 105.860 105.860 105.860 105.860 108.420 108.420 108.420 [2,] 107.140 107.140 107.140 107.140 107.350 107.350 108.630 108.630 108.630 [3,] 109.465 109.465 109.465 109.465 109.675 109.675 109.675 109.675 109.675 [4,] 111.470 111.470 111.470 111.470 111.470 112.095 112.095 112.095 112.095 [5,] 112.430 112.430 112.430 112.430 112.430 113.680 113.680 113.680 113.680 [,10] [,11] [,12] [1,] 108.420 108.420 108.420 [2,] 108.630 109.465 109.465 [3,] 109.675 110.510 110.510 [4,] 112.095 110.510 110.510 [5,] 113.680 110.510 110.510 $n [1] 4 4 4 4 4 4 4 4 4 4 3 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 106.0443 106.0443 106.0443 106.0443 106.4202 105.9265 106.9377 106.9377 [2,] 112.8857 112.8857 112.8857 112.8857 112.9298 113.4236 112.4124 112.4124 [,9] [,10] [,11] [,12] [1,] 106.9377 106.9377 109.5567 109.5567 [2,] 112.4124 112.4124 111.4633 111.4633 $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(105.86, 107.14, 109.465, 111.47, 112.43, 105.86, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59vhh1257930633.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] [1,] 105.86 108.42 110.51 112.430 [2,] 105.86 108.42 110.51 112.430 [3,] 107.14 108.84 110.51 113.055 [4,] 108.42 108.84 110.51 113.680 [5,] 108.42 108.84 110.51 113.680 $n [1] 12 12 12 10 $conf [,1] [,2] [,3] [,4] [1,] 105.9724 108.6484 110.51 112.4305 [2,] 108.3076 109.0316 110.51 113.6795 $out [1] 110.51 110.51 $group [1] 2 2 $names [1] "1" "2" "3" NA Warning message: In bxp(list(stats = c(105.86, 105.86, 107.14, 108.42, 108.42, 108.42, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63wmw1257930633.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,] 2.388785 5.260 2.56750 [2,] 2.388785 5.260 2.56750 [3,] 2.586567 5.915 2.73125 [4,] 2.820691 6.570 3.21000 [5,] 3.264949 7.820 3.21000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.389571 5.3175 2.438201 [2,] 2.783562 6.5125 3.024299 $out [1] 1.206662 1.206662 2.090000 2.090000 1.045000 1.045000 $group [1] 1 1 2 2 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.38878455844529, 2.38878455844529, 2.5865668372433, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1eak81257930633.ps tmp/1eak81257930633.png") > system("convert tmp/2ttsk1257930633.ps tmp/2ttsk1257930633.png") > system("convert tmp/3clks1257930633.ps tmp/3clks1257930633.png") > system("convert tmp/4b7qy1257930633.ps tmp/4b7qy1257930633.png") > system("convert tmp/59vhh1257930633.ps tmp/59vhh1257930633.png") > system("convert tmp/63wmw1257930633.ps tmp/63wmw1257930633.png") > > > proc.time() user system elapsed 1.017 0.788 1.717