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(74.96,75.19,74.98,75.54,75.61,75.59,75.58,75.44,75.37,75.22,75.33,75.33,78.33,78.09,77.88,77.61,77.43,77.47,77.47,77.46,77.76,78.29,78.56,78.55,78.55,78.59,77.95,78.5,78.45,78.31,78.31,78.33,78.28,79.06,79.2,79.26,79.26,79.38,79.35,78.91,79.11,79.22,79.22,79.21,79.26,79.82,80.04,80.2,80.2,80.27,80.37,80.57,79.99,79.86,79.86,79.81,79.88,80.2,80.53,80.52,80.52,80.48,80.29,79.54,79.39,79.3,79.3,79.49,79.63,79.74,80.17,80.06) > 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,] 74.96 78.33 78.55 79.26 80.20 80.52 NA [2,] 75.19 78.09 78.59 79.38 80.27 80.48 NA [3,] 74.98 77.88 77.95 79.35 80.37 80.29 NA [4,] 75.54 77.61 78.50 78.91 80.57 79.54 NA [5,] 75.61 77.43 78.45 79.11 79.99 79.39 NA [6,] 75.59 77.47 78.31 79.22 79.86 79.30 NA [7,] 75.58 77.47 78.31 79.22 79.86 79.30 NA [8,] 75.44 77.46 78.33 79.21 79.81 79.49 NA [9,] 75.37 77.76 78.28 79.26 79.88 79.63 NA [10,] 75.22 78.29 79.06 79.82 80.20 79.74 NA [11,] 75.33 78.56 79.20 80.04 80.53 80.17 NA [12,] 75.33 78.55 79.26 80.20 80.52 80.06 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/1jzl01322944891.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/299g41322944891.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/35kcs1322944891.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/41fau1322944891.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,] 78.330 75.190 74.98 75.540 75.61 75.590 75.580 75.44 75.37 78.29 78.56 [2,] 78.330 78.090 77.88 77.610 77.43 77.470 77.470 77.46 77.76 78.29 78.56 [3,] 78.905 78.985 78.65 78.705 78.78 78.765 78.765 78.77 78.77 79.40 79.62 [4,] 80.200 80.270 80.29 79.540 79.39 79.300 79.300 79.49 79.63 79.82 80.17 [5,] 80.520 80.480 80.37 80.570 79.99 79.860 79.860 79.81 79.88 80.20 80.53 [,12] [1,] 78.55 [2,] 78.55 [3,] 79.66 [4,] 80.20 [5,] 80.52 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 77.69879 77.57883 77.09547 77.46009 77.51574 77.58459 77.58459 77.46058 [2,] 80.11121 80.39117 80.20453 79.94991 80.04426 79.94541 79.94541 80.07942 [,9] [,10] [,11] [,12] [1,] 77.56379 78.4131 78.5815 78.5957 [2,] 79.97621 80.3869 80.6585 80.7243 $out [1] 74.96 75.22 75.33 75.33 $group [1] 1 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(78.33, 78.33, 78.905, 80.2, 80.52, 75.19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5kb3z1322944892.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,] 74.960 77.43 77.950 78.910 79.810 79.300 NA [2,] 75.205 77.47 78.310 79.215 79.870 79.440 NA [3,] 75.350 77.82 78.475 79.260 80.200 79.685 NA [4,] 75.560 78.31 78.825 79.600 80.445 80.230 NA [5,] 75.610 78.56 79.260 80.040 80.570 80.520 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 75.18808 77.43687 78.24011 79.0844 79.93774 79.32468 NA [2,] 75.51192 78.20313 78.70989 79.4356 80.46226 80.04532 NA $out [1] 80.2 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(74.96, 75.205, 75.35, 75.56, 75.61, 77.43, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6pfss1322944892.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.569247 4.270 1.31750 [2,] 1.616030 4.375 1.49375 [3,] 1.789766 5.005 1.60000 [4,] 1.934038 5.245 1.69500 [5,] 2.024618 5.560 1.83250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.644720 4.608187 1.508209 [2,] 1.934812 5.401813 1.691791 $out [1] 2.1575 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.56924716557547, 1.61602962039499, 1.78976614935733, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1jzl01322944891.ps tmp/1jzl01322944891.png",intern=TRUE)) character(0) > try(system("convert tmp/299g41322944891.ps tmp/299g41322944891.png",intern=TRUE)) character(0) > try(system("convert tmp/35kcs1322944891.ps tmp/35kcs1322944891.png",intern=TRUE)) character(0) > try(system("convert tmp/41fau1322944891.ps tmp/41fau1322944891.png",intern=TRUE)) character(0) > try(system("convert tmp/5kb3z1322944892.ps tmp/5kb3z1322944892.png",intern=TRUE)) character(0) > try(system("convert tmp/6pfss1322944892.ps tmp/6pfss1322944892.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.387 0.319 1.716