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(84.9,81.9,95.9,81,89.2,102.5,89.8,88.8,83.2,90.2,100.4,187.1,87.6,85.4,86.1,86.7,89.1,103.7,86.9,85.2,80.8,91.2,102.8,182.5,80.9,83.1,88.3,86.6,93,105.3,93.8,86.4,87,96.7,100.5,196.7,86.8,88.2,93.8,85,90.4,115.9,94.9,87.7,91.7,95.9,106.8,204.5,90.2,90.5,93.2,97.8,99.4,120,108.2,98.5,104.3,102.9,111.1,188.1,93.8,94.5,112.4,102.5,115.8,136.5,122.1,110.6,116.4,112.6,121.5,199.3,102.1,100.6,119,106.8,121.3,145.5,129.7,117.7,121.3,124.3,135.2,210.1,106.8,110.5,111.5,122.1,126.3,143.2,137.3,121.5,121.9,123.9,131.6,220.9) > 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,] 84.9 87.6 80.9 86.8 90.2 93.8 102.1 106.8 NA [2,] 81.9 85.4 83.1 88.2 90.5 94.5 100.6 110.5 NA [3,] 95.9 86.1 88.3 93.8 93.2 112.4 119.0 111.5 NA [4,] 81.0 86.7 86.6 85.0 97.8 102.5 106.8 122.1 NA [5,] 89.2 89.1 93.0 90.4 99.4 115.8 121.3 126.3 NA [6,] 102.5 103.7 105.3 115.9 120.0 136.5 145.5 143.2 NA [7,] 89.8 86.9 93.8 94.9 108.2 122.1 129.7 137.3 NA [8,] 88.8 85.2 86.4 87.7 98.5 110.6 117.7 121.5 NA [9,] 83.2 80.8 87.0 91.7 104.3 116.4 121.3 121.9 NA [10,] 90.2 91.2 96.7 95.9 102.9 112.6 124.3 123.9 NA [11,] 100.4 102.8 100.5 106.8 111.1 121.5 135.2 131.6 NA [12,] 187.1 182.5 196.7 204.5 188.1 199.3 210.1 220.9 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/1yclx1261579696.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/2joak1261579696.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/3ng5o1261579696.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/430iq1261579696.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,] 80.90 81.90 86.10 81.00 89.10 102.50 86.90 85.20 80.80 90.20 [2,] 85.85 84.25 90.75 85.80 89.80 104.50 91.80 87.05 85.10 93.55 [3,] 88.90 89.35 94.85 92.25 96.20 117.95 101.55 93.65 98.00 99.80 [4,] 97.95 97.55 111.95 104.65 118.55 139.85 125.90 114.15 118.85 118.25 [5,] 106.80 110.50 119.00 122.10 126.30 145.50 137.30 121.50 121.90 124.30 [,11] [,12] [1,] 100.40 182.5 [2,] 101.65 187.6 [3,] 108.95 198.0 [4,] 126.55 207.3 [5,] 135.20 220.9 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 82.14077 81.92043 83.00738 81.72012 80.13984 98.20298 82.50125 [2,] 95.65923 96.77957 106.69262 102.77988 112.26016 137.69702 120.59875 [,8] [,9] [,10] [,11] [,12] [1,] 78.51155 79.14677 86.00223 95.0405 186.9953 [2,] 108.78845 116.85323 113.59777 122.8595 209.0047 $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(80.9, 85.85, 88.9, 97.95, 106.8, 81.9, 84.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5y4kr1261579696.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,] 81.00 80.80 80.90 85.00 90.20 93.80 100.60 106.80 NA [2,] 84.05 85.75 86.50 87.95 95.50 106.55 112.25 116.50 NA [3,] 89.50 87.25 90.65 92.75 101.15 114.20 121.30 123.00 NA [4,] 98.15 97.00 98.60 101.35 109.65 121.80 132.45 134.45 NA [5,] 102.50 103.70 105.30 115.90 120.00 136.50 145.50 143.20 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 83.0689 82.1188 85.13111 86.63817 94.69609 107.2444 112.0866 114.8129 [2,] 95.9311 92.3812 96.16889 98.86183 107.60391 121.1556 130.5134 131.1871 [,9] [1,] NA [2,] NA $out [1] 187.1 182.5 196.7 204.5 188.1 199.3 210.1 220.9 $group [1] 1 2 3 4 5 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(81, 84.05, 89.5, 98.15, 102.5, 80.8, 85.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6xreb1261579696.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,] 8.835794 25.90 9.5500 [2,] 12.671123 33.50 17.7125 [3,] 13.969242 36.75 21.2500 [4,] 16.453617 41.10 29.1375 [5,] 19.558406 50.40 33.2750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 12.24402 33.28359 16.03898 [2,] 15.69446 40.21641 26.46102 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(8.83579368251658, 12.6711227505243, 13.9692424570542, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1yclx1261579696.ps tmp/1yclx1261579696.png",intern=TRUE)) character(0) > try(system("convert tmp/2joak1261579696.ps tmp/2joak1261579696.png",intern=TRUE)) character(0) > try(system("convert tmp/3ng5o1261579696.ps tmp/3ng5o1261579696.png",intern=TRUE)) character(0) > try(system("convert tmp/430iq1261579696.ps tmp/430iq1261579696.png",intern=TRUE)) character(0) > try(system("convert tmp/5y4kr1261579696.ps tmp/5y4kr1261579696.png",intern=TRUE)) character(0) > try(system("convert tmp/6xreb1261579696.ps tmp/6xreb1261579696.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.063 0.821 1.824