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(11.98,11.79,11.66,11.96,11.83,12.36,12.53,12.55,12.53,12.24,12.34,12.05,12.22,12.23,11.92,12.13,12.1,12.15,12.23,12.08,12.02,11.93,12.16,11.87,11.93,11.79,11.43,11.63,11.93,11.89,11.83,11.59,12.04,11.81,11.9,11.72,11.91,11.94,11.91,11.84,12.01,11.89,11.8,11.7,11.5,11.76,11.61,11.27,11.64,11.39,11.54,11.62,11.59,11.44,11.31,11.56,11.4,11.51,11.5,11.24,11.8,11.87,11.86,12.11,11.92,12.61,13.34,13.31,13.47,13.24,13.18,13.3) > 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,] 11.98 12.22 11.93 11.91 11.64 11.80 NA [2,] 11.79 12.23 11.79 11.94 11.39 11.87 NA [3,] 11.66 11.92 11.43 11.91 11.54 11.86 NA [4,] 11.96 12.13 11.63 11.84 11.62 12.11 NA [5,] 11.83 12.10 11.93 12.01 11.59 11.92 NA [6,] 12.36 12.15 11.89 11.89 11.44 12.61 NA [7,] 12.53 12.23 11.83 11.80 11.31 13.34 NA [8,] 12.55 12.08 11.59 11.70 11.56 13.31 NA [9,] 12.53 12.02 12.04 11.50 11.40 13.47 NA [10,] 12.24 11.93 11.81 11.76 11.51 13.24 NA [11,] 12.34 12.16 11.90 11.61 11.50 13.18 NA [12,] 12.05 11.87 11.72 11.27 11.24 13.30 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/1399p1210688532.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/2xd221210688532.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/3pfp81210688532.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/4gnkq1210688532.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,] 11.64 11.79 11.43 11.62 11.590 11.44 11.31 11.56 11.40 11.51 11.50 11.240 [2,] 11.80 11.79 11.54 11.63 11.830 11.89 11.80 11.59 11.50 11.76 11.61 11.270 [3,] 11.92 11.83 11.76 11.90 11.925 12.02 12.03 11.89 12.03 11.87 12.03 11.795 [4,] 11.98 11.94 11.91 12.11 12.010 12.36 12.53 12.55 12.53 12.24 12.34 12.050 [5,] 12.22 11.94 11.92 12.13 12.100 12.61 13.34 13.31 13.47 12.24 13.18 12.050 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.80389 11.73325 11.52134 11.59038 11.80889 11.71683 11.55913 11.27077 [2,] 12.03611 11.92675 11.99866 12.20962 12.04111 12.32317 12.50087 12.50923 [,9] [,10] [,11] [,12] [1,] 11.36562 11.56038 11.55913 11.29187 [2,] 12.69438 12.17962 12.50087 12.29813 $out [1] 12.23 11.39 13.24 13.30 $group [1] 2 2 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11.64, 11.8, 11.92, 11.98, 12.22, 11.79, 11.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5w67j1210688532.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,] 11.660 11.870 11.430 11.500 11.240 11.800 NA [2,] 11.895 11.975 11.675 11.655 11.395 11.895 NA [3,] 12.145 12.115 11.820 11.820 11.505 12.895 NA [4,] 12.445 12.190 11.915 11.910 11.575 13.305 NA [5,] 12.550 12.230 12.040 12.010 11.640 13.470 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 11.89414 12.01694 11.71053 11.70369 11.4229 12.25189 NA [2,] 12.39586 12.21306 11.92947 11.93631 11.5871 13.53811 NA $out [1] 11.27 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(11.66, 11.895, 12.145, 12.445, 12.55, 11.87, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6gu461210688532.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.1756891 0.490 0.13250 [2,] 0.2164545 0.545 0.23375 [3,] 0.5107513 1.425 0.40375 [4,] 0.6975714 1.890 0.63500 [5,] 0.7616036 2.070 0.81500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.2913107 0.8115365 0.2207372 [2,] 0.7301920 2.0384635 0.5867628 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.175689119374726, 0.216454526257263, 0.510751308896644, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1399p1210688532.ps tmp/1399p1210688532.png") > system("convert tmp/2xd221210688532.ps tmp/2xd221210688532.png") > system("convert tmp/3pfp81210688532.ps tmp/3pfp81210688532.png") > system("convert tmp/4gnkq1210688532.ps tmp/4gnkq1210688532.png") > system("convert tmp/5w67j1210688532.ps tmp/5w67j1210688532.png") > system("convert tmp/6gu461210688532.ps tmp/6gu461210688532.png") > > > proc.time() user system elapsed 1.834 1.203 1.995