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(161.79,161.79,161.85,161.77,161.86,161.89,161.89,161.89,162.18,162.43,162.58,162.57,162.57,162.57,162.44,162.79,163.15,163.23,163.23,163.23,163.38,163.71,163.73,163.73,163.73,163.73,163.93,164.27,164.57,164.73,164.73,164.76,165.75,165.86,165.99,166.13,166.13,166.13,166.15,166.45,166.48,166.51,166.51,166.51,166.58,166.82,167.35,167.5,167.5,167.6,167.72,167.29,166.98,166.98,166.98,166.98,167.63,167.83,167.85,167.87,167.87,167.96,167.7,169.25,168.79,168.77,168.77,169,168.92,169.23,169.28,169.29) > 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,] 161.79 162.57 163.73 166.13 167.50 167.87 NA [2,] 161.79 162.57 163.73 166.13 167.60 167.96 NA [3,] 161.85 162.44 163.93 166.15 167.72 167.70 NA [4,] 161.77 162.79 164.27 166.45 167.29 169.25 NA [5,] 161.86 163.15 164.57 166.48 166.98 168.79 NA [6,] 161.89 163.23 164.73 166.51 166.98 168.77 NA [7,] 161.89 163.23 164.73 166.51 166.98 168.77 NA [8,] 161.89 163.23 164.76 166.51 166.98 169.00 NA [9,] 162.18 163.38 165.75 166.58 167.63 168.92 NA [10,] 162.43 163.71 165.86 166.82 167.83 169.23 NA [11,] 162.58 163.73 165.99 167.35 167.85 169.28 NA [12,] 162.57 163.73 166.13 167.50 167.87 169.29 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/1oi7d1211115788.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/2w2e01211115789.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/3pi0x1211115789.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/46j7u1211115789.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,] 161.79 161.79 161.85 161.77 161.860 161.89 161.89 161.890 162.180 162.43 [2,] 162.57 162.57 162.44 162.79 163.150 163.23 163.23 163.230 163.380 163.71 [3,] 164.93 164.93 165.04 165.36 165.525 165.62 165.62 165.635 166.165 166.34 [4,] 167.50 167.60 167.70 167.29 166.980 166.98 166.98 166.980 167.630 167.83 [5,] 167.87 167.96 167.72 169.25 168.790 168.77 168.77 169.000 168.920 169.23 [,11] [,12] [1,] 162.58 162.570 [2,] 163.73 163.730 [3,] 166.67 166.815 [4,] 167.85 167.870 [5,] 169.28 169.290 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 161.75 161.6855 161.6471 162.4574 163.0545 163.2011 163.2011 163.2161 [2,] 168.11 168.1745 168.4329 168.2626 167.9955 168.0389 168.0389 168.0539 [,9] [,10] [,11] [,12] [1,] 163.4236 163.6825 164.0125 164.1446 [2,] 168.9064 168.9975 169.3275 169.4854 $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(161.79, 162.57, 164.93, 167.5, 167.87, 161.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59o7o1211115789.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,] 161.770 162.440 163.730 166.13 166.980 167.700 NA [2,] 161.820 162.680 164.100 166.30 166.980 168.365 NA [3,] 161.890 163.230 164.730 166.51 167.550 168.855 NA [4,] 162.305 163.545 165.805 166.70 167.775 169.240 NA [5,] 162.580 163.730 166.130 166.82 167.870 169.290 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 161.6688 162.8355 163.9523 166.3276 167.1874 168.4559 NA [2,] 162.1112 163.6245 165.5077 166.6924 167.9126 169.2541 NA $out [1] 167.35 167.50 $group [1] 4 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(161.77, 161.82, 161.89, 162.305, 162.58, 162.44, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66cfc1211115789.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.547956 5.870 3.25000 [2,] 2.553089 6.435 3.29375 [3,] 2.582468 6.770 3.41250 [4,] 2.602894 6.905 4.10875 [5,] 2.631058 7.480 4.50000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.559752 6.55563 3.040773 [2,] 2.605184 6.98437 3.784227 $out [1] 2.853312 $group [1] 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.54795604357689, 2.55308942647323, 2.5824680374279, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1oi7d1211115788.ps tmp/1oi7d1211115788.png") > system("convert tmp/2w2e01211115789.ps tmp/2w2e01211115789.png") > system("convert tmp/3pi0x1211115789.ps tmp/3pi0x1211115789.png") > system("convert tmp/46j7u1211115789.ps tmp/46j7u1211115789.png") > system("convert tmp/59o7o1211115789.ps tmp/59o7o1211115789.png") > system("convert tmp/66cfc1211115789.ps tmp/66cfc1211115789.png") > > > proc.time() user system elapsed 1.279 0.836 1.525