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(103.5,102.8,118.72,119.01,118.61,120.43,111.83,116.79,131.71,120.57,117.83,130.8,107.46,112.09,129.47,119.72,134.81,135.8,129.27,126.94,153.45,121.86,133.47,135.34,117.1,120.65,132.49,137.6,138.69,125.53,133.09,129.08,145.94,129.07,139.69,142.09,137.29,127.03,137.25,156.87,150.89,139.14,158.3,149,158.36,168.06,153.38,173.86,162.47,145.17,168.89,166.64,140.07,128.84,123.41,120.3,129.67,118.1,113.91,131.09,119.15) > 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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 103.50 107.46 117.10 137.29 162.47 119.15 [2,] 102.80 112.09 120.65 127.03 145.17 NA [3,] 118.72 129.47 132.49 137.25 168.89 NA [4,] 119.01 119.72 137.60 156.87 166.64 NA [5,] 118.61 134.81 138.69 150.89 140.07 NA [6,] 120.43 135.80 125.53 139.14 128.84 NA [7,] 111.83 129.27 133.09 158.30 123.41 NA [8,] 116.79 126.94 129.08 149.00 120.30 NA [9,] 131.71 153.45 145.94 158.36 129.67 NA [10,] 120.57 121.86 129.07 168.06 118.10 NA [11,] 117.83 133.47 139.69 153.38 113.91 NA [12,] 130.80 135.34 142.09 173.86 131.09 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/1oiio1258148339.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > 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/2ck9u1258148339.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > 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/3ge7a1258148339.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > 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/415nb1258148339.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > 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,] 103.500 102.80 118.72 119.01 134.81 120.43 111.83 116.79 129.67 118.10 [2,] 107.460 112.09 129.47 119.72 134.81 125.53 123.41 120.30 131.71 120.57 [3,] 118.125 120.65 132.49 137.60 138.69 128.84 129.27 126.94 145.94 121.86 [4,] 137.290 127.03 137.25 156.87 140.07 135.80 133.09 129.08 153.45 129.07 [5,] 162.470 145.17 137.25 166.64 140.07 139.14 133.09 129.08 158.36 129.07 [,11] [,12] [1,] 113.91 130.80 [2,] 117.83 131.09 [3,] 133.47 135.34 [4,] 139.69 142.09 [5,] 153.38 142.09 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 98.88369 110.0934 126.9927 111.3499 134.9733 121.5832 122.4301 120.7361 [2,] 137.36631 131.2066 137.9873 163.8501 142.4067 136.0968 136.1099 133.1439 [,9] [,10] [,11] [,12] [1,] 130.5786 115.8539 118.0238 127.5674 [2,] 161.3014 127.8661 148.9162 143.1126 $out [1] 168.89 118.61 150.89 158.30 149.00 168.06 173.86 $group [1] 3 5 5 7 8 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(103.5, 107.46, 118.125, 137.29, 162.47, 102.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/556u81258148339.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > 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,] 111.830 107.460 117.10 127.030 113.910 119.15 [2,] 114.310 120.790 127.30 138.215 121.855 119.15 [3,] 118.665 129.370 132.79 152.135 130.380 119.15 [4,] 120.500 135.075 139.19 158.330 153.820 119.15 [5,] 120.570 153.450 145.94 173.860 168.890 119.15 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 115.8417 122.8545 127.3669 142.9604 115.8005 119.15 [2,] 121.4883 135.8855 138.2131 161.3096 144.9595 119.15 $out [1] 103.50 102.80 131.71 130.80 $group [1] 1 1 1 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(111.83, 114.31, 118.665, 120.5, 120.57, 107.46, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65v3y1258148339.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > 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,] 7.584153 18.710 5.260 [2,] 12.662525 32.245 8.640 [3,] 16.663882 42.715 10.635 [4,] 19.857600 48.795 21.800 [5,] 22.000222 58.970 37.150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 13.38216 35.16643 4.632636 [2,] 19.94560 50.26357 16.637364 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(7.58415255648249, 12.6625254591626, 16.6638816120632, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1oiio1258148339.ps tmp/1oiio1258148339.png") > system("convert tmp/2ck9u1258148339.ps tmp/2ck9u1258148339.png") > system("convert tmp/3ge7a1258148339.ps tmp/3ge7a1258148339.png") > system("convert tmp/415nb1258148339.ps tmp/415nb1258148339.png") > system("convert tmp/556u81258148339.ps tmp/556u81258148339.png") > system("convert tmp/65v3y1258148339.ps tmp/65v3y1258148339.png") > > > proc.time() user system elapsed 1.084 0.838 1.452