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(20.66,20.66,20.67,20.71,20.73,20.73,20.74,20.74,20.75,20.75,20.77,20.78,20.78,20.8,20.84,20.85,20.86,20.86,20.86,20.86,20.9,20.92,20.95,20.95,20.95,20.96,21.1,21.18,21.19,21.19,21.19,21.19,21.19,21.21,21.22,21.22,21.22,21.23,21.41,21.42,21.43,21.44,21.44,21.44,21.48,21.53,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.57,21.6,21.61,21.6,21.6,21.71,21.75,21.84,21.85,21.92,21.92,21.93,22,22,21.99,22.01,22.01) > 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,] 20.66 20.78 20.95 21.22 21.54 21.60 22.01 [2,] 20.66 20.80 20.96 21.23 21.54 21.71 NA [3,] 20.67 20.84 21.10 21.41 21.54 21.75 NA [4,] 20.71 20.85 21.18 21.42 21.54 21.84 NA [5,] 20.73 20.86 21.19 21.43 21.54 21.85 NA [6,] 20.73 20.86 21.19 21.44 21.54 21.92 NA [7,] 20.74 20.86 21.19 21.44 21.54 21.92 NA [8,] 20.74 20.86 21.19 21.44 21.54 21.93 NA [9,] 20.75 20.90 21.19 21.48 21.57 22.00 NA [10,] 20.75 20.92 21.21 21.53 21.60 22.00 NA [11,] 20.77 20.95 21.22 21.54 21.61 21.99 NA [12,] 20.78 20.95 21.22 21.54 21.60 22.01 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/1hikk1211058560.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/2tog71211058560.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/3invn1211058560.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/4xmwf1211058560.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] [1,] 20.660 20.660 20.670 20.71 20.73 20.730 20.740 20.740 20.750 20.75 20.77 [2,] 20.865 20.800 20.840 20.85 20.86 20.860 20.860 20.860 20.900 20.92 20.95 [3,] 21.220 21.095 21.255 21.30 21.31 21.315 21.315 21.315 21.335 21.37 21.38 [4,] 21.570 21.540 21.540 21.54 21.54 21.540 21.540 21.540 21.570 21.60 21.61 [5,] 22.010 21.710 21.750 21.84 21.85 21.920 21.920 21.930 22.000 22.00 21.99 [,12] [1,] 20.78 [2,] 20.95 [3,] 21.38 [4,] 21.60 [5,] 22.01 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 20.79899 20.61768 20.80348 20.85493 20.87138 20.87638 20.87638 20.87638 [2,] 21.64101 21.57232 21.70652 21.74507 21.74862 21.75362 21.75362 21.75362 [,9] [,10] [,11] [,12] [1,] 20.90283 20.93138 20.95428 20.96073 [2,] 21.76717 21.80862 21.80572 21.79927 $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(20.66, 20.865, 21.22, 21.57, 22.01, 20.66, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5m19b1211058560.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,] 20.660 20.780 21.10 21.410 21.540 21.600 22.01 [2,] 20.690 20.845 21.14 21.415 21.540 21.795 22.01 [3,] 20.735 20.860 21.19 21.440 21.540 21.920 22.01 [4,] 20.750 20.910 21.20 21.505 21.585 21.995 22.01 [5,] 20.780 20.950 21.22 21.540 21.610 22.010 22.01 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 20.70763 20.83035 21.16263 21.39895 21.51948 21.82878 22.01 [2,] 20.76237 20.88965 21.21737 21.48105 21.56052 22.01122 22.01 $out [1] 20.95 20.96 21.22 21.23 $group [1] 3 3 4 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(20.66, 20.69, 20.735, 20.75, 20.78, 20.78, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6v7fn1211058560.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.4173248 1.050 0.56750 [2,] 0.4264070 1.125 0.57250 [3,] 0.4451441 1.190 0.57500 [4,] 0.4587400 1.240 0.59625 [5,] 0.4905925 1.350 0.62250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.4303968 1.137548 0.5641675 [2,] 0.4598914 1.242452 0.5858325 $out [1] 0.705 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.417324813544558, 0.426407045631316, 0.445144118433208, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1hikk1211058560.ps tmp/1hikk1211058560.png") > system("convert tmp/2tog71211058560.ps tmp/2tog71211058560.png") > system("convert tmp/3invn1211058560.ps tmp/3invn1211058560.png") > system("convert tmp/4xmwf1211058560.ps tmp/4xmwf1211058560.png") > system("convert tmp/5m19b1211058560.ps tmp/5m19b1211058560.png") > system("convert tmp/6v7fn1211058560.ps tmp/6v7fn1211058560.png") > > > proc.time() user system elapsed 1.794 1.162 1.939