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(112.39,97.59,142.30,120.79,121.24,104.61,119.86,117.81,91.86,117.37,112.84,101.95,120.52,102.84,137.41,118.97,125.01,118.57,130.61,116.30,99.15,110.26,107.59,107.01,113.77,93.33,147.32,124.48,106.79,134.39,111.41,132.43,98.26,109.81,115.28,108.97,99.19,105.46,138.97,124.52,117.37,123.86,116.39,124.70,97.46,103.24,112.39,107.19,100.53,95.73,143.54,101.99,120.66,121.46,102.97,121.32,85.02,106.21,110.39,87.10) > 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,] 112.39 120.52 113.77 99.19 100.53 NA [2,] 97.59 102.84 93.33 105.46 95.73 NA [3,] 142.30 137.41 147.32 138.97 143.54 NA [4,] 120.79 118.97 124.48 124.52 101.99 NA [5,] 121.24 125.01 106.79 117.37 120.66 NA [6,] 104.61 118.57 134.39 123.86 121.46 NA [7,] 119.86 130.61 111.41 116.39 102.97 NA [8,] 117.81 116.30 132.43 124.70 121.32 NA [9,] 91.86 99.15 98.26 97.46 85.02 NA [10,] 117.37 110.26 109.81 103.24 106.21 NA [11,] 112.84 107.59 115.28 112.39 110.39 NA [12,] 101.95 107.01 108.97 107.19 87.10 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/15z3p1258121282.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/2e8m71258121282.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/345i11258121282.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/4thft1258121282.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,] 99.19 93.33 137.41 118.97 117.37 118.57 102.97 116.30 85.02 103.24 [2,] 100.53 95.73 138.97 118.97 117.37 118.57 111.41 117.81 91.86 106.21 [3,] 112.39 97.59 142.30 120.79 120.66 121.46 116.39 121.32 97.46 109.81 [4,] 113.77 102.84 143.54 124.48 121.24 123.86 119.86 124.70 98.26 110.26 [5,] 120.52 105.46 147.32 124.52 125.01 123.86 130.61 132.43 99.15 110.26 [,11] [,12] [1,] 107.59 101.95 [2,] 110.39 101.95 [3,] 112.39 107.01 [4,] 112.84 107.19 [5,] 115.28 108.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,] 103.0346 92.5661 139.0708 116.8966 117.9255 117.7221 110.4193 116.4515 [2,] 121.7454 102.6139 145.5292 124.6834 123.3945 125.1979 122.3607 126.1885 [,9] [,10] [,11] [,12] [1,] 92.93778 106.9483 110.6588 103.3074 [2,] 101.98222 112.6717 114.1212 110.7126 $out [1] 101.99 106.79 104.61 134.39 117.37 87.10 $group [1] 4 5 6 6 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(99.19, 100.53, 112.39, 113.77, 120.52, 93.33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/512m91258121282.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,] 91.860 99.150 93.330 97.46 85.02 NA [2,] 103.280 107.300 107.880 104.35 98.13 NA [3,] 115.105 117.435 112.590 114.39 104.59 NA [4,] 120.325 122.765 128.455 124.19 120.99 NA [5,] 142.300 137.410 147.320 138.97 143.54 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 107.3307 110.3813 103.2056 105.3408 94.1634 NA [2,] 122.8793 124.4887 121.9744 123.4392 115.0166 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(91.86, 103.28, 115.105, 120.325, 142.3, 99.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6iw9z1258121282.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.880984 7.690 2.45 [2,] 5.168494 13.130 4.31 [3,] 6.682978 17.175 5.40 [4,] 9.245896 22.200 7.00 [5,] 10.739296 29.780 8.45 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.823248 13.03811 4.173073 [2,] 8.542708 21.31189 6.626927 $out [1] 13.24 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.88098420682933, 5.16849413623983, 6.68297807512638, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15z3p1258121282.ps tmp/15z3p1258121282.png") > system("convert tmp/2e8m71258121282.ps tmp/2e8m71258121282.png") > system("convert tmp/345i11258121282.ps tmp/345i11258121282.png") > system("convert tmp/4thft1258121282.ps tmp/4thft1258121282.png") > system("convert tmp/512m91258121282.ps tmp/512m91258121282.png") > system("convert tmp/6iw9z1258121282.ps tmp/6iw9z1258121282.png") > > > proc.time() user system elapsed 1.085 0.828 1.330