R version 2.8.0 (2008-10-20) 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(102.9,102.9,102.9,102.9,104.2,104.7,104.7,104.7,104.7,104.7,104.7,104.7,104.7,104.7,104.7,104.7,106,107,107,107,107,107,107,107,107,107,107,107,107.6,109.9,109.9,109.9,109.9,109.9,109.9,109.9,109.9,109.9,109.9,109.9,110.6,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,114.3,119.01,119.01,119.01,119.01,119.01,119.01,119.01,119.01,119.01,119.01,119.01,121.27,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,123.54,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,125.24,128.35,128.35,128.35,128.35,128.35,128.35,128.35) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [2,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [3,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [4,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [5,] 104.2 106.0 107.6 110.6 114.30 121.27 123.54 125.24 NA [6,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [7,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [8,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [9,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [10,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [11,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [12,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 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/1dqhu1231237631.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/2rhqo1231237631.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/3egjj1231237631.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/4f7411231237631.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,] 102.900 102.900 102.900 102.900 104.200 104.700 104.700 104.700 104.700 [2,] 105.850 105.850 105.850 105.850 106.800 108.450 108.450 108.450 108.450 [3,] 112.100 112.100 112.100 112.100 112.450 116.655 116.655 116.655 116.655 [4,] 121.275 121.275 121.275 121.275 122.405 124.390 124.390 124.390 124.390 [5,] 125.240 125.240 125.240 125.240 125.240 128.350 128.350 128.350 128.350 [,10] [,11] [,12] [1,] 104.700 104.700 104.700 [2,] 108.450 108.450 108.450 [3,] 116.655 116.655 116.655 [4,] 124.390 124.390 124.390 [5,] 128.350 128.350 128.350 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.4834 103.4834 103.4834 103.4834 103.7328 107.7507 107.7507 107.7507 [2,] 120.7166 120.7166 120.7166 120.7166 121.1672 125.5593 125.5593 125.5593 [,9] [,10] [,11] [,12] [1,] 107.7507 107.7507 107.7507 107.7507 [2,] 125.5593 125.5593 125.5593 125.5593 $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(102.9, 105.85, 112.1, 121.275, 125.24, 102.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5sv2y1231237632.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] [,8] [,9] [1,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [2,] 102.9 104.7 107.0 109.9 114.30 119.01 123.54 125.24 NA [3,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [4,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA [5,] 104.7 107.0 109.9 114.3 119.01 123.54 125.24 128.35 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.879 105.9510 108.5773 112.2931 116.8617 121.4738 124.4646 126.9315 [2,] 105.521 108.0490 111.2227 116.3069 121.1583 125.6062 126.0154 129.7685 [,9] [1,] NA [2,] NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(102.9, 102.9, 104.7, 104.7, 104.7, 104.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ncco1231237632.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,] 8.304747 21.04 13.7175 [2,] 8.572304 22.34 13.7175 [3,] 8.868577 23.65 14.7900 [4,] 8.868577 23.65 14.7900 [5,] 8.868577 23.65 14.7900 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8.733445 23.0525 14.30083 [2,] 9.003709 24.2475 15.27917 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(8.30474724393911, 8.57230413682842, 8.8685769513974, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1dqhu1231237631.ps tmp/1dqhu1231237631.png") > system("convert tmp/2rhqo1231237631.ps tmp/2rhqo1231237631.png") > system("convert tmp/3egjj1231237631.ps tmp/3egjj1231237631.png") > system("convert tmp/4f7411231237631.ps tmp/4f7411231237631.png") > system("convert tmp/5sv2y1231237632.ps tmp/5sv2y1231237632.png") > system("convert tmp/6ncco1231237632.ps tmp/6ncco1231237632.png") > > > proc.time() user system elapsed 1.104 0.855 1.470