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(2.05,2.11,2.09,2.05,2.08,2.06,2.06,2.08,2.07,2.06,2.07,2.06,2.09,2.07,2.09,2.28,2.33,2.35,2.52,2.63,2.58,2.70,2.81,2.97,3.04,3.28,3.33,3.50,3.56,3.57,3.69,3.82,3.79,3.96,4.06,4.05,4.03,3.94,4.02,3.88,4.02,4.03,4.09,3.99,4.01,4.01,4.19,4.30,4.27,3.82,3.15,2.49,1.81,1.26,1.06,0.84,0.78,0.70,0.36,0.35) > 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,] 2.05 2.09 3.04 4.03 4.27 NA [2,] 2.11 2.07 3.28 3.94 3.82 NA [3,] 2.09 2.09 3.33 4.02 3.15 NA [4,] 2.05 2.28 3.50 3.88 2.49 NA [5,] 2.08 2.33 3.56 4.02 1.81 NA [6,] 2.06 2.35 3.57 4.03 1.26 NA [7,] 2.06 2.52 3.69 4.09 1.06 NA [8,] 2.08 2.63 3.82 3.99 0.84 NA [9,] 2.07 2.58 3.79 4.01 0.78 NA [10,] 2.06 2.70 3.96 4.01 0.70 NA [11,] 2.07 2.81 4.06 4.19 0.36 NA [12,] 2.06 2.97 4.05 4.30 0.35 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/1chaq1258142727.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/2rs3l1258142727.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/3m1cd1258142728.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/434421258142728.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,] 2.05 2.07 2.09 2.05 1.81 1.26 1.06 0.84 0.78 0.70 0.36 0.35 [2,] 2.09 2.11 2.09 2.28 2.08 2.06 2.06 2.08 2.07 2.06 2.07 2.06 [3,] 3.04 3.28 3.15 2.49 2.33 2.35 2.52 2.63 2.58 2.70 2.81 2.97 [4,] 4.03 3.82 3.33 3.50 3.56 3.57 3.69 3.82 3.79 3.96 4.06 4.05 [5,] 4.27 3.94 4.02 3.88 4.02 4.03 4.09 3.99 4.01 4.01 4.19 4.30 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.669201 2.071718 2.273819 1.627951 1.284236 1.283038 1.368246 1.400520 [2,] 4.410799 4.488282 4.026181 3.352049 3.375764 3.416962 3.671754 3.859480 [,9] [,10] [,11] [,12] [1,] 1.364652 1.357465 1.403871 1.563871 [2,] 3.795348 4.042535 4.216129 4.376129 $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(2.05, 2.09, 3.04, 4.03, 4.27, 2.07, 2.11, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5qhqb1258142728.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] [1,] 2.050 2.070 3.040 3.94 0.35 NA [2,] 2.060 2.185 3.415 4.00 0.74 NA [3,] 2.065 2.435 3.630 4.02 1.16 NA [4,] 2.080 2.665 3.890 4.06 2.82 NA [5,] 2.110 2.970 4.060 4.09 4.27 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.055878 2.216069 3.413349 3.992634 0.2112980 NA [2,] 2.074122 2.653931 3.846651 4.047366 2.1087020 NA $out [1] 3.88 4.19 4.30 $group [1] 4 4 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(2.05, 2.06, 2.065, 2.08, 2.11, 2.07, 2.185, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6mkaa1258142728.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.8027141 1.83 1.220 [2,] 0.9387763 2.07 1.495 [3,] 1.1802747 2.90 1.715 [4,] 1.3551151 3.27 1.920 [5,] 1.6106614 3.95 1.990 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.9903798 2.352672 1.521155 [2,] 1.3701696 3.447328 1.908845 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.80271414588258, 0.938776316901837, 1.18027469065463, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1chaq1258142727.ps tmp/1chaq1258142727.png") > system("convert tmp/2rs3l1258142727.ps tmp/2rs3l1258142727.png") > system("convert tmp/3m1cd1258142728.ps tmp/3m1cd1258142728.png") > system("convert tmp/434421258142728.ps tmp/434421258142728.png") > system("convert tmp/5qhqb1258142728.ps tmp/5qhqb1258142728.png") > system("convert tmp/6mkaa1258142728.ps tmp/6mkaa1258142728.png") > > > proc.time() user system elapsed 1.063 0.805 1.329