R version 2.6.2 (2008-02-08) 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.33,0.35,0.35,0.34,0.37,0.38,0.39,0.37,0.37,0.37,0.37,0.38,0.36,0.36,0.36,0.36,0.38,0.37,0.39,0.39,0.4,0.42,0.42,0.4,0.36,0.36,0.36,0.36,0.35,0.38,0.4,0.39,0.39,0.39,0.36,0.35,0.35,0.33,0.33,0.32,0.36,0.37,0.38,0.38,0.38,0.38,0.39,0.4,0.38,0.41,0.41,0.43,0.42,0.41,0.41,0.43,0.44,0.46,0.44,0.43,0.43,0.42,0.42,0.42,0.43,0.44,0.45,0.44,0.47,0.48,0.48,0.45,0.44,0.44,0.45,0.46,0.45,0.46,0.47,0.48,0.48,0.46,0.47,0.47,0.43,0.41,0.39,0.41,0.44,0.45,0.45,0.46,0.45,0.45,0.46,0.46) > 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.33 0.36 0.36 0.35 0.38 0.43 0.44 0.43 NA [2,] 0.35 0.36 0.36 0.33 0.41 0.42 0.44 0.41 NA [3,] 0.35 0.36 0.36 0.33 0.41 0.42 0.45 0.39 NA [4,] 0.34 0.36 0.36 0.32 0.43 0.42 0.46 0.41 NA [5,] 0.37 0.38 0.35 0.36 0.42 0.43 0.45 0.44 NA [6,] 0.38 0.37 0.38 0.37 0.41 0.44 0.46 0.45 NA [7,] 0.39 0.39 0.40 0.38 0.41 0.45 0.47 0.45 NA [8,] 0.37 0.39 0.39 0.38 0.43 0.44 0.48 0.46 NA [9,] 0.37 0.40 0.39 0.38 0.44 0.47 0.48 0.45 NA [10,] 0.37 0.42 0.39 0.38 0.46 0.48 0.46 0.45 NA [11,] 0.37 0.42 0.36 0.39 0.44 0.48 0.47 0.46 NA [12,] 0.38 0.40 0.35 0.40 0.43 0.45 0.47 0.46 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/freestat/rcomp/tmp/1g4ju1210615028.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/freestat/rcomp/tmp/2vzz91210615028.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/freestat/rcomp/tmp/32qc11210615028.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/freestat/rcomp/tmp/4gfy61210615028.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.330 0.330 0.330 0.320 0.350 0.370 0.380 0.370 0.370 0.370 0.360 0.350 [2,] 0.355 0.355 0.355 0.350 0.365 0.375 0.390 0.385 0.385 0.385 0.380 0.390 [3,] 0.370 0.385 0.375 0.385 0.400 0.395 0.405 0.410 0.420 0.435 0.430 0.415 [4,] 0.430 0.415 0.415 0.425 0.435 0.445 0.450 0.450 0.460 0.460 0.465 0.455 [5,] 0.440 0.440 0.450 0.460 0.450 0.460 0.470 0.480 0.480 0.480 0.480 0.470 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3281039 0.3514831 0.3414831 0.3431039 0.360897 0.355897 0.3714831 [2,] 0.4118961 0.4185169 0.4085169 0.4268961 0.439103 0.434103 0.4385169 [,8] [,9] [,10] [,11] [,12] [1,] 0.3736901 0.3781039 0.3931039 0.3825178 0.3786901 [2,] 0.4463099 0.4618961 0.4768961 0.4774822 0.4513099 $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.33, 0.355, 0.37, 0.43, 0.44, 0.33, 0.355, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/58kla1210615028.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.330 0.360 0.35 0.320 0.380 0.420 0.44 0.390 NA [2,] 0.350 0.360 0.36 0.340 0.410 0.425 0.45 0.420 NA [3,] 0.370 0.385 0.36 0.375 0.425 0.440 0.46 0.450 NA [4,] 0.375 0.400 0.39 0.380 0.435 0.460 0.47 0.455 NA [5,] 0.390 0.420 0.40 0.400 0.460 0.480 0.48 0.460 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3585973 0.3667557 0.3463168 0.3567557 0.4135973 0.4240363 0.4508779 [2,] 0.3814027 0.4032443 0.3736832 0.3932443 0.4364027 0.4559637 0.4691221 [,8] [,9] [1,] 0.4340363 NA [2,] 0.4659637 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.33, 0.35, 0.37, 0.375, 0.39, 0.36, 0.36, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6dyyh1210615028.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.03770184 0.090 0.0550 [2,] 0.03946023 0.105 0.0575 [3,] 0.04134474 0.110 0.0650 [4,] 0.04255230 0.120 0.0700 [5,] 0.04627171 0.140 0.0775 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.03993443 0.1031584 0.05929867 [2,] 0.04275505 0.1168416 0.07070133 $out [1] 0.04920801 0.03412163 $group [1] 1 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0377018377725619, 0.0394602343005416, 0.0413447408393211, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1g4ju1210615028.ps tmp/1g4ju1210615028.png") > system("convert tmp/2vzz91210615028.ps tmp/2vzz91210615028.png") > system("convert tmp/32qc11210615028.ps tmp/32qc11210615028.png") > system("convert tmp/4gfy61210615028.ps tmp/4gfy61210615028.png") > system("convert tmp/58kla1210615028.ps tmp/58kla1210615028.png") > system("convert tmp/6dyyh1210615028.ps tmp/6dyyh1210615028.png") > > > proc.time() user system elapsed 1.838 1.183 1.996