R version 2.8.0 (2008-10-20) 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(163.40,162.89,162.29,161.26,161.43,161.44,161.44,161.44,161.92,162.23,161.89,161.40,161.40,159.55,158.93,158.59,158.29,158.03,158.03,163.94,164.36,164.39,163.22,163.22,163.56,162.82,162.80,162.44,161.98,161.53,161.53,161.52,162.07,161.84,161.54,161.47,161.47,161.54,161.57,160.75,160.31,160.57,160.57,159.65,158.76,158.95,159.25,158.72,158.72,158.72,158.53,157.92,157.89,157.81,157.81,157.88,157.52,156.11,155.61,155.31,155.31,155.31,153.09,151.94,151.73,151.65,151.65,151.09,149.94,149.47,149.15,149.22) > 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,] 163.40 161.40 163.56 161.47 158.72 155.31 NA [2,] 162.89 159.55 162.82 161.54 158.72 155.31 NA [3,] 162.29 158.93 162.80 161.57 158.53 153.09 NA [4,] 161.26 158.59 162.44 160.75 157.92 151.94 NA [5,] 161.43 158.29 161.98 160.31 157.89 151.73 NA [6,] 161.44 158.03 161.53 160.57 157.81 151.65 NA [7,] 161.44 158.03 161.53 160.57 157.81 151.65 NA [8,] 161.44 163.94 161.52 159.65 157.88 151.09 NA [9,] 161.92 164.36 162.07 158.76 157.52 149.94 NA [10,] 162.23 164.39 161.84 158.95 156.11 149.47 NA [11,] 161.89 163.22 161.54 159.25 155.61 149.15 NA [12,] 161.40 163.22 161.47 158.72 155.31 149.22 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/1ujcs1244290536.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/2ozjl1244290536.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/3s2fk1244290536.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/4jawp1244290536.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] [1,] 155.310 155.310 153.09 157.92 157.89 157.81 157.81 157.880 157.52 149.470 [2,] 158.720 158.720 158.53 157.92 157.89 157.81 157.81 157.880 157.52 156.110 [3,] 161.435 160.545 160.25 159.67 159.30 159.30 159.30 160.545 160.34 160.395 [4,] 163.400 162.820 162.29 161.26 161.43 161.44 161.44 161.520 162.07 162.230 [5,] 163.560 162.890 162.80 162.44 161.98 161.53 161.53 163.940 164.36 164.390 [,11] [,12] [1,] 149.150 149.22 [2,] 155.610 155.31 [3,] 160.395 160.06 [4,] 161.890 161.47 [5,] 163.220 163.22 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 158.4162 157.9004 157.8247 157.5156 157.0166 156.9585 156.9585 158.1971 [2,] 164.4538 163.1896 162.6753 161.8244 161.5834 161.6415 161.6415 162.8929 [,9] [,10] [,11] [,12] [1,] 157.4051 156.4474 156.3442 156.0866 [2,] 163.2749 164.3426 164.4458 164.0334 $out [1] 151.94 151.73 151.65 151.65 151.09 149.94 $group [1] 4 5 6 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(155.31, 158.72, 161.435, 163.4, 163.56, 155.31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5uq3r1244290536.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,] 161.260 158.030 161.47 158.72 155.310 149.150 NA [2,] 161.435 158.440 161.53 159.10 156.815 149.705 NA [3,] 161.665 160.475 161.91 160.44 157.845 151.650 NA [4,] 162.260 163.580 162.62 161.11 158.225 152.515 NA [5,] 163.400 164.390 163.56 161.57 158.720 155.310 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 161.2887 158.1306 161.4128 159.5232 157.2019 150.3683 NA [2,] 162.0413 162.8194 162.4072 161.3568 158.4881 152.9317 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(161.26, 161.435, 161.665, 162.26, 163.4, 158.03, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6kmf81244290536.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,] 2.911985 7.580 3.04500 [2,] 3.674208 9.795 3.26750 [3,] 3.756771 10.375 3.50375 [4,] 5.160744 14.035 4.74250 [5,] 5.413983 14.920 5.31250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.078752 8.441108 2.830993 [2,] 4.434790 12.308892 4.176507 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(2.91198500454014, 3.67420833049748, 3.75677089267393, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ujcs1244290536.ps tmp/1ujcs1244290536.png") > system("convert tmp/2ozjl1244290536.ps tmp/2ozjl1244290536.png") > system("convert tmp/3s2fk1244290536.ps tmp/3s2fk1244290536.png") > system("convert tmp/4jawp1244290536.ps tmp/4jawp1244290536.png") > system("convert tmp/5uq3r1244290536.ps tmp/5uq3r1244290536.png") > system("convert tmp/6kmf81244290536.ps tmp/6kmf81244290536.png") > > > proc.time() user system elapsed 1.621 1.240 1.867