R version 2.6.2 (2008-02-08) Copyright (C) 2008 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(138463,138529,138421,138674,138848,139174,139565,139585,139500,139756,140245,140138,140224,140354,140563,141244,141597,141708,142055,142457,142429,142613,142564,142778,143086,143362,143619,143791,144088,144369,144295,144671,144846,145395,145583,145949,145915,145888,146145,145713,145913,146087,146045,145753,146260,146016,146647,146211,146248) > 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] 49 > (np <- floor(n / par1)) [1] 4 > 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 4 4 4 4 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 138463 140224 143086 145915 146248 [2,] 138529 140354 143362 145888 NA [3,] 138421 140563 143619 146145 NA [4,] 138674 141244 143791 145713 NA [5,] 138848 141597 144088 145913 NA [6,] 139174 141708 144369 146087 NA [7,] 139565 142055 144295 146045 NA [8,] 139585 142457 144671 145753 NA [9,] 139500 142429 144846 146260 NA [10,] 139756 142613 145395 146016 NA [11,] 140245 142564 145583 146647 NA [12,] 140138 142778 145949 146211 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/freestat/rcomp/tmp/19ca11211030440.ps",horizontal=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/freestat/rcomp/tmp/2fyff1211030440.ps",horizontal=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/freestat/rcomp/tmp/3hwi01211030440.ps",horizontal=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/freestat/rcomp/tmp/4s9fw1211030440.ps",horizontal=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,] 138463 138529.0 138421 138674.0 138848.0 139174.0 139565 139585 139500.0 [2,] 140224 139441.5 139492 139959.0 140222.5 140441.0 140810 141021 140964.5 [3,] 143086 141858.0 142091 142517.5 142842.5 143038.5 143175 143564 143637.5 [4,] 145915 144625.0 144882 144752.0 145000.5 145228.0 145170 145212 145553.0 [5,] 146248 145888.0 146145 145713.0 145913.0 146087.0 146045 145753 146260.0 [,10] [,11] [,12] [1,] 139756.0 140245.0 140138.0 [2,] 141184.5 141404.5 141458.0 [3,] 144004.0 144073.5 144363.5 [4,] 145705.5 146115.0 146080.0 [5,] 146016.0 146647.0 146211.0 $n [1] 5 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 139064.8 137763.0 137832.9 138731.0 139067.9 139256.8 139730.6 140253.1 [2,] 147107.2 145953.0 146349.1 146304.0 146617.1 146820.2 146619.4 146874.9 [,9] [,10] [,11] [,12] [1,] 140012.6 140432.4 140352.2 140712.1 [2,] 147262.4 147575.6 147794.8 148014.9 $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(138463, 140224, 143086, 145915, 146248, 138529, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5cuk51211030440.ps",horizontal=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] [1,] 138421.0 140224.0 143086.0 145713.0 146248 [2,] 138601.5 140903.5 143705.0 145900.5 146248 [3,] 139337.0 141881.5 144332.0 146030.5 146248 [4,] 139670.5 142510.5 145120.5 146178.0 146248 [5,] 140245.0 142778.0 145949.0 146260.0 146248 $n [1] 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [1,] 138849.4 141148.5 143686.4 145903.9 146248 [2,] 139824.6 142614.5 144977.6 146157.1 146248 $out [1] 146647 $group [1] 4 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(138421, 138601.5, 139337, 139670.5, 140245, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6evvw1211030440.ps",horizontal=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,] 2724.826 6073.0 3202.500 [2,] 2875.046 6331.0 3568.625 [3,] 2998.275 6836.5 3697.000 [4,] 3160.900 7212.0 3996.125 [5,] 3432.137 7785.0 4223.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2867.895 6434.67 3502.014 [2,] 3128.655 7238.33 3891.986 $out [1] 5691 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2724.82629415773, 2875.04634300340, 2998.27513711267, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/19ca11211030440.ps tmp/19ca11211030440.png") > system("convert tmp/2fyff1211030440.ps tmp/2fyff1211030440.png") > system("convert tmp/3hwi01211030440.ps tmp/3hwi01211030440.png") > system("convert tmp/4s9fw1211030440.ps tmp/4s9fw1211030440.png") > system("convert tmp/5cuk51211030440.ps tmp/5cuk51211030440.png") > system("convert tmp/6evvw1211030440.ps tmp/6evvw1211030440.png") > > > proc.time() user system elapsed 1.837 1.199 1.964