R version 2.7.0 (2008-04-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(93.4,98.5,100.8,102.3,104.7,101.1,101.4,99.5,98.4,96.3,100.7,101.2,100.3,97.8,97.4,98.6,99.7,99,98.1,97,98.5,103.8,114.4,124.5,134.2,131.8,125.6,119.9,114.9,115.5,112.5,111.4,115.3,110.8,103.7,111.1,113,111.2,117.6,121.7,127.3,129.8,137.1,141.4,137.4,130.7,117.2,110.8,111.4,108.2,108.8,110.2,109.5,109.5,116,111.2,112.1,114,119.1,114.1,115.1,115.4,110.8,116,119.2,126.5,127.8,131.3,140.3,137.3,143,134.5,139.9,159.3,170.4,175,175.8,180.9,180.3,169.6,172.3,184.8,177.7,184.6,211.4,215.3,215.9,244.7,259.3,289,310.9,321,315.1,333.2,314.1,284.7) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 93.4 100.3 134.2 113.0 111.4 115.1 139.9 211.4 NA [2,] 98.5 97.8 131.8 111.2 108.2 115.4 159.3 215.3 NA [3,] 100.8 97.4 125.6 117.6 108.8 110.8 170.4 215.9 NA [4,] 102.3 98.6 119.9 121.7 110.2 116.0 175.0 244.7 NA [5,] 104.7 99.7 114.9 127.3 109.5 119.2 175.8 259.3 NA [6,] 101.1 99.0 115.5 129.8 109.5 126.5 180.9 289.0 NA [7,] 101.4 98.1 112.5 137.1 116.0 127.8 180.3 310.9 NA [8,] 99.5 97.0 111.4 141.4 111.2 131.3 169.6 321.0 NA [9,] 98.4 98.5 115.3 137.4 112.1 140.3 172.3 315.1 NA [10,] 96.3 103.8 110.8 130.7 114.0 137.3 184.8 333.2 NA [11,] 100.7 114.4 103.7 117.2 119.1 143.0 177.7 314.1 NA [12,] 101.2 124.5 111.1 110.8 114.1 134.5 184.6 284.7 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/1ghlh1230127474.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/2jo981230127474.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/3o6ys1230127474.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/4axns1230127474.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,] 93.40 97.80 97.4 98.60 99.70 99.00 98.10 97.00 98.40 96.30 [2,] 105.85 103.35 104.8 106.25 107.10 105.30 106.95 105.35 105.30 107.30 [3,] 114.05 113.30 114.2 117.95 117.05 121.00 121.90 121.35 126.35 122.35 [4,] 137.05 145.55 148.0 148.35 151.55 155.35 158.70 155.50 156.30 161.05 [5,] 139.90 159.30 170.4 175.00 175.80 180.90 180.30 169.60 172.30 184.80 [,11] [,12] [1,] 100.70 101.20 [2,] 109.05 110.95 [3,] 118.15 119.30 [4,] 160.35 159.55 [5,] 177.70 184.60 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.62123 89.72647 90.06786 94.43234 92.2196 93.04135 92.9917 [2,] 131.47877 136.87353 138.33214 141.46766 141.8804 148.95865 150.8083 [,8] [,9] [,10] [,11] [,12] [1,] 93.33549 97.86067 92.32448 89.49308 92.15134 [2,] 149.36451 154.83933 152.37552 146.80692 146.44866 $out [1] 211.4 215.3 215.9 244.7 259.3 289.0 310.9 321.0 315.1 333.2 314.1 284.7 $group [1] 1 2 3 4 5 6 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(93.4, 105.85, 114.05, 137.05, 139.9, 97.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5jszn1230127474.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] [,8] [,9] [1,] 96.30 97.00 103.70 110.8 108.20 110.80 159.3 211.40 NA [2,] 98.45 97.95 111.25 115.1 109.50 115.70 170.0 230.30 NA [3,] 100.75 98.80 115.10 124.5 111.30 127.15 175.4 286.85 NA [4,] 101.30 102.05 122.75 133.9 114.05 135.90 180.6 314.60 NA [5,] 104.70 103.80 134.20 141.4 119.10 143.00 184.8 333.20 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 99.4501 96.92996 109.8548 115.9252 109.2247 117.9366 170.5653 248.4002 [2,] 102.0499 100.67004 120.3452 133.0748 113.3753 136.3634 180.2347 325.2998 [,9] [1,] NA [2,] NA $out [1] 93.4 114.4 124.5 139.9 $group [1] 1 2 2 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(96.3, 98.45, 100.75, 101.3, 104.7, 97, 97.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6q3051230127474.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,] 37.34687 117.50 26.8000 [2,] 45.55377 132.30 30.5625 [3,] 62.98987 186.75 35.5875 [4,] 71.49103 215.05 39.7750 [5,] 78.50658 236.90 40.1750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 51.15972 149.0072 31.38562 [2,] 74.82003 224.4928 39.78938 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(37.3468659040775, 45.5537737154435, 62.9898748624244, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ghlh1230127474.ps tmp/1ghlh1230127474.png") > system("convert tmp/2jo981230127474.ps tmp/2jo981230127474.png") > system("convert tmp/3o6ys1230127474.ps tmp/3o6ys1230127474.png") > system("convert tmp/4axns1230127474.ps tmp/4axns1230127474.png") > system("convert tmp/5jszn1230127474.ps tmp/5jszn1230127474.png") > system("convert tmp/6q3051230127474.ps tmp/6q3051230127474.png") > > > proc.time() user system elapsed 2.306 1.326 2.543