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(14.2,13.5,11.9,14.6,15.6,14.1,14.9,14.2,14.6,17.2,15.4,14.3,17.5,14.5,14.4,16.6,16.7,16.6,16.9,15.7,16.4,18.4,16.9,16.5,18.3,15.1,15.7,18.1,16.8,18.9,19,18.1,17.8,21.5,17.1,18.7,19,16.4,16.9,18.6,19.3,19.4,17.6,18.6,18.1,20.4,18.1,19.6,19.9,19.2,17.8,19.2,22,21.1,19.5,22.2,20.9,22.2,23.5,21.5,24.3,22.8,20.3,23.7,23.3,19.6,18,17.3,16.8,18.2,16.5,16,18.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] 73 > (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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.2 17.5 18.3 19.0 19.9 24.3 18.4 [2,] 13.5 14.5 15.1 16.4 19.2 22.8 NA [3,] 11.9 14.4 15.7 16.9 17.8 20.3 NA [4,] 14.6 16.6 18.1 18.6 19.2 23.7 NA [5,] 15.6 16.7 16.8 19.3 22.0 23.3 NA [6,] 14.1 16.6 18.9 19.4 21.1 19.6 NA [7,] 14.9 16.9 19.0 17.6 19.5 18.0 NA [8,] 14.2 15.7 18.1 18.6 22.2 17.3 NA [9,] 14.6 16.4 17.8 18.1 20.9 16.8 NA [10,] 17.2 18.4 21.5 20.4 22.2 18.2 NA [11,] 15.4 16.9 17.1 18.1 23.5 16.5 NA [12,] 14.3 16.5 18.7 19.6 21.5 16.0 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/1d3io1257418277.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/2boaz1257418277.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/3zyh71257418277.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/4zcut1257418277.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,] 17.50 13.50 11.9 14.60 15.60 14.10 14.9 14.2 14.6 17.2 15.4 14.3 [2,] 17.90 14.50 14.4 16.60 16.70 16.60 16.9 15.7 16.4 18.2 16.5 16.0 [3,] 18.40 15.75 16.3 18.35 18.05 19.15 17.8 17.7 17.3 19.4 17.0 17.6 [4,] 19.45 19.20 17.8 19.20 22.00 19.60 19.0 18.6 18.1 21.5 18.1 19.6 [5,] 19.90 22.80 20.3 19.20 23.30 21.10 19.5 22.2 18.1 22.2 18.1 21.5 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17.47437 12.71835 14.10689 16.67292 14.63133 17.21490 16.44543 15.82941 [2,] 19.32563 18.78165 18.49311 20.02708 21.46867 21.08510 19.15457 19.57059 [,9] [,10] [,11] [,12] [1,] 16.20345 17.27139 15.96795 15.27788 [2,] 18.39655 21.52861 18.03205 19.92212 $out [1] 14.2 24.3 23.7 20.9 23.5 $group [1] 1 1 4 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(17.5, 17.9, 18.4, 19.45, 19.9, 13.5, 14.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5szs51257418277.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,] 13.50 15.70 15.10 16.40 17.80 16.00 18.4 [2,] 14.15 16.05 16.95 17.85 19.35 17.05 18.4 [3,] 14.45 16.60 18.10 18.60 21.00 18.90 18.4 [4,] 15.15 16.90 18.80 19.35 22.10 23.05 18.4 [5,] 15.60 17.50 21.50 20.40 23.50 24.30 18.4 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 13.99389 16.21231 17.25620 17.91584 19.74571 16.16336 18.4 [2,] 14.90611 16.98769 18.94380 19.28416 22.25429 21.63664 18.4 $out [1] 11.9 17.2 14.5 14.4 18.4 $group [1] 1 1 2 2 2 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(13.5, 14.15, 14.45, 15.15, 15.6, 15.7, 16.05, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64qsa1257418277.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,] 1.642863 4.60 1.2500 [2,] 2.308575 6.65 1.6125 [3,] 2.807759 7.85 2.3750 [4,] 3.035532 8.75 3.1125 [5,] 3.490224 10.10 4.6000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.476189 6.892176 1.69084 [2,] 3.139329 8.807824 3.05916 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.64286335402553, 2.30857514210534, 2.80775907637241, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1d3io1257418277.ps tmp/1d3io1257418277.png") > system("convert tmp/2boaz1257418277.ps tmp/2boaz1257418277.png") > system("convert tmp/3zyh71257418277.ps tmp/3zyh71257418277.png") > system("convert tmp/4zcut1257418277.ps tmp/4zcut1257418277.png") > system("convert tmp/5szs51257418277.ps tmp/5szs51257418277.png") > system("convert tmp/64qsa1257418277.ps tmp/64qsa1257418277.png") > > > proc.time() user system elapsed 1.053 0.802 2.168