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(106.09,106.19,106.2,106.22,106.22,106.23,106.23,106.61,106.95,107.2,107.56,107.72,107.74,107.8,107.8,108.1,108.14,108.16,108.16,108.16,108.95,110.49,110.71,110.72,110.75,110.82,110.82,110.84,110.84,110.84,110.86,110.92,111.46,112.46,113.04,113.15,113.15,113.21,113.37,113.47,113.71,113.71,113.71,113.8,115.46,117,117.94,118.08,118.08,118.45,118.47,118.49,118.54,118.55,118.55,118.55,119.04,121.37,121.73,121.83,121.83,121.91,122,122.03,122.14,122.14,122.23,122.49,123.02,125.98,126.13,126.39) > 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,] 106.09 107.74 110.75 113.15 118.08 121.83 NA [2,] 106.19 107.80 110.82 113.21 118.45 121.91 NA [3,] 106.20 107.80 110.82 113.37 118.47 122.00 NA [4,] 106.22 108.10 110.84 113.47 118.49 122.03 NA [5,] 106.22 108.14 110.84 113.71 118.54 122.14 NA [6,] 106.23 108.16 110.84 113.71 118.55 122.14 NA [7,] 106.23 108.16 110.86 113.71 118.55 122.23 NA [8,] 106.61 108.16 110.92 113.80 118.55 122.49 NA [9,] 106.95 108.95 111.46 115.46 119.04 123.02 NA [10,] 107.20 110.49 112.46 117.00 121.37 125.98 NA [11,] 107.56 110.71 113.04 117.94 121.73 126.13 NA [12,] 107.72 110.72 113.15 118.08 121.83 126.39 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/1pgq91322684831.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/2yusf1322684831.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/3bhah1322684831.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/4zb9q1322684831.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] [1,] 106.09 106.190 106.200 106.220 106.220 106.230 106.230 106.61 106.95 [2,] 107.74 107.800 107.800 108.100 108.140 108.160 108.160 108.16 108.95 [3,] 111.95 112.015 112.095 112.155 112.275 112.275 112.285 112.36 113.46 [4,] 118.08 118.450 118.470 118.490 118.540 118.550 118.550 118.55 119.04 [5,] 121.83 121.910 122.000 122.030 122.140 122.140 122.230 122.49 123.02 [,10] [,11] [,12] [1,] 107.20 107.56 107.720 [2,] 110.49 110.71 110.720 [3,] 114.73 115.49 115.615 [4,] 121.37 121.73 121.830 [5,] 125.98 126.13 126.390 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 105.2804 105.1454 105.2125 105.4531 105.5667 105.5731 105.5831 105.6581 [2,] 118.6196 118.8846 118.9775 118.8569 118.9833 118.9769 118.9869 119.0619 [,9] [,10] [,11] [,12] [1,] 106.9516 107.712 108.3817 108.4487 [2,] 119.9684 121.748 122.5983 122.7813 $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(106.09, 107.74, 111.95, 118.08, 121.83, 106.19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/552gf1322684831.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,] 106.090 107.74 110.75 113.15 118.080 121.830 NA [2,] 106.210 107.95 110.83 113.42 118.480 122.015 NA [3,] 106.230 108.16 110.85 113.71 118.550 122.185 NA [4,] 107.075 109.72 111.96 116.23 120.205 124.500 NA [5,] 107.720 110.72 113.15 118.08 121.830 126.390 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 105.8355 107.3527 110.3346 112.4283 117.7632 121.0516 NA [2,] 106.6245 108.9673 111.3654 114.9917 119.3368 123.3184 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(106.09, 106.21, 106.23, 107.075, 107.72, 107.74, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6nr6a1322684831.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,] 6.070493 15.720 8.3550 [2,] 6.128669 15.805 8.5075 [3,] 6.148475 15.915 8.5425 [4,] 6.599788 17.320 8.9675 [5,] 7.074339 18.780 9.5650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.933595 15.224 8.332691 [2,] 6.363355 16.606 8.752309 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(6.07049256650562, 6.12866939193776, 6.14847528522223, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1pgq91322684831.ps tmp/1pgq91322684831.png",intern=TRUE)) character(0) > try(system("convert tmp/2yusf1322684831.ps tmp/2yusf1322684831.png",intern=TRUE)) character(0) > try(system("convert tmp/3bhah1322684831.ps tmp/3bhah1322684831.png",intern=TRUE)) character(0) > try(system("convert tmp/4zb9q1322684831.ps tmp/4zb9q1322684831.png",intern=TRUE)) character(0) > try(system("convert tmp/552gf1322684831.ps tmp/552gf1322684831.png",intern=TRUE)) character(0) > try(system("convert tmp/6nr6a1322684831.ps tmp/6nr6a1322684831.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.392 0.290 1.691