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(101.22,101.25,101.25,101.26,101.26,101.26,101.29,101.31,101.31,101.31,101.32,101.34,101.34,101.34,101.34,101.34,101.34,101.34,101.34,101.39,102.16,102.19,102.31,102.32,102.32,102.32,102.36,102.36,102.37,102.37,102.37,102.37,103.45,103.8,103.81,103.81,103.81,103.84,103.9,103.91,103.92,103.92,103.93,104,104.51,105,105.01,105.01,105.01,105.01,105.13,105.14,105.15,105.22,105.23,105.23,105.57,106.05,106.09,106.09,106.19,106.2,106.2,106.22,106.22,106.23,106.23,106.61,106.95,107.74,107.8,107.8) > 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,] 101.22 101.34 102.32 103.81 105.01 106.19 NA [2,] 101.25 101.34 102.32 103.84 105.01 106.20 NA [3,] 101.25 101.34 102.36 103.90 105.13 106.20 NA [4,] 101.26 101.34 102.36 103.91 105.14 106.22 NA [5,] 101.26 101.34 102.37 103.92 105.15 106.22 NA [6,] 101.26 101.34 102.37 103.92 105.22 106.23 NA [7,] 101.29 101.34 102.37 103.93 105.23 106.23 NA [8,] 101.31 101.39 102.37 104.00 105.23 106.61 NA [9,] 101.31 102.16 103.45 104.51 105.57 106.95 NA [10,] 101.31 102.19 103.80 105.00 106.05 107.74 NA [11,] 101.32 102.31 103.81 105.01 106.09 107.80 NA [12,] 101.34 102.32 103.81 105.01 106.09 107.80 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/1e9ic1210411602.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/2x8un1210411602.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/3pyc61210411602.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/48bdz1210411602.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] [1,] 101.220 101.25 101.25 101.260 101.260 101.260 101.29 101.310 101.31 101.31 [2,] 101.340 101.34 101.34 101.340 101.340 101.340 101.34 101.390 102.16 102.19 [3,] 103.065 103.08 103.13 103.135 103.145 103.145 103.15 103.185 103.98 104.40 [4,] 105.010 105.01 105.13 105.140 105.150 105.220 105.23 105.230 105.57 106.05 [5,] 106.190 106.20 106.20 106.220 106.220 106.230 106.23 106.610 106.95 107.74 [,11] [,12] [1,] 101.32 101.34 [2,] 102.31 102.32 [3,] 104.41 104.41 [4,] 106.09 106.09 [5,] 107.80 107.80 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.6977 100.7127 100.6853 100.6839 100.6874 100.6423 100.6408 100.7081 [2,] 105.4323 105.4473 105.5747 105.5861 105.6026 105.6477 105.6592 105.6619 [,9] [,10] [,11] [,12] [1,] 101.7804 101.9102 101.9718 101.9782 [2,] 106.1796 106.8898 106.8482 106.8418 $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(101.22, 101.34, 103.065, 105.01, 106.19, 101.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5qhbo1210411602.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,] 101.220 101.340 102.320 103.810 105.010 106.190 NA [2,] 101.255 101.340 102.360 103.905 105.135 106.210 NA [3,] 101.275 101.340 102.370 103.925 105.225 106.230 NA [4,] 101.310 102.175 103.625 104.755 105.810 107.345 NA [5,] 101.340 102.320 103.810 105.010 106.090 107.800 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 101.2499 100.9592 101.7930 103.5373 104.9171 105.7123 NA [2,] 101.3001 101.7208 102.9470 104.3127 105.5329 106.7477 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(101.22, 101.255, 101.275, 101.31, 101.34, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66a4o1210411602.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,] 2.031056 4.940 3.12500 [2,] 2.053352 4.955 3.13000 [3,] 2.070518 4.970 3.21125 [4,] 2.283105 6.035 3.26625 [5,] 2.408912 6.480 3.30750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.965726 4.477405 3.149105 [2,] 2.175310 5.462595 3.273395 $out [1] 2.8225 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.03105555479575, 2.05335176561937, 2.07051795667891, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1e9ic1210411602.ps tmp/1e9ic1210411602.png") > system("convert tmp/2x8un1210411602.ps tmp/2x8un1210411602.png") > system("convert tmp/3pyc61210411602.ps tmp/3pyc61210411602.png") > system("convert tmp/48bdz1210411602.ps tmp/48bdz1210411602.png") > system("convert tmp/5qhbo1210411602.ps tmp/5qhbo1210411602.png") > system("convert tmp/66a4o1210411602.ps tmp/66a4o1210411602.png") > > > proc.time() user system elapsed 1.292 0.837 1.603