R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(5.51,5.54,5.56,5.57,5.57,5.58,5.56,5.57,5.57,5.6,5.61,5.63,5.65,5.71,5.78,5.8,5.8,5.8,5.81,5.84,5.83,5.86,5.88,5.88,5.89,5.91,5.91,5.95,5.92,5.92,5.91,5.95,6.01,6.07,6.08,6.1,6.11,6.13,6.21,6.19,6.17,6.17,6.19,6.21,6.32,6.36,6.36,6.38,6.36,6.42,6.42,6.44,6.41,6.42,6.43,6.44,6.43,6.43,6.45,6.45) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5.51 5.65 5.89 6.11 6.36 NA [2,] 5.54 5.71 5.91 6.13 6.42 NA [3,] 5.56 5.78 5.91 6.21 6.42 NA [4,] 5.57 5.80 5.95 6.19 6.44 NA [5,] 5.57 5.80 5.92 6.17 6.41 NA [6,] 5.58 5.80 5.92 6.17 6.42 NA [7,] 5.56 5.81 5.91 6.19 6.43 NA [8,] 5.57 5.84 5.95 6.21 6.44 NA [9,] 5.57 5.83 6.01 6.32 6.43 NA [10,] 5.60 5.86 6.07 6.36 6.43 NA [11,] 5.61 5.88 6.08 6.36 6.45 NA [12,] 5.63 5.88 6.10 6.38 6.45 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/rcomp/tmp/1s3521322836204.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/rcomp/tmp/2ybvr1322836204.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/rcomp/tmp/3dmc21322836204.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/rcomp/tmp/421tt1322836204.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] [,12] [1,] 5.51 5.54 5.56 5.57 5.57 5.58 5.56 5.57 5.57 5.60 5.61 5.63 [2,] 5.65 5.71 5.78 5.80 5.80 5.80 5.81 5.84 5.83 5.86 5.88 5.88 [3,] 5.89 5.91 5.91 5.95 5.92 5.92 5.91 5.95 6.01 6.07 6.08 6.10 [4,] 6.11 6.13 6.21 6.19 6.17 6.17 6.19 6.21 6.32 6.36 6.36 6.38 [5,] 6.36 6.42 6.42 6.44 6.41 6.42 6.43 6.44 6.43 6.43 6.45 6.45 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.564965 5.613229 5.606163 5.674427 5.658559 5.658559 5.641493 5.688559 [2,] 6.215035 6.206771 6.213837 6.225573 6.181441 6.181441 6.178507 6.211441 [,9] [,10] [,11] [,12] [1,] 5.663767 5.716701 5.740833 5.746701 [2,] 6.356233 6.423299 6.419167 6.453299 $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(5.51, 5.65, 5.89, 6.11, 6.36, 5.54, 5.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5eant1322836204.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] [1,] 5.54 5.710 5.890 6.11 6.41 NA [2,] 5.56 5.790 5.910 6.17 6.42 NA [3,] 5.57 5.805 5.935 6.20 6.43 NA [4,] 5.59 5.850 6.040 6.34 6.44 NA [5,] 5.63 5.880 6.100 6.38 6.45 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5.556317 5.777634 5.875706 6.122462 6.420878 NA [2,] 5.583683 5.832366 5.994294 6.277538 6.439122 NA $out [1] 5.51 5.65 6.36 $group [1] 1 2 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(5.54, 5.56, 5.57, 5.59, 5.63, 5.71, 5.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6mdgm1322836204.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,] 0.3259294 0.820 0.370 [2,] 0.3367622 0.840 0.375 [3,] 0.3422717 0.855 0.425 [4,] 0.3454415 0.870 0.485 [5,] 0.3521647 0.880 0.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.3383130 0.8413168 0.3748283 [2,] 0.3462303 0.8686832 0.4751717 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.325929440216744, 0.336762220064186, 0.342271670918766, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1s3521322836204.ps tmp/1s3521322836204.png",intern=TRUE)) character(0) > try(system("convert tmp/2ybvr1322836204.ps tmp/2ybvr1322836204.png",intern=TRUE)) character(0) > try(system("convert tmp/3dmc21322836204.ps tmp/3dmc21322836204.png",intern=TRUE)) character(0) > try(system("convert tmp/421tt1322836204.ps tmp/421tt1322836204.png",intern=TRUE)) character(0) > try(system("convert tmp/5eant1322836204.ps tmp/5eant1322836204.png",intern=TRUE)) character(0) > try(system("convert tmp/6mdgm1322836204.ps tmp/6mdgm1322836204.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.728 0.384 2.178