R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(126.304,125.511,125.495,130.133,126.257,110.323,98.417,105.749,120.665,124.075,127.245,146.731,144.979,148.210,144.670,142.970,142.524,146.142,146.522,148.128,148.798,150.181,152.388,155.694,160.662,155.520,158.262,154.338,158.196,160.371,154.856,150.636,145.899,141.242,140.834,141.119,139.104,134.437,129.425,123.155,119.273,120.472,121.523,121.983,123.658,124.794,124.827,120.382,117.395,115.790,114.283,117.271,117.448,118.764,120.550,123.554,125.412,124.182,119.828,115.361,114.226,115.214,115.864,114.276,113.469,114.883,114.172,111.225,112.149,115.618,118.002,121.382,120.663) > 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,] 126.304 144.979 160.662 139.104 117.395 114.226 120.663 [2,] 125.511 148.210 155.520 134.437 115.790 115.214 NA [3,] 125.495 144.670 158.262 129.425 114.283 115.864 NA [4,] 130.133 142.970 154.338 123.155 117.271 114.276 NA [5,] 126.257 142.524 158.196 119.273 117.448 113.469 NA [6,] 110.323 146.142 160.371 120.472 118.764 114.883 NA [7,] 98.417 146.522 154.856 121.523 120.550 114.172 NA [8,] 105.749 148.128 150.636 121.983 123.554 111.225 NA [9,] 120.665 148.798 145.899 123.658 125.412 112.149 NA [10,] 124.075 150.181 141.242 124.794 124.182 115.618 NA [11,] 127.245 152.388 140.834 124.827 119.828 118.002 NA [12,] 146.731 155.694 141.119 120.382 115.361 121.382 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/rcomp/tmp/1na951305017537.ps",horizontal=F,onefile=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/rcomp/tmp/2614g1305017537.ps",horizontal=F,onefile=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/rcomp/tmp/3x7471305017537.ps",horizontal=F,onefile=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/rcomp/tmp/4i7xv1305017537.ps",horizontal=F,onefile=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,] 114.2260 115.214 114.283 114.276 113.469 110.323 98.4170 105.7490 112.149 [2,] 119.0290 115.790 115.864 117.271 117.448 114.883 114.1720 111.2250 120.665 [3,] 126.3040 129.974 127.460 126.644 122.765 119.618 121.0365 122.7685 124.535 [4,] 142.0415 148.210 144.670 142.970 142.524 146.142 146.5220 148.1280 145.899 [5,] 160.6620 155.520 158.262 154.338 158.196 160.371 154.8560 150.6360 148.798 [,10] [,11] [,12] [1,] 115.618 118.002 115.3610 [2,] 124.075 119.828 120.3820 [3,] 124.488 126.036 131.2505 [4,] 141.242 140.834 146.7310 [5,] 150.181 152.388 155.6940 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 112.5613 109.0621 108.8792 110.0673 106.5902 99.45494 100.1697 98.96487 [2,] 140.0467 150.8859 146.0408 143.2207 138.9398 139.78106 141.9033 146.57213 [,9] [,10] [,11] [,12] [1,] 108.2583 113.4147 112.4865 114.2545 [2,] 140.8117 135.5613 139.5855 148.2465 $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(114.226, 119.029, 126.304, 142.0415, 160.662, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5hjf31305017537.ps",horizontal=F,onefile=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,] 105.7490 142.5240 140.8340 119.2730 114.2830 111.2250 120.663 [2,] 115.4940 144.8245 143.5705 120.9975 116.5305 113.8205 120.663 [3,] 125.5030 147.3250 154.5970 123.4065 118.1060 114.5795 120.663 [4,] 126.7745 149.4895 158.2290 127.1260 122.0520 115.7410 120.663 [5,] 130.1330 155.6940 160.6620 134.4370 125.4120 118.0020 120.663 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 120.3579 145.1973 147.9112 120.6113 115.5876 113.7035 120.663 [2,] 130.6481 149.4527 161.2828 126.2017 120.6244 115.4555 120.663 $out [1] 98.417 146.731 139.104 121.382 $group [1] 1 1 4 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(105.749, 115.494, 125.503, 126.7745, 130.133, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6gp3r1305017537.ps",horizontal=F,onefile=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,] 12.93486 34.3860 13.02825 [2,] 15.11593 38.3555 19.95850 [3,] 16.88006 42.1560 22.79975 [4,] 18.02430 45.6615 24.60087 [5,] 20.99662 56.4390 28.07000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15.55353 38.82368 20.68233 [2,] 18.20659 45.48832 24.91717 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(12.9348600559367, 15.1159285230408, 16.8800579926104, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1na951305017537.ps tmp/1na951305017537.png",intern=TRUE)) character(0) > try(system("convert tmp/2614g1305017537.ps tmp/2614g1305017537.png",intern=TRUE)) character(0) > try(system("convert tmp/3x7471305017537.ps tmp/3x7471305017537.png",intern=TRUE)) character(0) > try(system("convert tmp/4i7xv1305017537.ps tmp/4i7xv1305017537.png",intern=TRUE)) character(0) > try(system("convert tmp/5hjf31305017537.ps tmp/5hjf31305017537.png",intern=TRUE)) character(0) > try(system("convert tmp/6gp3r1305017537.ps tmp/6gp3r1305017537.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.390 0.920 2.313