R version 2.6.2 (2008-02-08) 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(105.18,105.18,105.18,105.18,105.18,105.18,105.18,105.18,105.18,105.18,97.82,97.83,97.82,97.83,97.82,97.82,97.8,97.8,97.44,97.44,97.44,97.44,97.7,97.7,97.7,97.7,97.7,97.7,97.7,97.7,97.7,97.7,97.7,89.38,89.38,89.38,89.38,87.69,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,89.21,92.07,92.07,92.07,92.07,92.07,92.07,92.07,92.07,92.07,92.07,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 105.18 97.82 97.70 89.38 89.21 89.21 92.07 94 NA [2,] 105.18 97.83 97.70 87.69 89.21 89.21 92.07 94 NA [3,] 105.18 97.82 97.70 89.21 89.21 89.21 92.07 94 NA [4,] 105.18 97.82 97.70 89.21 89.21 89.21 92.07 94 NA [5,] 105.18 97.80 97.70 89.21 89.21 89.21 92.07 94 NA [6,] 105.18 97.80 97.70 89.21 89.21 89.21 92.07 94 NA [7,] 105.18 97.44 97.70 89.21 89.21 89.21 92.07 94 NA [8,] 105.18 97.44 97.70 89.21 89.21 89.21 92.07 94 NA [9,] 105.18 97.44 97.70 89.21 89.21 89.21 94.00 94 NA [10,] 105.18 97.44 89.38 89.21 89.21 89.21 94.00 94 NA [11,] 97.82 97.70 89.38 89.21 89.21 92.07 94.00 94 NA [12,] 97.83 97.70 89.38 89.21 89.21 92.07 94.00 94 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/1xdpt1211119087.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/2kmhx1211119087.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/3cng11211119087.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/4doth1211119087.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] [1,] 89.210 87.690 89.210 89.210 89.210 89.210 89.210 89.210 89.21 [2,] 89.295 89.210 89.210 89.210 89.210 89.210 89.210 89.210 89.21 [3,] 93.035 93.035 93.035 93.035 93.035 93.035 93.035 93.035 94.00 [4,] 97.760 97.765 97.760 97.760 97.750 97.750 97.570 97.570 97.57 [5,] 105.180 105.180 105.180 105.180 105.180 105.180 105.180 105.180 105.18 [,10] [,11] [,12] [1,] 89.21 89.210 89.210 [2,] 89.21 89.295 89.295 [3,] 91.69 93.035 93.035 [4,] 95.72 95.850 95.850 [5,] 105.18 97.820 97.830 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 88.30633 88.25605 88.25885 88.25885 88.26443 88.26443 88.36498 88.36498 [2,] 97.76367 97.81395 97.81115 97.81115 97.80557 97.80557 97.70502 97.70502 [,9] [,10] [,11] [,12] [1,] 89.32998 88.05342 89.37328 89.37328 [2,] 98.67002 95.32658 96.69672 96.69672 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(89.21, 89.295, 93.035, 97.76, 105.18, 87.69, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5y9dt1211119087.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] [,8] [,9] [1,] 105.18 97.44 89.38 89.21 89.21 89.21 92.07 94 NA [2,] 105.18 97.44 93.54 89.21 89.21 89.21 92.07 94 NA [3,] 105.18 97.75 97.70 89.21 89.21 89.21 92.07 94 NA [4,] 105.18 97.82 97.70 89.21 89.21 89.21 94.00 94 NA [5,] 105.18 97.83 97.70 89.21 89.21 89.21 94.00 94 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 105.18 97.57668 95.8026 89.21 89.21 89.21 91.18971 94 NA [2,] 105.18 97.92332 99.5974 89.21 89.21 89.21 92.95029 94 NA $out [1] 97.82 97.83 89.38 87.69 92.07 92.07 $group [1] 1 1 4 4 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(105.18, 105.18, 105.18, 105.18, 105.18, 97.44, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6b0mi1211119087.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,] 5.572868 15.97 5.58750 [2,] 5.605775 15.97 6.97250 [3,] 5.656990 15.97 8.34375 [4,] 5.669993 15.97 8.51750 [5,] 5.670878 15.97 8.52250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.627699 15.97 7.639065 [2,] 5.686280 15.97 9.048435 $out [1] 5.888020 3.585156 3.587108 17.490000 8.610000 8.620000 $group [1] 1 1 1 2 2 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(5.57286778572244, 5.60577493795872, 5.65698973144722, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xdpt1211119087.ps tmp/1xdpt1211119087.png") > system("convert tmp/2kmhx1211119087.ps tmp/2kmhx1211119087.png") > system("convert tmp/3cng11211119087.ps tmp/3cng11211119087.png") > system("convert tmp/4doth1211119087.ps tmp/4doth1211119087.png") > system("convert tmp/5y9dt1211119087.ps tmp/5y9dt1211119087.png") > system("convert tmp/6b0mi1211119087.ps tmp/6b0mi1211119087.png") > > > proc.time() user system elapsed 1.254 0.825 1.543