R version 2.7.0 (2008-04-22) Copyright (C) 2008 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(90.2,94.3,96,99,103.3,113.1,112.8,112.1,107.4,111,110.5,110.8,112.4,111.5,116.2,122.5,121.3,113.9,110.7,120.8,141.1,147.4,148,158.1,165,187,190.3,182.4,168.8,151.2,120.1,112.5,106.2,107.1,108.5,106.5,108.3,125.6,124,127.2,136.9,135.8,124.3,115.4,113.6,114.4,118.4,117,116.5,115.4,113.6,117.4,116.9,116.4,111.1,110.2,118.9,131.8,130.6,138.3,148.4,148.7,144.3,152.5,162.9,167.2,166.5,185.6,193.2,207.8,223.4,246.4) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 90.2 112.4 165.0 108.3 116.5 148.4 NA [2,] 94.3 111.5 187.0 125.6 115.4 148.7 NA [3,] 96.0 116.2 190.3 124.0 113.6 144.3 NA [4,] 99.0 122.5 182.4 127.2 117.4 152.5 NA [5,] 103.3 121.3 168.8 136.9 116.9 162.9 NA [6,] 113.1 113.9 151.2 135.8 116.4 167.2 NA [7,] 112.8 110.7 120.1 124.3 111.1 166.5 NA [8,] 112.1 120.8 112.5 115.4 110.2 185.6 NA [9,] 107.4 141.1 106.2 113.6 118.9 193.2 NA [10,] 111.0 147.4 107.1 114.4 131.8 207.8 NA [11,] 110.5 148.0 108.5 118.4 130.6 223.4 NA [12,] 110.8 158.1 106.5 117.0 138.3 246.4 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/16p6l1212350286.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/271o81212350286.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/3y2p91212350286.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/4ber31212350286.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] [,11] [1,] 90.20 94.3 96.0 99.00 103.3 113.1 110.70 110.20 106.20 107.1 108.5 [2,] 108.30 111.5 113.6 117.40 116.9 113.9 111.10 112.10 107.40 111.0 110.5 [3,] 114.45 120.5 120.1 124.85 129.1 126.1 116.45 113.95 116.25 123.1 124.5 [4,] 148.40 148.7 144.3 152.50 162.9 151.2 124.30 120.80 141.10 147.4 148.0 [5,] 165.00 187.0 190.3 182.40 168.8 167.2 124.30 120.80 141.10 147.4 148.0 [,12] [1,] 106.50 [2,] 110.80 [3,] 127.65 [4,] 158.10 [5,] 158.10 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 88.5842 96.5048 100.2975 102.2094 99.42851 102.0403 107.9356 108.3382 [2,] 140.3158 144.4952 139.9025 147.4906 158.77149 150.1597 124.9644 119.5618 [,9] [,10] [,11] [,12] [1,] 94.51241 99.62082 100.3113 97.13997 [2,] 137.98759 146.57918 148.6887 158.16003 $out [1] 166.5 185.6 193.2 207.8 223.4 246.4 $group [1] 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(90.2, 108.3, 114.45, 148.4, 165, 94.3, 111.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/57cu71212350286.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] [1,] 90.20 110.70 106.20 108.3 110.20 144.30 NA [2,] 97.50 113.15 107.80 114.9 114.50 150.60 NA [3,] 108.95 121.05 135.65 121.2 116.70 166.85 NA [4,] 111.55 144.25 175.60 126.4 124.75 200.50 NA [5,] 113.10 158.10 190.30 136.9 138.30 246.40 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 102.5417 106.8651 104.7260 115.9548 112.0249 144.0903 NA [2,] 115.3583 135.2349 166.5740 126.4452 121.3751 189.6097 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(90.2, 97.5, 108.95, 111.55, 113.1, 110.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sbjf1212350286.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,] 21.40054 54.10 24.9750 [2,] 27.00609 70.15 25.7875 [3,] 31.27171 85.20 30.7750 [4,] 35.72341 97.50 32.2375 [5,] 43.44403 114.90 40.8000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 27.29568 72.72548 27.83311 [2,] 35.24774 97.67452 33.71689 $out [1] 52.7749 139.9000 11.7250 7.2500 $group [1] 1 2 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(21.4005373764305, 27.0060857652768, 31.2717096647056, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/16p6l1212350286.ps tmp/16p6l1212350286.png") > system("convert tmp/271o81212350286.ps tmp/271o81212350286.png") > system("convert tmp/3y2p91212350286.ps tmp/3y2p91212350286.png") > system("convert tmp/4ber31212350286.ps tmp/4ber31212350286.png") > system("convert tmp/57cu71212350286.ps tmp/57cu71212350286.png") > system("convert tmp/6sbjf1212350286.ps tmp/6sbjf1212350286.png") > > > proc.time() user system elapsed 1.299 0.830 5.752