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(0.36,0.35,0.35,0.35,0.33,0.78,0.71,0.62,0.52,0.46,0.43,0.43,0.42,0.42,0.42,0.42,0.43,0.99,1.03,0.83,0.64,0.6,0.58,0.58,0.58,0.57,0.57,0.56,0.56,0.88,0.84,0.69,0.59,0.54,0.52,0.52,0.51,0.52,0.51,0.51,0.53,0.95,0.98,0.88,0.81,0.77,0.76,0.75,0.73,0.74,0.73,0.75,0.77,1.09,1.03,0.9,0.76,0.66,0.63,0.61,0.61,0.61,0.61,0.61,0.62,0.76,0.83,0.81,0.77,0.75,0.76,0.76) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.36 0.42 0.58 0.51 0.73 0.61 NA [2,] 0.35 0.42 0.57 0.52 0.74 0.61 NA [3,] 0.35 0.42 0.57 0.51 0.73 0.61 NA [4,] 0.35 0.42 0.56 0.51 0.75 0.61 NA [5,] 0.33 0.43 0.56 0.53 0.77 0.62 NA [6,] 0.78 0.99 0.88 0.95 1.09 0.76 NA [7,] 0.71 1.03 0.84 0.98 1.03 0.83 NA [8,] 0.62 0.83 0.69 0.88 0.90 0.81 NA [9,] 0.52 0.64 0.59 0.81 0.76 0.77 NA [10,] 0.46 0.60 0.54 0.77 0.66 0.75 NA [11,] 0.43 0.58 0.52 0.76 0.63 0.76 NA [12,] 0.43 0.58 0.52 0.75 0.61 0.76 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/1t5lf1210609280.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/2ex421210609280.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/3u03a1210609280.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/41fsl1210609280.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.360 0.350 0.35 0.350 0.330 0.760 0.71 0.62 0.52 0.46 0.430 0.430 [2,] 0.420 0.420 0.42 0.420 0.430 0.780 0.83 0.69 0.59 0.54 0.520 0.520 [3,] 0.545 0.545 0.54 0.535 0.545 0.915 0.91 0.82 0.70 0.63 0.605 0.595 [4,] 0.610 0.610 0.61 0.610 0.620 0.990 1.03 0.88 0.77 0.75 0.760 0.750 [5,] 0.730 0.740 0.73 0.750 0.770 1.090 1.03 0.90 0.81 0.77 0.760 0.760 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.4224439 0.4224439 0.4174439 0.4124439 0.4224439 0.7795432 0.7809935 [2,] 0.6675561 0.6675561 0.6625561 0.6575561 0.6675561 1.0504568 1.0390065 [,8] [,9] [,10] [,11] [,12] [1,] 0.6974439 0.5838942 0.4945432 0.4501922 0.4466426 [2,] 0.9425561 0.8161058 0.7654568 0.7598078 0.7433574 $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(0.36, 0.42, 0.545, 0.61, 0.73, 0.35, 0.42, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5nnnv1210609280.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,] 0.33 0.420 0.52 0.510 0.610 0.610 NA [2,] 0.35 0.420 0.55 0.515 0.695 0.610 NA [3,] 0.43 0.580 0.57 0.755 0.745 0.755 NA [4,] 0.57 0.735 0.64 0.845 0.835 0.765 NA [5,] 0.78 1.030 0.69 0.980 1.030 0.830 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.3296565 0.4363264 0.5289504 0.6044848 0.681145 0.6843035 NA [2,] 0.5303435 0.7236736 0.6110496 0.9055152 0.808855 0.8256965 NA $out [1] 0.88 0.84 1.09 $group [1] 3 3 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(0.33, 0.35, 0.43, 0.57, 0.78, 0.42, 0.42, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6nuwj1210609280.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.1105290 0.280 0.1475 [2,] 0.1238475 0.315 0.1550 [3,] 0.1309431 0.330 0.1625 [4,] 0.1376283 0.385 0.1775 [5,] 0.1523155 0.440 0.1925 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1246575 0.2980725 0.1522376 [2,] 0.1372286 0.3619275 0.1727624 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.110529030877262, 0.123847502586517, 0.130943054199513, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1t5lf1210609280.ps tmp/1t5lf1210609280.png") > system("convert tmp/2ex421210609280.ps tmp/2ex421210609280.png") > system("convert tmp/3u03a1210609280.ps tmp/3u03a1210609280.png") > system("convert tmp/41fsl1210609280.ps tmp/41fsl1210609280.png") > system("convert tmp/5nnnv1210609280.ps tmp/5nnnv1210609280.png") > system("convert tmp/6nuwj1210609280.ps tmp/6nuwj1210609280.png") > > > proc.time() user system elapsed 1.281 0.803 1.577