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(22.18,22.28,22.25,22.06,22.13,22.06,22.06,22.05,22.05,22.03,22.06,22.01,22.01,21.99,22,22,21.93,21.92,21.92,21.85,21.84,21.75,21.71,21.6,21.6,21.61,21.6,21.57,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.53,21.48,21.44,21.44,21.44,21.43,21.42,21.41,21.23,21.22,21.22,21.22,21.21,21.19,21.19,21.19,21.19,21.19,21.18,21.1,20.96,20.95,20.95,20.95,20.92,20.9,20.86,20.86,20.86,20.86,20.85,20.84,20.8,20.78,20.78,20.77,20.75,20.75,20.74,20.74,20.73,20.73) > 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] 80 > (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 7 7 7 7 7 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 22.18 22.01 21.60 21.54 21.22 20.95 20.78 [2,] 22.28 21.99 21.61 21.54 21.22 20.95 20.77 [3,] 22.25 22.00 21.60 21.53 21.21 20.92 20.75 [4,] 22.06 22.00 21.57 21.48 21.19 20.90 20.75 [5,] 22.13 21.93 21.54 21.44 21.19 20.86 20.74 [6,] 22.06 21.92 21.54 21.44 21.19 20.86 20.74 [7,] 22.06 21.92 21.54 21.44 21.19 20.86 20.73 [8,] 22.05 21.85 21.54 21.43 21.19 20.86 20.73 [9,] 22.05 21.84 21.54 21.42 21.18 20.85 NA [10,] 22.03 21.75 21.54 21.41 21.10 20.84 NA [11,] 22.06 21.71 21.54 21.23 20.96 20.80 NA [12,] 22.01 21.60 21.54 21.22 20.95 20.78 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/1gfau1242843724.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/266671242843724.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/3yfur1242843724.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/4q1f41242843724.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,] 20.780 20.770 20.750 20.750 20.740 20.740 20.730 20.730 20.85 20.840 [2,] 21.085 21.085 21.065 21.045 21.025 21.025 21.025 21.025 21.18 21.100 [3,] 21.540 21.540 21.530 21.480 21.440 21.440 21.440 21.430 21.48 21.475 [4,] 21.805 21.800 21.800 21.785 21.735 21.730 21.730 21.695 21.84 21.750 [5,] 22.180 22.280 22.250 22.060 22.130 22.060 22.060 22.050 22.05 22.030 [,11] [,12] [1,] 20.800 20.78 [2,] 20.960 20.95 [3,] 21.385 21.38 [4,] 21.710 21.60 [5,] 22.060 22.01 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 21.11003 21.11301 21.09107 21.03808 21.016 21.01899 21.01899 21.02989 [2,] 21.96997 21.96699 21.96893 21.92192 21.864 21.86101 21.86101 21.83011 [,9] [,10] [,11] [,12] [1,] 21.05428 21.05573 20.90123 20.96073 [2,] 21.90572 21.89427 21.86877 21.79927 $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(20.78, 21.085, 21.54, 21.805, 22.18, 20.77, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xh5w1242843724.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,] 22.010 21.600 21.540 21.410 21.10 20.780 20.730 [2,] 22.050 21.795 21.540 21.415 21.14 20.845 20.735 [3,] 22.060 21.920 21.540 21.440 21.19 20.860 20.745 [4,] 22.155 21.995 21.585 21.505 21.20 20.910 20.760 [5,] 22.280 22.010 21.610 21.540 21.22 20.950 20.780 $n [1] 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 22.01211 21.82878 21.51948 21.39895 21.16263 20.83035 20.73103 [2,] 22.10789 22.01122 21.56052 21.48105 21.21737 20.88965 20.75897 $out [1] 21.23 21.22 20.96 20.95 $group [1] 4 4 5 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(22.01, 22.05, 22.06, 22.155, 22.28, 21.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64o451242843724.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.4314047 1.190 0.52000 [2,] 0.4655177 1.245 0.60375 [3,] 0.5007839 1.320 0.70500 [4,] 0.5190235 1.395 0.71750 [5,] 0.5474443 1.510 0.74000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.4763795 1.251584 0.6531179 [2,] 0.5251883 1.388416 0.7568821 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.431404682403889, 0.465517689234733, 0.500783903986259, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1gfau1242843724.ps tmp/1gfau1242843724.png") > system("convert tmp/266671242843724.ps tmp/266671242843724.png") > system("convert tmp/3yfur1242843724.ps tmp/3yfur1242843724.png") > system("convert tmp/4q1f41242843724.ps tmp/4q1f41242843724.png") > system("convert tmp/5xh5w1242843724.ps tmp/5xh5w1242843724.png") > system("convert tmp/64o451242843724.ps tmp/64o451242843724.png") > > > proc.time() user system elapsed 1.095 0.842 1.811