R version 2.6.2 (2008-02-08) 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(65.05,65.84,66.6,67.55,68.07,69.06,69.06,69.11,69.29,69.38,69.28,69.75,69.9,70.21,70.48,71.55,72.18,72.64,72.77,72.74,73.13,73.44,73.34,73.34,73.81,74.26,74.72,75.11,75.26,75.89,75.91,76.43,76.56,76.76,76.76,76.56,76.82,77.09,77.51,77.76,77.86,77.89,77.94,77.99,78.17,78.91,78.87,78.88,79.08,79.41,79.51,79.73,80.38,80.56,80.46,80.45,80.58,80.68,80.52,81.49,81.66,81.95,82.3,82.4,83.14,83.17,83.11,83.21,83.33,83.88,83.8,83.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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 65.05 69.90 73.81 76.82 79.08 81.66 NA [2,] 65.84 70.21 74.26 77.09 79.41 81.95 NA [3,] 66.60 70.48 74.72 77.51 79.51 82.30 NA [4,] 67.55 71.55 75.11 77.76 79.73 82.40 NA [5,] 68.07 72.18 75.26 77.86 80.38 83.14 NA [6,] 69.06 72.64 75.89 77.89 80.56 83.17 NA [7,] 69.06 72.77 75.91 77.94 80.46 83.11 NA [8,] 69.11 72.74 76.43 77.99 80.45 83.21 NA [9,] 69.29 73.13 76.56 78.17 80.58 83.33 NA [10,] 69.38 73.44 76.76 78.91 80.68 83.88 NA [11,] 69.28 73.34 76.76 78.87 80.52 83.80 NA [12,] 69.75 73.34 76.56 78.88 81.49 83.73 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/1u15w1211141093.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/21vyr1211141093.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/364ai1211141093.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/45m3h1211141093.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] [1,] 65.050 65.840 66.600 67.550 68.07 69.06 69.060 69.11 69.290 69.380 69.280 [2,] 69.900 70.210 70.480 71.550 72.18 72.64 72.770 72.74 73.130 73.440 73.340 [3,] 75.315 75.675 76.115 76.435 76.56 76.89 76.925 77.21 77.365 77.835 77.815 [4,] 79.080 79.410 79.510 79.730 80.38 80.56 80.460 80.45 80.580 80.680 80.520 [5,] 81.660 81.950 82.300 82.400 83.14 83.17 83.110 83.21 83.330 83.880 83.800 [,12] [1,] 69.75 [2,] 73.34 [3,] 77.72 [4,] 81.49 [5,] 83.73 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 69.3936 69.7407 70.29036 71.15864 71.27074 71.78134 71.9647 72.2368 [2,] 81.2364 81.6093 81.93964 81.71136 81.84926 81.99866 81.8853 82.1832 [,9] [,10] [,11] [,12] [1,] 72.55951 73.16497 73.18367 72.46299 [2,] 82.17049 82.50503 82.44633 82.97701 $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(65.05, 69.9, 75.315, 79.08, 81.66, 65.84, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/52joj1211141093.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,] 65.050 69.900 73.810 76.820 79.080 81.660 NA [2,] 67.075 71.015 74.915 77.635 79.620 82.350 NA [3,] 69.060 72.690 75.900 77.915 80.455 83.155 NA [4,] 69.285 73.235 76.560 78.520 80.570 83.530 NA [5,] 69.750 73.440 76.760 78.910 81.490 83.880 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 68.052 71.67744 75.1497 77.51135 80.0217 82.6168 NA [2,] 70.068 73.70256 76.6503 78.31865 80.8883 83.6932 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(65.05, 67.075, 69.06, 69.285, 69.75, 69.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6gjsa1211141093.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,] 5.073885 13.980 5.91250 [2,] 5.147579 14.075 6.08125 [3,] 5.198668 14.510 6.56625 [4,] 5.674663 15.385 7.13500 [5,] 6.139803 16.610 7.63750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.958261 13.9125 6.085628 [2,] 5.439075 15.1075 7.046872 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(5.07388477073205, 5.14757880190429, 5.19866809737644, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1u15w1211141093.ps tmp/1u15w1211141093.png") > system("convert tmp/21vyr1211141093.ps tmp/21vyr1211141093.png") > system("convert tmp/364ai1211141093.ps tmp/364ai1211141093.png") > system("convert tmp/45m3h1211141093.ps tmp/45m3h1211141093.png") > system("convert tmp/52joj1211141093.ps tmp/52joj1211141093.png") > system("convert tmp/6gjsa1211141093.ps tmp/6gjsa1211141093.png") > > > proc.time() user system elapsed 1.277 0.817 1.575