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(1.2413,1.2758,1.2729,1.2695,1.2858,1.2741,1.2823,1.2588,1.2856,1.2619,1.2590,1.2865,1.2667,1.2505,1.2205,1.2220,1.1990,1.1583,1.1931,1.2028,1.1802,1.2084,1.1996,1.1870,1.2013,1.2120,1.2133,1.1866,1.2067,1.2240,1.2566,1.2608,1.3005,1.2955,1.2500,1.3158,1.3358,1.2817,1.2707,1.2595,1.3182,1.2665,1.2715,1.3041,1.3106,1.2911,1.2233,1.1438,0.9895,1.9903,0.9967,0.9708,0.9946,1.0441,1.0757,1.1461,1.1749,1.1926,1.2109) > 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] 59 > (np <- floor(n / par1)) [1] 4 > 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 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 1.2413 1.2667 1.2013 1.3358 0.9895 [2,] 1.2758 1.2505 1.2120 1.2817 1.9903 [3,] 1.2729 1.2205 1.2133 1.2707 0.9967 [4,] 1.2695 1.2220 1.1866 1.2595 0.9708 [5,] 1.2858 1.1990 1.2067 1.3182 0.9946 [6,] 1.2741 1.1583 1.2240 1.2665 1.0441 [7,] 1.2823 1.1931 1.2566 1.2715 1.0757 [8,] 1.2588 1.2028 1.2608 1.3041 1.1461 [9,] 1.2856 1.1802 1.3005 1.3106 1.1749 [10,] 1.2619 1.2084 1.2955 1.2911 1.1926 [11,] 1.2590 1.1996 1.2500 1.2233 1.2109 [12,] 1.2865 1.1870 1.3158 1.1438 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/1m2u71257507933.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/2k6gw1257507933.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/3pvlb1257507933.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/4l9x41257507933.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] [1,] 1.2013 1.2120 1.2133 1.1866 1.1990 1.0441 1.0757 1.1461 1.1749 1.1926 [2,] 1.2013 1.2505 1.2133 1.1866 1.1990 1.1583 1.1931 1.2028 1.1802 1.2084 [3,] 1.2413 1.2758 1.2205 1.2220 1.2067 1.2240 1.2566 1.2588 1.2856 1.2619 [4,] 1.2667 1.2817 1.2707 1.2595 1.2858 1.2665 1.2715 1.2608 1.3005 1.2911 [5,] 1.3358 1.2817 1.2729 1.2695 1.3182 1.2741 1.2823 1.3041 1.3106 1.2955 [,11] [,12] [1,] 1.1996 1.14380 [2,] 1.2109 1.16540 [3,] 1.2233 1.23675 [4,] 1.2500 1.30115 [5,] 1.2590 1.31580 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.195089 1.253754 1.179941 1.170489 1.145367 1.147546 1.201203 1.217817 [2,] 1.287511 1.297846 1.261059 1.273511 1.268033 1.300454 1.311997 1.299783 [,9] [,10] [,11] [,12] [1,] 1.200596 1.203464 1.195672 1.129507 [2,] 1.370604 1.320336 1.250928 1.343993 $out [1] 0.9895 1.9903 0.9967 0.9708 0.9946 $group [1] 1 2 3 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.2013, 1.2013, 1.2413, 1.2667, 1.3358, 1.212, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5kz3m1257507933.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] [1,] 1.24130 1.15830 1.18660 1.22330 0.97080 [2,] 1.26045 1.19005 1.20935 1.26300 0.99565 [3,] 1.27350 1.20120 1.23700 1.27660 1.07570 [4,] 1.28395 1.22125 1.27815 1.30735 1.18375 [5,] 1.28650 1.26670 1.31580 1.33580 1.21090 $n [1] 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [1,] 1.262781 1.186969 1.205620 1.256372 0.9860914 [2,] 1.284219 1.215431 1.268380 1.296828 1.1653086 $out [1] 1.1438 1.9903 $group [1] 4 5 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(1.2413, 1.26045, 1.2735, 1.28395, 1.2865, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/63dok1257507933.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.02532041 0.05940 0.03120 [2,] 0.06410554 0.14685 0.05770 [3,] 0.09045817 0.21830 0.07565 [4,] 0.12421023 0.31115 0.09750 [5,] 0.13102359 0.34630 0.12030 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.06304402 0.1433617 0.05749695 [2,] 0.11787232 0.2932383 0.09380305 $out [1] 0.3299802 0.7783000 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0253204067897812, 0.0641055397347048, 0.0904581704085087, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1m2u71257507933.ps tmp/1m2u71257507933.png") > system("convert tmp/2k6gw1257507933.ps tmp/2k6gw1257507933.png") > system("convert tmp/3pvlb1257507933.ps tmp/3pvlb1257507933.png") > system("convert tmp/4l9x41257507933.ps tmp/4l9x41257507933.png") > system("convert tmp/5kz3m1257507933.ps tmp/5kz3m1257507933.png") > system("convert tmp/63dok1257507933.ps tmp/63dok1257507933.png") > > > proc.time() user system elapsed 1.28 1.17 1.92