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(105.23,105.22,105.13,105,105.01,105.01,105.01,105.01,105.57,106.05,106.09,106.2,106.19,106.2,106.09,106.23,106.23,106.22,106.22,106.61,106.95,107.74,107.8,107.8,107.2,107.56,107.72,108.14,108.16,108.16,108.16,108.1,108.95,110.49,110.72,110.82,110.82,110.75,110.71,110.86,110.84,110.84,110.84,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.47,118.49,118.45,118.54,118.55,118.55,118.55,119.04,121.37,122,122.14) > 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,] 105.23 106.19 107.20 110.82 113.15 118.08 NA [2,] 105.22 106.20 107.56 110.75 113.21 118.47 NA [3,] 105.13 106.09 107.72 110.71 113.37 118.49 NA [4,] 105.00 106.23 108.14 110.86 113.47 118.45 NA [5,] 105.01 106.23 108.16 110.84 113.71 118.54 NA [6,] 105.01 106.22 108.16 110.84 113.71 118.55 NA [7,] 105.01 106.22 108.16 110.84 113.71 118.55 NA [8,] 105.01 106.61 108.10 110.92 113.80 118.55 NA [9,] 105.57 106.95 108.95 111.46 115.46 119.04 NA [10,] 106.05 107.74 110.49 112.46 117.00 121.37 NA [11,] 106.09 107.80 110.72 113.04 117.94 122.00 NA [12,] 106.20 107.80 110.82 113.15 118.08 122.14 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/1d76e1291230541.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/www/html/rcomp/tmp/25ynz1291230541.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/www/html/rcomp/tmp/35ynz1291230541.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/www/html/rcomp/tmp/45ynz1291230541.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] [1,] 105.23 105.220 105.130 105.00 105.01 105.01 105.01 105.01 105.570 106.050 [2,] 106.19 106.200 106.090 106.23 106.23 106.22 106.22 106.61 106.950 107.740 [3,] 109.01 109.155 109.215 109.50 109.50 109.50 109.50 109.51 110.205 111.475 [4,] 113.15 113.210 113.370 113.47 113.71 113.71 113.71 113.80 115.460 117.000 [5,] 118.08 118.470 118.490 118.45 118.54 118.55 118.55 118.55 119.040 121.370 [,11] [,12] [1,] 106.09 106.200 [2,] 107.80 107.800 [3,] 111.88 111.985 [4,] 117.94 118.080 [5,] 122.00 122.140 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.5206 104.6333 104.5192 104.8300 104.6752 104.6687 104.6687 104.8722 [2,] 113.4994 113.6767 113.9108 114.1700 114.3248 114.3313 114.3313 114.1478 [,9] [,10] [,11] [,12] [1,] 104.7158 105.502 105.3394 105.3541 [2,] 115.6942 117.448 118.4206 118.6159 $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(105.23, 106.19, 109.01, 113.15, 118.08, 105.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gqnk1291230541.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,] 105.000 106.090 107.20 110.71 113.15 118.080 NA [2,] 105.010 106.210 107.91 110.83 113.42 118.480 NA [3,] 105.175 106.230 108.16 110.85 113.71 118.550 NA [4,] 105.810 107.345 109.72 111.96 116.23 120.205 NA [5,] 106.200 107.800 110.82 113.15 118.08 122.140 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 104.8101 105.7123 107.3344 110.3346 112.4283 117.7632 NA [2,] 105.5399 106.7477 108.9856 111.3654 114.9917 119.3368 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(105, 105.01, 105.175, 105.81, 106.2, 106.09, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6gqnk1291230541.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,] 4.917631 12.850 6.05500 [2,] 5.029766 13.405 6.11750 [3,] 5.079168 13.535 6.28375 [4,] 5.484799 14.430 7.22375 [5,] 6.122008 15.940 8.29250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.871624 13.06749 5.779182 [2,] 5.286711 14.00251 6.788318 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4.9176312048248, 5.02976648233796, 5.07916765981321, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1d76e1291230541.ps tmp/1d76e1291230541.png",intern=TRUE)) character(0) > try(system("convert tmp/25ynz1291230541.ps tmp/25ynz1291230541.png",intern=TRUE)) character(0) > try(system("convert tmp/35ynz1291230541.ps tmp/35ynz1291230541.png",intern=TRUE)) character(0) > try(system("convert tmp/45ynz1291230541.ps tmp/45ynz1291230541.png",intern=TRUE)) character(0) > try(system("convert tmp/5gqnk1291230541.ps tmp/5gqnk1291230541.png",intern=TRUE)) character(0) > try(system("convert tmp/6gqnk1291230541.ps tmp/6gqnk1291230541.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.051 0.801 3.559