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(4.07,4.08,4.09,4.08,4.09,4.12,4.14,4.14,4.14,4.14,4.14,4.23,4.29,4.32,4.33,4.35,4.35,4.35,4.35,4.36,4.36,4.38,4.4,4.4,4.4,4.43,4.44,4.46,4.47,4.49,4.49,4.57,4.62,4.64,4.66,4.67,4.68,4.72,4.74,4.75,4.76,4.77,4.76,4.77,4.77,4.78,4.81,4.81,4.85,4.92,4.96,4.95,4.96,4.97,5,5,5.01,5.01,5.02,5.04,5.04,5.19,5.22,5.22,5.22,5.24,5.28,5.34,5.36,5.38,5.39,5.41,5.44,5.51,5.55,5.56,5.57,5.58,5.58,5.59,5.61,5.63,5.64,5.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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.07 4.29 4.40 4.68 4.85 5.04 5.44 NA [2,] 4.08 4.32 4.43 4.72 4.92 5.19 5.51 NA [3,] 4.09 4.33 4.44 4.74 4.96 5.22 5.55 NA [4,] 4.08 4.35 4.46 4.75 4.95 5.22 5.56 NA [5,] 4.09 4.35 4.47 4.76 4.96 5.22 5.57 NA [6,] 4.12 4.35 4.49 4.77 4.97 5.24 5.58 NA [7,] 4.14 4.35 4.49 4.76 5.00 5.28 5.58 NA [8,] 4.14 4.36 4.57 4.77 5.00 5.34 5.59 NA [9,] 4.14 4.36 4.62 4.77 5.01 5.36 5.61 NA [10,] 4.14 4.38 4.64 4.78 5.01 5.38 5.63 NA [11,] 4.14 4.40 4.66 4.81 5.02 5.39 5.64 NA [12,] 4.23 4.40 4.67 4.81 5.04 5.41 5.64 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/1z97g1211273100.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/2kmt01211273101.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/3ujjo1211273101.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/4ugxo1211273101.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,] 4.070 4.080 4.090 4.080 4.09 4.120 4.14 4.140 4.140 4.140 4.140 4.230 [2,] 4.345 4.375 4.385 4.405 4.41 4.420 4.42 4.465 4.490 4.510 4.530 4.535 [3,] 4.680 4.720 4.740 4.750 4.76 4.770 4.76 4.770 4.770 4.780 4.810 4.810 [4,] 4.945 5.055 5.090 5.085 5.09 5.105 5.14 5.170 5.185 5.195 5.205 5.225 [5,] 5.440 5.510 5.550 5.560 5.57 5.580 5.58 5.590 5.610 5.630 5.640 5.640 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.32169 4.313915 4.318985 4.343915 4.353915 4.360929 4.330028 4.348985 [2,] 5.03831 5.126085 5.161015 5.156085 5.166085 5.179071 5.189972 5.191015 [,9] [,10] [,11] [,12] [1,] 4.354957 4.370929 4.406901 4.397943 [2,] 5.185043 5.189071 5.213099 5.222057 $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(4.07, 4.345, 4.68, 4.945, 5.44, 4.08, 4.375, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5pfo71211273101.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] [1,] 4.070 4.32 4.40 4.720 4.920 5.04 5.510 NA [2,] 4.085 4.34 4.45 4.745 4.955 5.22 5.555 NA [3,] 4.130 4.35 4.49 4.765 4.985 5.26 5.580 NA [4,] 4.140 4.37 4.63 4.775 5.010 5.37 5.620 NA [5,] 4.140 4.40 4.67 4.810 5.040 5.41 5.640 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.104914 4.336317 4.407901 4.751317 4.959914 5.191584 5.550353 NA [2,] 4.155086 4.363683 4.572099 4.778683 5.010086 5.328416 5.609647 NA $out [1] 4.23 4.29 4.68 4.85 5.44 $group [1] 1 2 4 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(4.07, 4.085, 4.13, 4.14, 4.14, 4.32, 4.34, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/66fwn1211273101.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.5060115 1.370 0.675 [2,] 0.5145916 1.435 0.680 [3,] 0.5180273 1.460 0.685 [4,] 0.5244348 1.480 0.700 [5,] 0.5305478 1.500 0.720 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.5135377 1.439475 0.6758779 [2,] 0.5225168 1.480525 0.6941221 $out [1] 0.4723497 0.6000000 $group [1] 1 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.506011481142097, 0.514591601956937, 0.518027276245698, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1z97g1211273100.ps tmp/1z97g1211273100.png") > system("convert tmp/2kmt01211273101.ps tmp/2kmt01211273101.png") > system("convert tmp/3ujjo1211273101.ps tmp/3ujjo1211273101.png") > system("convert tmp/4ugxo1211273101.ps tmp/4ugxo1211273101.png") > system("convert tmp/5pfo71211273101.ps tmp/5pfo71211273101.png") > system("convert tmp/66fwn1211273101.ps tmp/66fwn1211273101.png") > > > proc.time() user system elapsed 1.798 1.155 1.939