R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(0.22,0.22,0.2,0.21,0.21,0.19,0.19,0.18,0.18,0.19,0.18,0.17,0.17,0.17,0.18,0.2,0.2,0.2,0.22,0.23,0.25,0.25,0.27,0.29,0.3,0.31,0.33,0.31,0.33,0.33,0.35,0.37,0.47,0.45,0.45,0.4,0.34,0.35,0.34,0.35,0.36,0.37,0.36,0.35,0.36,0.33,0.3,0.28,0.28,0.28,0.3,0.32,0.32,0.3,0.3,0.31,0.33,0.34,0.31,0.33,0.35,0.38,0.4,0.32,0.29,0.3,0.3,0.32,0.32,0.32,0.32,0.32,0.33,0.31,0.33,0.35,0.37,0.37,0.38,0.42,0.42,0.49,0.45,0.41,0.4,0.42,0.47,0.49,0.47,0.52,0.56,0.57,0.61,0.52,0.5,0.5) > 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,] 0.22 0.17 0.30 0.34 0.28 0.35 0.33 0.40 NA [2,] 0.22 0.17 0.31 0.35 0.28 0.38 0.31 0.42 NA [3,] 0.20 0.18 0.33 0.34 0.30 0.40 0.33 0.47 NA [4,] 0.21 0.20 0.31 0.35 0.32 0.32 0.35 0.49 NA [5,] 0.21 0.20 0.33 0.36 0.32 0.29 0.37 0.47 NA [6,] 0.19 0.20 0.33 0.37 0.30 0.30 0.37 0.52 NA [7,] 0.19 0.22 0.35 0.36 0.30 0.30 0.38 0.56 NA [8,] 0.18 0.23 0.37 0.35 0.31 0.32 0.42 0.57 NA [9,] 0.18 0.25 0.47 0.36 0.33 0.32 0.42 0.61 NA [10,] 0.19 0.25 0.45 0.33 0.34 0.32 0.49 0.52 NA [11,] 0.18 0.27 0.45 0.30 0.31 0.32 0.45 0.50 NA [12,] 0.17 0.29 0.40 0.28 0.33 0.32 0.41 0.50 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/1c6pp1244305557.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/2ghzj1244305557.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/3jdkv1244305557.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/4v3fw1244305557.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,] 0.170 0.170 0.18 0.20 0.200 0.190 0.190 0.180 0.180 0.190 0.180 0.170 [2,] 0.250 0.250 0.25 0.26 0.250 0.250 0.260 0.270 0.285 0.285 0.285 0.285 [3,] 0.315 0.310 0.33 0.32 0.325 0.315 0.325 0.335 0.345 0.335 0.315 0.325 [4,] 0.345 0.365 0.37 0.35 0.365 0.370 0.370 0.395 0.445 0.470 0.450 0.405 [5,] 0.400 0.420 0.47 0.35 0.470 0.520 0.380 0.570 0.610 0.520 0.500 0.500 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.2619316 0.2457593 0.2629663 0.2697247 0.2607593 0.2479663 0.2635524 [2,] 0.3680684 0.3742407 0.3970337 0.3702753 0.3892407 0.3820337 0.3864476 [,8] [,9] [,10] [,11] [,12] [1,] 0.2651732 0.2556217 0.2316563 0.2228286 0.2579663 [2,] 0.4048268 0.4343783 0.4383437 0.4071714 0.3920337 $out [1] 0.49 0.56 $group [1] 4 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.17, 0.25, 0.315, 0.345, 0.4, 0.17, 0.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5j0561244305557.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,] 0.17 0.17 0.300 0.300 0.280 0.290 0.310 0.40 NA [2,] 0.18 0.19 0.320 0.335 0.300 0.310 0.340 0.47 NA [3,] 0.19 0.21 0.340 0.350 0.310 0.320 0.375 0.50 NA [4,] 0.21 0.25 0.425 0.360 0.325 0.335 0.420 0.54 NA [5,] 0.22 0.29 0.470 0.370 0.340 0.350 0.490 0.61 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1763168 0.1826336 0.2921088 0.3385973 0.2985973 0.3085973 0.3385115 [2,] 0.2036832 0.2373664 0.3878912 0.3614027 0.3214027 0.3314027 0.4114885 [,8] [,9] [1,] 0.4680725 NA [2,] 0.5319275 NA $out [1] 0.28 0.38 0.40 $group [1] 4 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.17, 0.18, 0.19, 0.21, 0.22, 0.17, 0.19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6845w1244305557.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.07434235 0.230 0.0650 [2,] 0.08918360 0.280 0.0825 [3,] 0.10233052 0.325 0.0925 [4,] 0.11483280 0.350 0.1225 [5,] 0.13349692 0.430 0.1575 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.09063175 0.2930725 0.07425573 [2,] 0.11402930 0.3569275 0.11074427 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0743423547803385, 0.0891836026907788, 0.10233052249978, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1c6pp1244305557.ps tmp/1c6pp1244305557.png") > system("convert tmp/2ghzj1244305557.ps tmp/2ghzj1244305557.png") > system("convert tmp/3jdkv1244305557.ps tmp/3jdkv1244305557.png") > system("convert tmp/4v3fw1244305557.ps tmp/4v3fw1244305557.png") > system("convert tmp/5j0561244305557.ps tmp/5j0561244305557.png") > system("convert tmp/6845w1244305557.ps tmp/6845w1244305557.png") > > > proc.time() user system elapsed 1.065 0.818 1.631