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(102.8,103.1,103.1,103.3,103.5,103.3,103.5,103.8,103.9,103.9,104.2,104.6,104.9,105.2,105.2,105.6,105.6,106.2,106.3,106.4,106.9,107.2,107.3,107.3,107.4,107.55,107.87,108.37,108.38,107.92,108.03,108.14,108.3,108.64,108.66,109.04,109.03,109.03,109.54,109.75,109.83,109.65,109.82,109.95,110.12,110.15,110.2,109.99,110.14,110.14,110.81,110.97,110.99,109.73,109.81,110.02,110.18,110.21,110.25,110.36,110.51,110.64,110.95,111.18,111.19,111.69,111.7,111.83,111.77,111.73,112.01,111.86,112.04) > 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] 73 > (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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 102.8 104.9 107.40 109.03 110.14 110.51 112.04 [2,] 103.1 105.2 107.55 109.03 110.14 110.64 NA [3,] 103.1 105.2 107.87 109.54 110.81 110.95 NA [4,] 103.3 105.6 108.37 109.75 110.97 111.18 NA [5,] 103.5 105.6 108.38 109.83 110.99 111.19 NA [6,] 103.3 106.2 107.92 109.65 109.73 111.69 NA [7,] 103.5 106.3 108.03 109.82 109.81 111.70 NA [8,] 103.8 106.4 108.14 109.95 110.02 111.83 NA [9,] 103.9 106.9 108.30 110.12 110.18 111.77 NA [10,] 103.9 107.2 108.64 110.15 110.21 111.73 NA [11,] 104.2 107.3 108.66 110.20 110.25 112.01 NA [12,] 104.6 107.3 109.04 109.99 110.36 111.86 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/13ecd1210510411.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/2lojw1210510411.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/3yquo1210510411.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/47nck1210510411.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] [1,] 102.800 103.10 103.100 103.30 103.500 103.300 103.50 103.800 103.90 [2,] 106.150 105.20 105.200 105.60 105.600 106.200 106.30 106.400 106.90 [3,] 109.030 108.29 108.705 109.06 109.105 108.785 108.92 109.045 109.21 [4,] 110.325 110.14 110.810 110.97 110.990 109.730 109.82 110.020 110.18 [5,] 112.040 110.64 110.950 111.18 111.190 111.690 111.70 111.830 111.77 [,10] [,11] [,12] [1,] 103.900 104.20 104.600 [2,] 107.200 107.30 107.300 [3,] 109.395 109.43 109.515 [4,] 110.210 110.25 110.360 [5,] 111.730 112.01 111.860 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 106.5368 105.1035 105.0864 105.5962 105.6283 106.5080 106.6495 106.7100 [2,] 111.5232 111.4765 112.3236 112.5238 112.5817 111.0620 111.1905 111.3800 [,9] [,10] [,11] [,12] [1,] 107.0943 107.4535 107.5272 107.5412 [2,] 111.3257 111.3365 111.3328 111.4888 $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(102.8, 106.15, 109.03, 110.325, 112.04, 103.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5c3b81210510411.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,] 102.8 104.90 107.400 109.030 109.730 110.510 112.04 [2,] 103.2 105.40 107.895 109.595 110.080 111.065 112.04 [3,] 103.5 106.25 108.220 109.825 110.195 111.695 112.04 [4,] 103.9 107.05 108.510 110.055 110.585 111.800 112.04 [5,] 104.6 107.30 109.040 110.200 110.990 112.010 112.04 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 103.1807 105.4974 107.9395 109.6152 109.9647 111.3598 112.04 [2,] 103.8193 107.0026 108.5005 110.0348 110.4253 112.0302 112.04 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(102.8, 103.2, 103.5, 103.9, 104.6, 104.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6t93c1210510411.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,] 2.574509 7.260 2.53250 [2,] 2.805808 7.750 2.77500 [3,] 2.948631 7.860 3.12625 [4,] 3.130467 8.115 4.27375 [5,] 3.295860 8.390 4.62500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.800552 7.693521 2.44266 [2,] 3.096710 8.026479 3.80984 $out [1] 9.24 $group [1] 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.57450901467963, 2.80580816408143, 2.94863100543207, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/13ecd1210510411.ps tmp/13ecd1210510411.png") > system("convert tmp/2lojw1210510411.ps tmp/2lojw1210510411.png") > system("convert tmp/3yquo1210510411.ps tmp/3yquo1210510411.png") > system("convert tmp/47nck1210510411.ps tmp/47nck1210510411.png") > system("convert tmp/5c3b81210510411.ps tmp/5c3b81210510411.png") > system("convert tmp/6t93c1210510411.ps tmp/6t93c1210510411.png") > > > proc.time() user system elapsed 1.255 0.816 1.581