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(1.61,1.6,1.59,1.6,1.6,1.59,1.59,1.58,1.59,1.59,1.58,1.58,1.58,1.57,1.57,1.57,1.57,1.58,1.58,1.57,1.58,1.57,1.57,1.57,1.57,1.57,1.57,1.59,1.6,1.6,1.6,1.6,1.61,1.61,1.62,1.62,1.62,1.62,1.62,1.62,1.61,1.59,1.58,1.56,1.56,1.54,1.55,1.56,1.57,1.58,1.59,1.6,1.6,1.61,1.61,1.62,1.61,1.6,1.6,1.6,1.61,1.62,1.63,1.63,1.66,1.66,1.66,1.65,1.65,1.64,1.64,1.65,1.64) > 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] 73 > (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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.61 1.58 1.57 1.62 1.57 1.61 1.64 [2,] 1.60 1.57 1.57 1.62 1.58 1.62 NA [3,] 1.59 1.57 1.57 1.62 1.59 1.63 NA [4,] 1.60 1.57 1.59 1.62 1.60 1.63 NA [5,] 1.60 1.57 1.60 1.61 1.60 1.66 NA [6,] 1.59 1.58 1.60 1.59 1.61 1.66 NA [7,] 1.59 1.58 1.60 1.58 1.61 1.66 NA [8,] 1.58 1.57 1.60 1.56 1.62 1.65 NA [9,] 1.59 1.58 1.61 1.56 1.61 1.65 NA [10,] 1.59 1.57 1.61 1.54 1.60 1.64 NA [11,] 1.58 1.57 1.62 1.55 1.60 1.64 NA [12,] 1.58 1.57 1.62 1.56 1.60 1.65 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/1n2jj1210789047.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/rcomp/tmp/2g3tt1210789047.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/rcomp/tmp/3mtjd1210789047.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/rcomp/tmp/41mm21210789047.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] [,10] [,11] [,12] [1,] 1.570 1.57 1.57 1.57 1.60 1.580 1.580 1.56 1.56 1.540 1.55 1.56 [2,] 1.575 1.57 1.57 1.59 1.60 1.590 1.580 1.57 1.58 1.570 1.57 1.57 [3,] 1.610 1.59 1.59 1.60 1.60 1.595 1.595 1.59 1.60 1.595 1.59 1.59 [4,] 1.615 1.62 1.62 1.62 1.61 1.610 1.610 1.62 1.61 1.610 1.62 1.62 [5,] 1.640 1.62 1.63 1.63 1.61 1.610 1.610 1.65 1.65 1.640 1.64 1.65 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.586113 1.557748 1.557748 1.580649 1.593550 1.582099 1.575649 1.557748 [2,] 1.633887 1.622252 1.622252 1.619351 1.606450 1.607901 1.614351 1.622252 [,9] [,10] [,11] [,12] [1,] 1.580649 1.569199 1.557748 1.557748 [2,] 1.619351 1.620801 1.622252 1.622252 $out [1] 1.57 1.66 1.66 1.66 $group [1] 5 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.57, 1.575, 1.61, 1.615, 1.64, 1.57, 1.57, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xkp41210789047.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] [,6] [,7] [1,] 1.580 1.57 1.57 1.540 1.580 1.610 1.64 [2,] 1.585 1.57 1.58 1.560 1.595 1.630 1.64 [3,] 1.590 1.57 1.60 1.585 1.600 1.645 1.64 [4,] 1.600 1.58 1.61 1.620 1.610 1.655 1.64 [5,] 1.610 1.58 1.62 1.620 1.620 1.660 1.64 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.583158 1.565439 1.586317 1.557634 1.593158 1.633597 1.64 [2,] 1.596842 1.574561 1.613683 1.612366 1.606842 1.656403 1.64 $out [1] 1.57 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.58, 1.585, 1.59, 1.6, 1.61, 1.57, 1.57, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6jgo51210789047.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,] 0.02136976 0.050 0.00750 [2,] 0.02608996 0.065 0.02375 [3,] 0.02977505 0.085 0.03500 [4,] 0.03356453 0.090 0.04250 [5,] 0.03430258 0.100 0.04250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.02636585 0.07359733 0.026448 [2,] 0.03318426 0.09640267 0.043552 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0213697605664328, 0.0260899644057377, 0.0297750544980613, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1n2jj1210789047.ps tmp/1n2jj1210789047.png") > system("convert tmp/2g3tt1210789047.ps tmp/2g3tt1210789047.png") > system("convert tmp/3mtjd1210789047.ps tmp/3mtjd1210789047.png") > system("convert tmp/41mm21210789047.ps tmp/41mm21210789047.png") > system("convert tmp/5xkp41210789047.ps tmp/5xkp41210789047.png") > system("convert tmp/6jgo51210789047.ps tmp/6jgo51210789047.png") > > > proc.time() user system elapsed 1.298 0.839 1.529