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(2.97,3.04,3.12,3.21,3.34,3.45,3.74,4.02,4.24,4.87,5.62,6.02,5.98,5.89,5.76,5.58,5.39,5.19,5.16,5.2,5.25,5.26,5.21,5.18,5.13,5.03,5.01,4.87,4.86,4.82,4.69,4.65,4.61,4.47,4.37,4.29,4.2,4.19,4.09,3.88,3.87,3.74,3.61,3.43,3.29,3.18,3.07,3.02,2.97,2.98,3.01,3.06,3.12,3.16,3.19,3.21,3.27,3.36,3.45,3.52,3.58,3.62,3.5,3.43,3.41,3.48,3.63,3.76,3.8,3.72,3.67,3.58,3.47,3.43,3.55,3.65,3.7,3.7,3.93,4.15,4.24) > 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] 81 > (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 7 7 7 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.97 5.98 5.13 4.20 2.97 3.58 3.47 [2,] 3.04 5.89 5.03 4.19 2.98 3.62 3.43 [3,] 3.12 5.76 5.01 4.09 3.01 3.50 3.55 [4,] 3.21 5.58 4.87 3.88 3.06 3.43 3.65 [5,] 3.34 5.39 4.86 3.87 3.12 3.41 3.70 [6,] 3.45 5.19 4.82 3.74 3.16 3.48 3.70 [7,] 3.74 5.16 4.69 3.61 3.19 3.63 3.93 [8,] 4.02 5.20 4.65 3.43 3.21 3.76 4.15 [9,] 4.24 5.25 4.61 3.29 3.27 3.80 4.24 [10,] 4.87 5.26 4.47 3.18 3.36 3.72 NA [11,] 5.62 5.21 4.37 3.07 3.45 3.67 NA [12,] 6.02 5.18 4.29 3.02 3.52 3.58 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/1gjx41258035732.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/2ydan1258035732.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/304101258035732.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/4io621258035732.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,] 2.970 2.980 3.01 3.060 3.120 3.160 3.19 3.210 3.270 3.180 3.07 3.020 [2,] 3.220 3.235 3.31 3.320 3.375 3.465 3.62 3.595 3.545 3.360 3.45 3.520 [3,] 3.580 3.620 3.55 3.650 3.700 3.700 3.74 4.020 4.240 4.095 4.02 3.935 [4,] 4.665 4.610 4.55 4.375 4.365 4.280 4.31 4.400 4.425 4.870 5.21 5.180 [5,] 5.980 5.890 5.76 5.580 5.390 5.190 5.16 5.200 5.250 5.260 5.62 6.020 $n [1] 7 7 7 7 7 7 7 7 7 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.717069 2.798872 2.809492 3.019971 3.108788 3.213295 3.327943 3.539267 [2,] 4.442931 4.441128 4.290508 4.280029 4.291212 4.186705 4.152057 4.500733 [,9] [,10] [,11] [,12] [1,] 3.714478 3.121001 2.884743 2.864246 [2,] 4.765522 5.068999 5.155257 5.005754 $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(2.97, 3.22, 3.58, 4.665, 5.98, 2.98, 3.235, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ca601258035732.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,] 2.970 5.160 4.290 3.020 2.970 3.410 3.43 [2,] 3.165 5.195 4.540 3.235 3.035 3.490 3.55 [3,] 3.595 5.255 4.755 3.675 3.175 3.600 3.70 [4,] 4.555 5.670 4.940 3.985 3.315 3.695 3.93 [5,] 6.020 5.980 5.130 4.200 3.520 3.800 4.24 $n [1] 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.961012 5.038349 4.572557 3.33292 3.04729 3.506498 3.499867 [2,] 4.228988 5.471651 4.937443 4.01708 3.30271 3.693502 3.900133 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.97, 3.165, 3.595, 4.555, 6.02, 5.16, 5.195, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61xr21258035732.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.6878642 1.970 0.69000 [2,] 0.7384588 2.010 0.84750 [3,] 0.8902536 2.395 1.14750 [4,] 1.0574139 2.830 1.39875 [5,] 1.1404343 3.010 1.49500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.744776 2.020992 0.8960712 [2,] 1.035731 2.769008 1.3989288 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.687864189253331, 0.73845878919481, 0.890253575212643, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1gjx41258035732.ps tmp/1gjx41258035732.png") > system("convert tmp/2ydan1258035732.ps tmp/2ydan1258035732.png") > system("convert tmp/304101258035732.ps tmp/304101258035732.png") > system("convert tmp/4io621258035732.ps tmp/4io621258035732.png") > system("convert tmp/5ca601258035732.ps tmp/5ca601258035732.png") > system("convert tmp/61xr21258035732.ps tmp/61xr21258035732.png") > > > proc.time() user system elapsed 1.087 0.846 6.513