R version 2.7.1 (2008-06-23) 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.91,0.9,0.89,0.89,0.89,0.89,0.89,0.89,0.88,0.88,0.88,0.86,0.85,0.85,0.86,0.9,0.92,0.91,0.93,0.96,0.96,0.97,0.98,1.01,0.99,1.03,1.08,1.06,1.1,1.17,1.16,1.12,1.17,1.13,1.12,1.07,1.04,1.08,1.06,1.12,1.18,1.13,1.08,1.06,1.09,1.02,1.01,1.01,1,1.01,1.03,1.09,1.07,1.05,1.06,1.06,1.08,1.07,1.04,1.04,1.06,1.09,1.09,1.05,1.01,1.02,1.03,1.06,1.08,1.05,1.05,1.05,1.04,1.05,1.07,1.1,1.16,1.16,1.17,1.17,1.18,1.21,1.18,1.13,1.12,1.17,1.19,1.26,1.25,1.28,1.35,1.39,1.45,1.41,1.32,1.31) > 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.91 0.85 0.99 1.04 1.00 1.06 1.04 1.12 NA [2,] 0.90 0.85 1.03 1.08 1.01 1.09 1.05 1.17 NA [3,] 0.89 0.86 1.08 1.06 1.03 1.09 1.07 1.19 NA [4,] 0.89 0.90 1.06 1.12 1.09 1.05 1.10 1.26 NA [5,] 0.89 0.92 1.10 1.18 1.07 1.01 1.16 1.25 NA [6,] 0.89 0.91 1.17 1.13 1.05 1.02 1.16 1.28 NA [7,] 0.89 0.93 1.16 1.08 1.06 1.03 1.17 1.35 NA [8,] 0.89 0.96 1.12 1.06 1.06 1.06 1.17 1.39 NA [9,] 0.88 0.96 1.17 1.09 1.08 1.08 1.18 1.45 NA [10,] 0.88 0.97 1.13 1.02 1.07 1.05 1.21 1.41 NA [11,] 0.88 0.98 1.12 1.01 1.04 1.05 1.18 1.32 NA [12,] 0.86 1.01 1.07 1.01 1.04 1.05 1.13 1.31 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/1lsij1218800846.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/2ytrw1218800846.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/3sjcd1218800846.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/48y2b1218800846.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.850 0.860 0.890 0.890 0.890 0.890 0.890 0.880 0.880 0.880 1.010 [2,] 0.95 0.955 0.960 0.975 0.965 0.965 0.980 1.010 1.020 0.995 0.995 1.010 [3,] 1.02 1.040 1.065 1.075 1.085 1.090 1.070 1.060 1.085 1.060 1.045 1.045 [4,] 1.05 1.085 1.085 1.110 1.170 1.165 1.165 1.145 1.175 1.170 1.150 1.100 [5,] 1.12 1.170 1.190 1.260 1.250 1.280 1.350 1.170 1.180 1.410 1.320 1.130 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.9641386 0.9673801 0.9951732 0.999587 0.970484 0.9782771 0.9666563 [2,] 1.0758614 1.1126199 1.1348268 1.150413 1.199516 1.2017229 1.1733437 [,8] [,9] [,10] [,11] [,12] [1,] 0.984587 0.9984148 0.9622425 0.9584148 0.9947247 [2,] 1.135413 1.1715852 1.1577575 1.1315852 1.0952753 $out [1] 1.39 1.45 0.86 1.31 $group [1] 8 9 12 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.95, 1.02, 1.05, 1.12, 0.85, 0.955, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55tmm1218800846.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.88 0.850 0.990 1.010 1.000 1.01 1.040 1.120 NA [2,] 0.88 0.880 1.065 1.030 1.035 1.04 1.085 1.220 NA [3,] 0.89 0.925 1.110 1.070 1.055 1.05 1.160 1.295 NA [4,] 0.89 0.965 1.145 1.105 1.070 1.07 1.175 1.370 NA [5,] 0.90 1.010 1.170 1.180 1.090 1.09 1.210 1.450 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.885439 0.886231 1.073511 1.035792 1.039036 1.036317 1.118950 1.226584 [2,] 0.894561 0.963769 1.146489 1.104208 1.070964 1.063683 1.201050 1.363416 [,9] [1,] NA [2,] NA $out [1] 0.91 0.86 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.88, 0.88, 0.89, 0.89, 0.9, 0.85, 0.88, 0.925, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/67vb61218800846.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.08609588 0.270 0.07500 [2,] 0.11427630 0.345 0.09000 [3,] 0.13064923 0.415 0.11125 [4,] 0.14775011 0.480 0.15000 [5,] 0.16974245 0.570 0.17750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1153816 0.3534256 0.0838836 [2,] 0.1459169 0.4765744 0.1386164 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0860958767886129, 0.114276301102202, 0.130649229217393, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1lsij1218800846.ps tmp/1lsij1218800846.png") > system("convert tmp/2ytrw1218800846.ps tmp/2ytrw1218800846.png") > system("convert tmp/3sjcd1218800846.ps tmp/3sjcd1218800846.png") > system("convert tmp/48y2b1218800846.ps tmp/48y2b1218800846.png") > system("convert tmp/55tmm1218800846.ps tmp/55tmm1218800846.png") > system("convert tmp/67vb61218800846.ps tmp/67vb61218800846.png") > > > proc.time() user system elapsed 1.273 0.814 22.193