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(85.9,76.8,96.2,83.9,88.7,105.4,86.7,76.3,93.2,105.1,121,163,94.7,78.4,101.4,91.2,89.9,112.2,81.5,78.8,99.1,101.3,91.5,152.6,86.6,86.6,98.5,86.7,89.1,111,92.6,85.1,116.1,98.3,97.7,177.9,94.2,83.8,109.5,102.3,102.5,162.7,85.3,88.2,104.7,99.4,113.8,166.6,89.2,93.2,115,97.2,112.5,121.8,100.2,93.8,113.6,110.7,127.6,185.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] 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,] 85.9 94.7 86.6 94.2 89.2 NA [2,] 76.8 78.4 86.6 83.8 93.2 NA [3,] 96.2 101.4 98.5 109.5 115.0 NA [4,] 83.9 91.2 86.7 102.3 97.2 NA [5,] 88.7 89.9 89.1 102.5 112.5 NA [6,] 105.4 112.2 111.0 162.7 121.8 NA [7,] 86.7 81.5 92.6 85.3 100.2 NA [8,] 76.3 78.8 85.1 88.2 93.8 NA [9,] 93.2 99.1 116.1 104.7 113.6 NA [10,] 105.1 101.3 98.3 99.4 110.7 NA [11,] 121.0 91.5 97.7 113.8 127.6 NA [12,] 163.0 152.6 177.9 166.6 185.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/1w9qr1258125043.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/2cl9j1258125043.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/36rb41258125043.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/4z40h1258125043.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] [,12] [1,] 85.9 76.8 96.2 83.9 88.7 105.4 81.5 76.3 93.2 98.3 91.5 152.6 [2,] 86.6 78.4 98.5 86.7 89.1 111.0 85.3 78.8 99.1 99.4 97.7 163.0 [3,] 89.2 83.8 101.4 91.2 89.9 112.2 86.7 85.1 104.7 101.3 113.8 166.6 [4,] 94.2 86.6 109.5 97.2 102.5 121.8 92.6 88.2 113.6 105.1 121.0 177.9 [5,] 94.7 93.2 115.0 102.3 112.5 121.8 100.2 93.8 116.1 110.7 127.6 185.9 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 83.82986 78.0059 93.62743 83.78073 80.4316 104.5687 81.54184 78.45798 [2,] 94.57014 89.5941 109.17257 98.61927 99.3684 119.8313 91.85816 91.74202 [,9] [,10] [,11] [,12] [1,] 94.45434 97.2724 97.33628 156.0717 [2,] 114.94566 105.3276 130.26372 177.1283 $out [1] 162.7 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(85.9, 86.6, 89.2, 94.2, 94.7, 76.8, 78.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55aq61258125043.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,] 76.30 78.40 85.10 83.80 89.2 NA [2,] 84.90 85.70 86.65 91.20 95.5 NA [3,] 90.95 93.10 95.15 102.40 111.6 NA [4,] 105.25 101.35 104.75 111.65 118.4 NA [5,] 121.00 112.20 116.10 113.80 127.6 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 81.66823 85.96193 86.89447 93.07262 101.1552 NA [2,] 100.23177 100.23807 103.40553 111.72738 122.0448 NA $out [1] 163.0 152.6 177.9 162.7 166.6 185.9 $group [1] 1 2 3 4 4 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(76.3, 84.9, 90.95, 105.25, 121, 78.4, 85.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fodr1258125043.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,] 4.143308 8.80 5.70 [2,] 6.838821 16.95 7.90 [3,] 7.712880 18.75 10.65 [4,] 11.806911 28.55 13.95 [5,] 15.315254 36.10 14.90 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.446901 13.45916 7.890554 [2,] 9.978859 24.04084 13.409446 $out [1] 23.16899 57.30000 23.30000 $group [1] 1 2 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4.14330785725608, 6.83882102678666, 7.71288003440184, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1w9qr1258125043.ps tmp/1w9qr1258125043.png") > system("convert tmp/2cl9j1258125043.ps tmp/2cl9j1258125043.png") > system("convert tmp/36rb41258125043.ps tmp/36rb41258125043.png") > system("convert tmp/4z40h1258125043.ps tmp/4z40h1258125043.png") > system("convert tmp/55aq61258125043.ps tmp/55aq61258125043.png") > system("convert tmp/6fodr1258125043.ps tmp/6fodr1258125043.png") > > > proc.time() user system elapsed 1.064 0.851 1.349