R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(126.51,131.02,136.51,138.04,132.92,129.61,122.96,124.04,121.29,124.56,118.53,113.14,114.15,122.17,129.23,131.19,129.12,128.28,126.83,138.13,140.52,146.83,135.14,131.84,125.7,128.98,133.25,136.76,133.24,128.54,121.08,120.23,119.08,125.75,126.89,126.6,121.89,123.44,126.46,129.49,127.78,125.29,119.02,119.96,122.86,131.89,132.73,135.01,136.71,142.73,144.43,144.93,138.75,130.22,122.19,128.4,140.43,153.5,149.33,142.97) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 126.51 114.15 125.70 121.89 136.71 NA [2,] 131.02 122.17 128.98 123.44 142.73 NA [3,] 136.51 129.23 133.25 126.46 144.43 NA [4,] 138.04 131.19 136.76 129.49 144.93 NA [5,] 132.92 129.12 133.24 127.78 138.75 NA [6,] 129.61 128.28 128.54 125.29 130.22 NA [7,] 122.96 126.83 121.08 119.02 122.19 NA [8,] 124.04 138.13 120.23 119.96 128.40 NA [9,] 121.29 140.52 119.08 122.86 140.43 NA [10,] 124.56 146.83 125.75 131.89 153.50 NA [11,] 118.53 135.14 126.89 132.73 149.33 NA [12,] 113.14 131.84 126.60 135.01 142.97 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/1tb591258142048.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/2j6yq1258142048.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/36ixd1258142048.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/4lnj21258142048.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,] 121.89 122.17 126.46 129.49 127.78 128.28 119.02 119.96 119.08 124.56 [2,] 121.89 123.44 129.23 131.19 129.12 128.28 121.08 120.23 121.29 125.75 [3,] 125.70 128.98 133.25 136.76 132.92 128.54 122.19 124.04 122.86 131.89 [4,] 126.51 131.02 136.51 138.04 133.24 129.61 122.96 128.40 140.43 146.83 [5,] 126.51 131.02 144.43 144.93 138.75 130.22 122.96 138.13 140.52 153.50 [,11] [,12] [1,] 118.53 126.60 [2,] 126.89 126.60 [3,] 132.73 131.84 [4,] 135.14 135.01 [5,] 135.14 142.97 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 122.4355 123.624 128.1060 131.9198 130.0088 127.6002 120.8616 118.2671 [2,] 128.9645 134.336 138.3940 141.6002 135.8312 129.4798 123.5184 129.8129 [,9] [,10] [,11] [,12] [1,] 109.3357 116.9949 126.9006 125.8975 [2,] 136.3843 146.7851 138.5594 137.7825 $out [1] 114.15 136.71 142.73 125.29 126.83 149.33 113.14 $group [1] 1 1 2 6 7 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(121.89, 121.89, 125.7, 126.51, 126.51, 122.17, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cvc61258142048.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] [1,] 113.140 114.150 119.080 119.020 122.190 NA [2,] 122.125 127.555 123.390 122.375 133.465 NA [3,] 125.535 130.210 126.745 125.875 141.580 NA [4,] 131.970 136.635 131.110 130.690 144.680 NA [5,] 138.040 146.830 136.760 135.010 153.500 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 121.0446 126.0686 123.2239 122.0825 136.4648 NA [2,] 130.0254 134.3514 130.2661 129.6675 146.6952 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(113.14, 122.125, 125.535, 131.97, 138.04, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6qsyj1258142048.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,] 1.902753 4.930 1.33 [2,] 5.203281 13.205 4.37 [3,] 7.848868 19.365 7.43 [4,] 10.902749 25.750 8.33 [5,] 12.991217 30.800 8.41 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.249302 13.64314 5.623817 [2,] 10.448433 25.08686 9.236183 $out [1] 19.14 21.08 $group [1] 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.90275326829308, 5.20328071195361, 7.84886753971397, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1tb591258142048.ps tmp/1tb591258142048.png") > system("convert tmp/2j6yq1258142048.ps tmp/2j6yq1258142048.png") > system("convert tmp/36ixd1258142048.ps tmp/36ixd1258142048.png") > system("convert tmp/4lnj21258142048.ps tmp/4lnj21258142048.png") > system("convert tmp/5cvc61258142048.ps tmp/5cvc61258142048.png") > system("convert tmp/6qsyj1258142048.ps tmp/6qsyj1258142048.png") > > > proc.time() user system elapsed 1.074 0.831 1.336