R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(18.94,18.97,19,19.08,19.18,19.24,19.23,19.25,19.3,19.33,19.35,19.35,19.31,19.47,19.7,19.76,19.9,19.97,20.1,20.26,20.44,20.43,20.57,20.6,20.69,20.93,20.98,21.11,21.14,21.16,21.32,21.32,21.48,21.58,21.74,21.75,21.81,21.89,22.21,22.37,22.47,22.51,22.55,22.61,22.58,22.85,22.93,22.98,23.01,23.11,23.18,23.18,23.21,23.22,23.12,23.15,23.16,23.21,23.21,23.22,23.25,23.39,23.41,23.45,23.46,23.44,23.54,23.62,23.86,24.07,24.13,24.12) > 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,] 18.94 19.31 20.69 21.81 23.01 23.25 NA [2,] 18.97 19.47 20.93 21.89 23.11 23.39 NA [3,] 19.00 19.70 20.98 22.21 23.18 23.41 NA [4,] 19.08 19.76 21.11 22.37 23.18 23.45 NA [5,] 19.18 19.90 21.14 22.47 23.21 23.46 NA [6,] 19.24 19.97 21.16 22.51 23.22 23.44 NA [7,] 19.23 20.10 21.32 22.55 23.12 23.54 NA [8,] 19.25 20.26 21.32 22.61 23.15 23.62 NA [9,] 19.30 20.44 21.48 22.58 23.16 23.86 NA [10,] 19.33 20.43 21.58 22.85 23.21 24.07 NA [11,] 19.35 20.57 21.74 22.93 23.21 24.13 NA [12,] 19.35 20.60 21.75 22.98 23.22 24.12 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/wessaorg/rcomp/tmp/1sy591322505378.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/wessaorg/rcomp/tmp/2g17j1322505378.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/wessaorg/rcomp/tmp/3tfm11322505378.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/wessaorg/rcomp/tmp/4ht6l1322505378.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] [1,] 18.94 18.97 19.000 19.08 19.180 19.240 19.230 19.250 19.30 19.330 19.350 [2,] 19.31 19.47 19.700 19.76 19.900 19.970 20.100 20.260 20.44 20.430 20.570 [3,] 21.25 21.41 21.595 21.74 21.805 21.835 21.935 21.965 22.03 22.215 22.335 [4,] 23.01 23.11 23.180 23.18 23.210 23.220 23.120 23.150 23.16 23.210 23.210 [5,] 23.25 23.39 23.410 23.45 23.460 23.440 23.540 23.620 23.86 24.070 24.130 [,12] [1,] 19.350 [2,] 20.600 [3,] 22.365 [4,] 23.220 [5,] 24.120 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 18.86338 19.06208 19.35029 19.53399 19.66994 19.73865 19.987 20.10086 [2,] 23.63662 23.75792 23.83971 23.94601 23.94006 23.93135 23.883 23.82914 [,9] [,10] [,11] [,12] [1,] 20.27551 20.42181 20.63211 20.67502 [2,] 23.78449 24.00819 24.03789 24.05498 $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(18.94, 19.31, 21.25, 23.01, 23.25, 18.97, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/56kv91322505378.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,] 18.940 19.310 20.690 21.81 23.110 23.250 NA [2,] 19.040 19.730 21.045 22.29 23.135 23.425 NA [3,] 19.235 20.035 21.240 22.53 23.180 23.500 NA [4,] 19.315 20.435 21.530 22.73 23.210 23.965 NA [5,] 19.350 20.600 21.750 22.98 23.220 24.130 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 19.10957 19.71344 21.01879 22.32931 23.14579 23.2537 NA [2,] 19.36043 20.35656 21.46121 22.73069 23.21421 23.7463 NA $out [1] 23.01 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(18.94, 19.04, 19.235, 19.315, 19.35, 19.31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6j4en1322505378.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,] 1.722642 4.20 2.27250 [2,] 1.736869 4.31 2.35875 [3,] 1.788525 4.39 2.67375 [4,] 1.819529 4.65 2.89875 [5,] 1.838844 4.78 3.05500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.750823 4.234924 2.427452 [2,] 1.826227 4.545076 2.920048 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.72264235018958, 1.73686888108259, 1.78852496629516, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1sy591322505378.ps tmp/1sy591322505378.png",intern=TRUE)) character(0) > try(system("convert tmp/2g17j1322505378.ps tmp/2g17j1322505378.png",intern=TRUE)) character(0) > try(system("convert tmp/3tfm11322505378.ps tmp/3tfm11322505378.png",intern=TRUE)) character(0) > try(system("convert tmp/4ht6l1322505378.ps tmp/4ht6l1322505378.png",intern=TRUE)) character(0) > try(system("convert tmp/56kv91322505378.ps tmp/56kv91322505378.png",intern=TRUE)) character(0) > try(system("convert tmp/6j4en1322505378.ps tmp/6j4en1322505378.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.345 0.285 1.634