R version 3.1.0 (2014-04-10) -- "Spring Dance" Copyright (C) 2014 The R Foundation for Statistical Computing Platform: i686-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(0.978,0.973,0.96,0.978,0.985,1.035,1.015,1.05,1.022,1.042,1.058,1.056,1.098,1.097,1.139,1.182,1.189,1.191,1.168,1.168,1.177,1.184,1.2,1.251,1.288,1.313,1.363,1.377,1.342,1.334,1.348,1.327,1.349,1.361,1.393,1.38,1.421,1.432,1.457,1.453,1.428,1.383,1.408,1.458,1.474,1.491,1.476,1.446,1.451,1.472,1.449,1.415,1.39,1.394,1.418,1.426,1.437,1.406,1.387,1.404) > par20 = '' > par19 = '' > par18 = '' > par17 = '' > par16 = '' > par15 = '' > par14 = '' > par13 = '' > par12 = '' > par11 = '' > par10 = '' > par9 = '' > par8 = '' > par7 = '' > par6 = '' > par5 = '' > par4 = '' > par3 = '' > par2 = '' > par1 = '12' > par1 <- as.numeric(par1) > (n <- length(x)) [1] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.978 1.098 1.288 1.421 1.451 NA [2,] 0.973 1.097 1.313 1.432 1.472 NA [3,] 0.960 1.139 1.363 1.457 1.449 NA [4,] 0.978 1.182 1.377 1.453 1.415 NA [5,] 0.985 1.189 1.342 1.428 1.390 NA [6,] 1.035 1.191 1.334 1.383 1.394 NA [7,] 1.015 1.168 1.348 1.408 1.418 NA [8,] 1.050 1.168 1.327 1.458 1.426 NA [9,] 1.022 1.177 1.349 1.474 1.437 NA [10,] 1.042 1.184 1.361 1.491 1.406 NA [11,] 1.058 1.200 1.393 1.476 1.387 NA [12,] 1.056 1.251 1.380 1.446 1.404 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/1qv1l1400800492.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/2uonj1400800492.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/3m0qt1400800492.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/4l1dz1400800492.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] [,12] [1,] 0.978 0.973 0.960 0.978 0.985 1.035 1.015 1.050 1.022 1.042 1.058 1.056 [2,] 1.098 1.097 1.139 1.182 1.189 1.191 1.168 1.168 1.177 1.184 1.200 1.251 [3,] 1.288 1.313 1.363 1.377 1.342 1.334 1.348 1.327 1.349 1.361 1.387 1.380 [4,] 1.421 1.432 1.449 1.415 1.390 1.383 1.408 1.426 1.437 1.406 1.393 1.404 [5,] 1.451 1.472 1.457 1.453 1.428 1.394 1.418 1.458 1.474 1.491 1.476 1.446 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.059769 1.07629 1.143955 1.212363 1.199974 1.198333 1.178417 1.144698 [2,] 1.516231 1.54971 1.582045 1.541637 1.484026 1.469667 1.517583 1.509302 [,9] [,10] [,11] [,12] [1,] 1.165285 1.204135 1.250627 1.271891 [2,] 1.532715 1.517865 1.523373 1.488109 $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(0.978, 1.098, 1.288, 1.421, 1.451, 0.973, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5u78w1400800492.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] [1,] 0.9600 1.1390 1.2880 1.3830 1.3870 NA [2,] 0.9780 1.1535 1.3305 1.4245 1.3990 NA [3,] 1.0185 1.1795 1.3485 1.4495 1.4165 NA [4,] 1.0460 1.1900 1.3700 1.4660 1.4430 NA [5,] 1.0580 1.2000 1.3930 1.4910 1.4720 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.9874847 1.162852 1.330484 1.430572 1.396431 NA [2,] 1.0495153 1.196148 1.366516 1.468428 1.436569 NA $out [1] 1.098 1.097 1.251 $group [1] 2 2 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(0.96, 0.978, 1.0185, 1.046, 1.058, 1.139, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/67puk1400800492.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,] 0.1530304 0.3590 0.1530 [2,] 0.1718210 0.4055 0.1970 [3,] 0.1815519 0.4460 0.2365 [4,] 0.2019987 0.4740 0.2850 [5,] 0.2172874 0.4990 0.3350 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1677877 0.4147567 0.1963626 [2,] 0.1953162 0.4772433 0.2766374 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.15303038913889, 0.171820966434487, 0.181551945893168, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qv1l1400800492.ps tmp/1qv1l1400800492.png",intern=TRUE)) character(0) > try(system("convert tmp/2uonj1400800492.ps tmp/2uonj1400800492.png",intern=TRUE)) character(0) > try(system("convert tmp/3m0qt1400800492.ps tmp/3m0qt1400800492.png",intern=TRUE)) character(0) > try(system("convert tmp/4l1dz1400800492.ps tmp/4l1dz1400800492.png",intern=TRUE)) character(0) > try(system("convert tmp/5u78w1400800492.ps tmp/5u78w1400800492.png",intern=TRUE)) character(0) > try(system("convert tmp/67puk1400800492.ps tmp/67puk1400800492.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.742 0.515 3.297