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(1.25,1.25,1.26,1.26,1.26,1.26,1.27,1.27,1.29,1.31,1.32,1.32,1.33,1.33,1.32,1.32,1.31,1.3,1.31,1.29,1.3,1.3,1.32,1.31,1.35,1.35,1.36,1.37,1.37,1.37,1.32,1.32,1.31,1.31,1.34,1.31,1.26,1.27,1.24,1.25,1.27,1.25,1.26,1.27,1.26,1.26,1.28,1.27,1.28,1.27,1.26,1.27,1.27,1.28,1.27,1.26,1.3,1.31,1.28,1.29,1.31,1.29,1.29,1.32,1.3,1.29,1.31,1.29,1.33,1.35,1.32,1.33,1.34,1.34,1.33,1.33,1.35,1.32) > 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] 78 > (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 7 7 7 7 7 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.25 1.33 1.35 1.26 1.28 1.31 1.34 [2,] 1.25 1.33 1.35 1.27 1.27 1.29 1.34 [3,] 1.26 1.32 1.36 1.24 1.26 1.29 1.33 [4,] 1.26 1.32 1.37 1.25 1.27 1.32 1.33 [5,] 1.26 1.31 1.37 1.27 1.27 1.30 1.35 [6,] 1.26 1.30 1.37 1.25 1.28 1.29 1.32 [7,] 1.27 1.31 1.32 1.26 1.27 1.31 NA [8,] 1.27 1.29 1.32 1.27 1.26 1.29 NA [9,] 1.29 1.30 1.31 1.26 1.30 1.33 NA [10,] 1.31 1.30 1.31 1.26 1.31 1.35 NA [11,] 1.32 1.32 1.34 1.28 1.28 1.32 NA [12,] 1.32 1.31 1.31 1.27 1.29 1.33 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/144zp1262170464.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/2lzrj1262170464.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/321bb1262170464.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/4q2vk1262170464.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,] 1.250 1.250 1.240 1.250 1.26 1.25 1.26 1.26 1.26 1.30 1.28 1.27 [2,] 1.270 1.270 1.260 1.265 1.27 1.27 1.27 1.27 1.29 1.30 1.28 1.29 [3,] 1.310 1.290 1.290 1.320 1.30 1.29 1.29 1.28 1.30 1.31 1.32 1.31 [4,] 1.335 1.335 1.325 1.325 1.33 1.31 1.31 1.29 1.31 1.31 1.32 1.32 [5,] 1.350 1.350 1.360 1.370 1.37 1.37 1.32 1.32 1.33 1.31 1.34 1.33 $n [1] 7 7 7 7 7 7 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.271183 1.251183 1.251183 1.284169 1.264169 1.266113 1.264199 1.267099 [2,] 1.348817 1.328817 1.328817 1.355831 1.335831 1.313887 1.315801 1.292901 [,9] [,10] [,11] [,12] [1,] 1.287099 1.303550 1.294199 1.290649 [2,] 1.312901 1.316450 1.345801 1.329351 $out [1] 1.26 1.35 $group [1] 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.25, 1.27, 1.31, 1.335, 1.35, 1.25, 1.27, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5fyji1262170464.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,] 1.250 1.29 1.310 1.240 1.260 1.290 1.320 [2,] 1.260 1.30 1.315 1.255 1.270 1.290 1.330 [3,] 1.265 1.31 1.345 1.260 1.275 1.310 1.335 [4,] 1.300 1.32 1.365 1.270 1.285 1.325 1.340 [5,] 1.320 1.33 1.370 1.280 1.300 1.350 1.350 $n [1] 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.246756 1.300878 1.322195 1.253158 1.268158 1.294036 1.328550 [2,] 1.283244 1.319122 1.367805 1.266842 1.281842 1.325964 1.341450 $out [1] 1.31 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.25, 1.26, 1.265, 1.3, 1.32, 1.29, 1.3, 1.31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60m7r1262170464.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,] 0.02160247 0.060 0.00750 [2,] 0.02383048 0.060 0.02125 [3,] 0.03416648 0.095 0.04000 [4,] 0.04136291 0.115 0.06250 [5,] 0.04391550 0.120 0.06500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.02616982 0.06991413 0.0211856 [2,] 0.04216313 0.12008587 0.0588144 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0216024689946929, 0.0238304822831786, 0.0341664759136284, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/144zp1262170464.ps tmp/144zp1262170464.png",intern=TRUE)) character(0) > try(system("convert tmp/2lzrj1262170464.ps tmp/2lzrj1262170464.png",intern=TRUE)) character(0) > try(system("convert tmp/321bb1262170464.ps tmp/321bb1262170464.png",intern=TRUE)) character(0) > try(system("convert tmp/4q2vk1262170464.ps tmp/4q2vk1262170464.png",intern=TRUE)) character(0) > try(system("convert tmp/5fyji1262170464.ps tmp/5fyji1262170464.png",intern=TRUE)) character(0) > try(system("convert tmp/60m7r1262170464.ps tmp/60m7r1262170464.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.059 0.818 1.358