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(6.59,6.59,6.59,6.59,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.63,6.79,6.79,6.79,6.81,6.80,6.80,6.85,6.85,6.85,6.85,6.85,6.85,6.86,6.86,6.88,6.88,6.88,6.91,6.91,6.91,6.91,6.99,6.99,6.99,7.02,7.02,7.05,7.05,7.05,7.05,7.10,7.10,7.10,7.10,7.12,7.13,7.18,7.24,7.24,7.24,7.27,7.27,7.27,7.27,7.30,7.30,7.57,7.76,7.94,7.94,7.96) > 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,] 6.59 6.63 6.81 6.88 7.05 7.24 NA [2,] 6.59 6.63 6.80 6.88 7.05 7.27 NA [3,] 6.59 6.63 6.80 6.91 7.05 7.27 NA [4,] 6.59 6.63 6.85 6.91 7.10 7.27 NA [5,] 6.63 6.63 6.85 6.91 7.10 7.27 NA [6,] 6.63 6.63 6.85 6.91 7.10 7.30 NA [7,] 6.63 6.63 6.85 6.99 7.10 7.30 NA [8,] 6.63 6.63 6.85 6.99 7.12 7.57 NA [9,] 6.63 6.63 6.85 6.99 7.13 7.76 NA [10,] 6.63 6.79 6.86 7.02 7.18 7.94 NA [11,] 6.63 6.79 6.86 7.02 7.24 7.94 NA [12,] 6.63 6.79 6.88 7.05 7.24 7.96 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/1qwen1291272671.ps",horizontal=F,onefile=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/2j5vq1291272671.ps",horizontal=F,onefile=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/3j5vq1291272671.ps",horizontal=F,onefile=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/4uwcb1291272671.ps",horizontal=F,onefile=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,] 6.590 6.59 6.590 6.59 6.63 6.63 6.63 6.63 6.63 6.63 6.63 6.630 [2,] 6.630 6.63 6.630 6.63 6.63 6.63 6.63 6.63 6.63 6.79 6.79 6.790 [3,] 6.845 6.84 6.855 6.88 6.88 6.88 6.92 6.92 6.92 6.94 6.94 6.965 [4,] 7.050 7.05 7.050 7.10 7.10 7.10 7.10 7.12 7.13 7.18 7.24 7.240 [5,] 7.240 7.27 7.270 7.27 7.27 7.30 7.30 7.57 7.76 7.18 7.24 7.240 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.574086 6.569086 6.584086 6.576835 6.576835 6.576835 6.616835 6.603934 [2,] 7.115914 7.110914 7.125914 7.183165 7.183165 7.183165 7.223165 7.236066 [,9] [,10] [,11] [,12] [1,] 6.597484 6.688437 6.649735 6.674735 [2,] 7.242516 7.191563 7.230265 7.255265 $out [1] 7.94 7.94 7.96 $group [1] 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(6.59, 6.63, 6.845, 7.05, 7.24, 6.59, 6.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5uwcb1291272671.ps",horizontal=F,onefile=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,] 6.59 6.63 6.800 6.880 7.050 7.24 NA [2,] 6.59 6.63 6.830 6.910 7.075 7.27 NA [3,] 6.63 6.63 6.850 6.950 7.100 7.30 NA [4,] 6.63 6.71 6.855 7.005 7.155 7.85 NA [5,] 6.63 6.79 6.880 7.050 7.240 7.96 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 6.611756 6.593511 6.838597 6.90667 7.063511 7.035458 NA [2,] 6.648244 6.666489 6.861403 6.99333 7.136489 7.564542 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(6.59, 6.59, 6.63, 6.63, 6.63, 6.63, 6.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6uwcb1291272671.ps",horizontal=F,onefile=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,] 0.2485692 0.64 0.33250 [2,] 0.2584858 0.67 0.33875 [3,] 0.2651513 0.68 0.36750 [4,] 0.4442501 1.22 0.38375 [5,] 0.4746964 1.33 0.41000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1804230 0.4291413 0.3469752 [2,] 0.3498796 0.9308587 0.3880248 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.248569239180287, 0.258485844501991, 0.265151296734720, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qwen1291272671.ps tmp/1qwen1291272671.png",intern=TRUE)) character(0) > try(system("convert tmp/2j5vq1291272671.ps tmp/2j5vq1291272671.png",intern=TRUE)) character(0) > try(system("convert tmp/3j5vq1291272671.ps tmp/3j5vq1291272671.png",intern=TRUE)) character(0) > try(system("convert tmp/4uwcb1291272671.ps tmp/4uwcb1291272671.png",intern=TRUE)) character(0) > try(system("convert tmp/5uwcb1291272671.ps tmp/5uwcb1291272671.png",intern=TRUE)) character(0) > try(system("convert tmp/6uwcb1291272671.ps tmp/6uwcb1291272671.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.090 0.844 4.739