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(49.98,50.12,50.37,50.39,50.34,50.32,50.32,50.32,50.67,50.86,50.95,51.02,51.02,51.06,50.9,51.23,51.29,51.3,51.3,51.3,51.46,51.47,51.77,51.82,51.82,51.84,51.9,51.94,52.22,52.27,52.27,52.28,52.53,52.73,52.72,52.67,52.67,52.65,52.69,52.73,52.84,52.83,52.83,52.84,52.82,53.09,53.4,53.43,53.43,53.42,53.6,53.69,54.05,54.04,54.04,54.08,54.05,54.39,54.38,54.46) > 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] 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,] 49.98 51.02 51.82 52.67 53.43 NA [2,] 50.12 51.06 51.84 52.65 53.42 NA [3,] 50.37 50.90 51.90 52.69 53.60 NA [4,] 50.39 51.23 51.94 52.73 53.69 NA [5,] 50.34 51.29 52.22 52.84 54.05 NA [6,] 50.32 51.30 52.27 52.83 54.04 NA [7,] 50.32 51.30 52.27 52.83 54.04 NA [8,] 50.32 51.30 52.28 52.84 54.08 NA [9,] 50.67 51.46 52.53 52.82 54.05 NA [10,] 50.86 51.47 52.73 53.09 54.39 NA [11,] 50.95 51.77 52.72 53.40 54.38 NA [12,] 51.02 51.82 52.67 53.43 54.46 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/13ezu1323274925.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/2oaxu1323274925.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/35ck51323274925.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/42zog1323274925.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,] 49.98 50.12 50.37 50.39 50.34 50.32 50.32 50.32 50.67 50.86 50.95 51.02 [2,] 51.02 51.06 50.90 51.23 51.29 51.30 51.30 51.30 51.46 51.47 51.77 51.82 [3,] 51.82 51.84 51.90 51.94 52.22 52.27 52.27 52.28 52.53 52.73 52.72 52.67 [4,] 52.67 52.65 52.69 52.73 52.84 52.83 52.83 52.84 52.82 53.09 53.40 53.43 [5,] 53.43 53.42 53.60 53.69 54.05 54.04 54.04 54.08 54.05 54.39 54.38 54.46 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 50.65411 50.71651 50.63519 50.8801 51.12477 51.18891 51.18891 51.19184 [2,] 52.98589 52.96349 53.16481 52.9999 53.31523 53.35109 53.35109 53.36816 [,9] [,10] [,11] [,12] [1,] 51.56903 51.58531 51.56825 51.53238 [2,] 53.49097 53.87469 53.87175 53.80762 $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(49.98, 51.02, 51.82, 52.67, 53.43, 50.12, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5uz6b1323274925.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,] 49.980 50.900 51.82 52.650 53.420 NA [2,] 50.320 51.145 51.92 52.710 53.645 NA [3,] 50.355 51.300 52.27 52.830 54.045 NA [4,] 50.765 51.465 52.60 52.965 54.230 NA [5,] 51.020 51.820 52.73 53.090 54.460 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 50.15203 51.15405 51.95985 52.71369 53.77818 NA [2,] 50.55797 51.44595 52.58015 52.94631 54.31182 NA $out [1] 53.40 53.43 $group [1] 4 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(49.98, 50.32, 50.355, 50.765, 51.02, 50.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6xzic1323274925.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.282334 3.230 1.500 [2,] 1.303965 3.340 1.530 [3,] 1.349061 3.445 1.570 [4,] 1.424208 3.715 1.625 [5,] 1.439472 3.760 1.650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.294217 3.27396 1.52667 [2,] 1.403905 3.61604 1.61333 $out [1] 1.79 1.36 $group [1] 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.28233380989507, 1.30396469025854, 1.34906085378596, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/13ezu1323274925.ps tmp/13ezu1323274925.png",intern=TRUE)) character(0) > try(system("convert tmp/2oaxu1323274925.ps tmp/2oaxu1323274925.png",intern=TRUE)) character(0) > try(system("convert tmp/35ck51323274925.ps tmp/35ck51323274925.png",intern=TRUE)) character(0) > try(system("convert tmp/42zog1323274925.ps tmp/42zog1323274925.png",intern=TRUE)) character(0) > try(system("convert tmp/5uz6b1323274925.ps tmp/5uz6b1323274925.png",intern=TRUE)) character(0) > try(system("convert tmp/6xzic1323274925.ps tmp/6xzic1323274925.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.401 0.271 1.680