R version 2.8.1 (2008-12-22) 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.86,0.88,0.88,0.88,0.87,0.88,0.87,0.85,0.84,0.83,0.86,0.87,0.85,0.89,0.98,1.01,1,1.01,1.05,1,0.99,1.02,1.11,1.15,1.18,1.2,1.22,1.2,1.23,1.23,1.21,1.25,1.2,1.2,1.21,1.25,1.23,1.2,1.18,1.16,1.12,1.11,1.1,1.08,1.01,1.01,0.99,1.07,1.13,1.09,0.95,0.79,0.73,0.7,0.65,0.61,0.53,0.51,0.41,0.42) > 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,] 0.86 0.85 1.18 1.23 1.13 NA [2,] 0.88 0.89 1.20 1.20 1.09 NA [3,] 0.88 0.98 1.22 1.18 0.95 NA [4,] 0.88 1.01 1.20 1.16 0.79 NA [5,] 0.87 1.00 1.23 1.12 0.73 NA [6,] 0.88 1.01 1.23 1.11 0.70 NA [7,] 0.87 1.05 1.21 1.10 0.65 NA [8,] 0.85 1.00 1.25 1.08 0.61 NA [9,] 0.84 0.99 1.20 1.01 0.53 NA [10,] 0.83 1.02 1.20 1.01 0.51 NA [11,] 0.86 1.11 1.21 0.99 0.41 NA [12,] 0.87 1.15 1.25 1.07 0.42 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/1t7pn1258051598.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/rcomp/tmp/26oni1258051598.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/rcomp/tmp/3yuyt1258051598.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/rcomp/tmp/4cx621258051598.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.85 0.88 0.88 0.79 0.73 0.70 0.65 0.61 0.84 0.83 0.86 0.87 [2,] 0.86 0.89 0.95 0.88 0.87 0.88 0.87 0.85 0.84 0.83 0.86 0.87 [3,] 1.13 1.09 0.98 1.01 1.00 1.01 1.05 1.00 0.99 1.01 0.99 1.07 [4,] 1.18 1.20 1.18 1.16 1.12 1.11 1.10 1.08 1.01 1.02 1.11 1.15 [5,] 1.23 1.20 1.22 1.20 1.23 1.23 1.21 1.25 1.20 1.20 1.21 1.25 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.9038888 0.8709548 0.8174826 0.8121527 0.8233506 0.8474826 0.8874826 [2,] 1.3561112 1.3090452 1.1425174 1.2078473 1.1766494 1.1725174 1.2125174 [,8] [,9] [,10] [,11] [,12] [1,] 0.8374826 0.8698784 0.8757465 0.8133506 0.8721527 [2,] 1.1625174 1.1101216 1.1442535 1.1666494 1.2678473 $out [1] 0.53 0.51 0.41 0.42 $group [1] 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.85, 0.86, 1.13, 1.18, 1.23, 0.88, 0.89, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/53tlb1258051598.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,] 0.830 0.980 1.18 0.990 0.410 NA [2,] 0.855 0.985 1.20 1.040 0.520 NA [3,] 0.870 1.005 1.21 1.105 0.675 NA [4,] 0.880 1.035 1.23 1.170 0.870 NA [5,] 0.880 1.110 1.25 1.230 1.130 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.8585973 0.9821947 1.196317 1.045706 0.5153627 NA [2,] 0.8814027 1.0278053 1.223683 1.164294 0.8346373 NA $out [1] 0.85 0.89 1.15 $group [1] 2 2 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(0.83, 0.855, 0.87, 0.88, 0.88, 0.98, 0.985, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ygvx1258051598.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.1493988 0.320 0.17 [2,] 0.1787522 0.395 0.23 [3,] 0.2124915 0.545 0.24 [4,] 0.2554386 0.680 0.28 [5,] 0.3285118 0.830 0.32 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1775143 0.4150096 0.2171947 [2,] 0.2474687 0.6749904 0.2628053 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.149398795175865, 0.178752151163334, 0.212491520633150, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1t7pn1258051598.ps tmp/1t7pn1258051598.png") > system("convert tmp/26oni1258051598.ps tmp/26oni1258051598.png") > system("convert tmp/3yuyt1258051598.ps tmp/3yuyt1258051598.png") > system("convert tmp/4cx621258051598.ps tmp/4cx621258051598.png") > system("convert tmp/53tlb1258051598.ps tmp/53tlb1258051598.png") > system("convert tmp/6ygvx1258051598.ps tmp/6ygvx1258051598.png") > > > proc.time() user system elapsed 1.380 1.260 2.053