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(0.9,0.92,0.92,0.95,1.06,1.17,1.23,1.26,1.37,1.37,1.31,1.21,1.2,1.11,1.11,1.11,1.17,1.08,1.05,1.03,1.04,1.02,1.01,1.01,0.98,0.96,0.94,0.99,0.99,0.98,1.02,1.06,1.06,1.06,1.06,1.06,1.04,1.02,1.01,1,1.04,1.09,1.08,1.06,1.06,1.03,0.97,0.98,0.93,0.88,0.86,0.9,0.91,0.93,0.89,0.88,0.83,0.81,0.83,0.8,0.76,0.73,0.74,0.74,0.75,0.74,0.74,0.73,0.71,0.71,0.7,0.75,0.81,0.78,0.75) > 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] 75 > (np <- floor(n / par1)) [1] 6 > 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] 7 7 7 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.90 1.20 0.98 1.04 0.93 0.76 0.81 [2,] 0.92 1.11 0.96 1.02 0.88 0.73 0.78 [3,] 0.92 1.11 0.94 1.01 0.86 0.74 0.75 [4,] 0.95 1.11 0.99 1.00 0.90 0.74 NA [5,] 1.06 1.17 0.99 1.04 0.91 0.75 NA [6,] 1.17 1.08 0.98 1.09 0.93 0.74 NA [7,] 1.23 1.05 1.02 1.08 0.89 0.74 NA [8,] 1.26 1.03 1.06 1.06 0.88 0.73 NA [9,] 1.37 1.04 1.06 1.06 0.83 0.71 NA [10,] 1.37 1.02 1.06 1.03 0.81 0.71 NA [11,] 1.31 1.01 1.06 0.97 0.83 0.70 NA [12,] 1.21 1.01 1.06 0.98 0.80 0.75 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/1evhv1249556475.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/2yrp11249556475.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/3w58i1249556475.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/4zq0l1249556475.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.760 0.73 0.740 0.90 0.750 0.74 0.740 0.730 0.71 0.710 0.70 0.750 [2,] 0.855 0.83 0.805 0.90 0.910 0.93 0.890 0.880 0.83 0.810 0.83 0.800 [3,] 0.930 0.92 0.920 0.97 1.015 1.03 1.035 1.045 1.05 1.025 0.99 0.995 [4,] 1.010 0.99 0.975 1.00 1.060 1.09 1.080 1.060 1.06 1.060 1.06 1.060 [5,] 1.200 1.11 1.110 1.11 1.170 1.17 1.230 1.260 1.37 1.370 1.31 1.210 $n [1] 7 7 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.8374365 0.8244506 0.8184787 0.9054968 0.9182452 0.9267948 0.9124439 [2,] 1.0225635 1.0155494 1.0215213 1.0345032 1.1117548 1.1332052 1.1575561 [,8] [,9] [,10] [,11] [,12] [1,] 0.9288942 0.9016426 0.863742 0.8416426 0.8272916 [2,] 1.1611058 1.1983574 1.186258 1.1383574 1.1627084 $out [1] 0.74 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.76, 0.855, 0.93, 1.01, 1.2, 0.73, 0.83, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50boj1249556475.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] [1,] 0.900 1.010 0.940 0.970 0.800 0.700 0.750 [2,] 0.935 1.025 0.980 1.005 0.830 0.720 0.765 [3,] 1.190 1.065 1.005 1.035 0.880 0.740 0.780 [4,] 1.285 1.110 1.060 1.060 0.905 0.745 0.795 [5,] 1.370 1.200 1.060 1.090 0.930 0.760 0.810 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.030363 1.026231 0.9685115 1.009914 0.845792 0.7285973 0.7526336 [2,] 1.349637 1.103769 1.0414885 1.060086 0.914208 0.7514027 0.8073664 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(0.9, 0.935, 1.19, 1.285, 1.37, 1.01, 1.025, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6v63l1249556475.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.1235179 0.37 0.12500 [2,] 0.1390295 0.40 0.14375 [3,] 0.1604776 0.45 0.15750 [4,] 0.1944702 0.57 0.18000 [5,] 0.2289105 0.66 0.20250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1351907 0.3724619 0.1409661 [2,] 0.1857644 0.5275381 0.1740339 $out [1] 0.085 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.123517879947264, 0.139029531578949, 0.160477559211082, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1evhv1249556475.ps tmp/1evhv1249556475.png") > system("convert tmp/2yrp11249556475.ps tmp/2yrp11249556475.png") > system("convert tmp/3w58i1249556475.ps tmp/3w58i1249556475.png") > system("convert tmp/4zq0l1249556475.ps tmp/4zq0l1249556475.png") > system("convert tmp/50boj1249556475.ps tmp/50boj1249556475.png") > system("convert tmp/6v63l1249556475.ps tmp/6v63l1249556475.png") > > > proc.time() user system elapsed 1.055 0.805 4.294