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(2.6900,2.7200,2.6800,2.7200,2.7000,2.7200,2.7200,2.7100,2.6800,2.6500,2.6600,2.6900,2.6700,2.6700,2.6500,2.6600,2.7600,2.7900,2.7900,2.7800,2.8100,2.8100,2.7900,2.7900,2.7900,2.8000,2.8000,2.8000,2.7700,2.7800,2.7500,2.7400,2.7400,2.7200,2.7100,2.7100,2.7000,2.6900,2.7000,2.7100,2.7600,2.7600,2.7500,2.7400,2.7100,2.7300,2.7300,2.7300,2.7200,2.7200,2.7500,2.8200,2.8500,2.8300,2.8500,2.8500,2.7900,2.8100,2.8000,2.7900,2.7900,2.8000,2.8000,2.8600,2.8600,2.8500,2.8100,2.7900,2.7800,2.7700,2.7800,2.8500,2.8200) > 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,] 2.69 2.67 2.79 2.70 2.72 2.79 2.82 [2,] 2.72 2.67 2.80 2.69 2.72 2.80 NA [3,] 2.68 2.65 2.80 2.70 2.75 2.80 NA [4,] 2.72 2.66 2.80 2.71 2.82 2.86 NA [5,] 2.70 2.76 2.77 2.76 2.85 2.86 NA [6,] 2.72 2.79 2.78 2.76 2.83 2.85 NA [7,] 2.72 2.79 2.75 2.75 2.85 2.81 NA [8,] 2.71 2.78 2.74 2.74 2.85 2.79 NA [9,] 2.68 2.81 2.74 2.71 2.79 2.78 NA [10,] 2.65 2.81 2.72 2.73 2.81 2.77 NA [11,] 2.66 2.79 2.71 2.73 2.80 2.78 NA [12,] 2.69 2.79 2.71 2.73 2.79 2.85 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/13e131210789773.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/2twuw1210789773.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/3xpxo1210789773.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/45sky1210789773.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,] 2.670 2.67 2.650 2.66 2.700 2.720 2.72 2.71 2.68 2.65 2.660 2.69 [2,] 2.695 2.69 2.680 2.71 2.760 2.760 2.75 2.74 2.71 2.72 2.710 2.71 [3,] 2.720 2.72 2.725 2.76 2.765 2.785 2.77 2.76 2.76 2.75 2.755 2.76 [4,] 2.790 2.80 2.800 2.82 2.850 2.830 2.81 2.79 2.79 2.81 2.790 2.79 [5,] 2.820 2.80 2.800 2.86 2.860 2.850 2.85 2.85 2.81 2.81 2.800 2.85 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.663268 2.649046 2.647596 2.689046 2.706947 2.739848 2.731298 2.727748 [2,] 2.776732 2.790954 2.802404 2.830954 2.823053 2.830152 2.808702 2.792252 [,9] [,10] [,11] [,12] [1,] 2.708397 2.691947 2.703397 2.708397 [2,] 2.811603 2.808053 2.806603 2.811603 $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(2.67, 2.695, 2.72, 2.79, 2.82, 2.67, 2.69, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5k6cs1210789773.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,] 2.650 2.650 2.710 2.690 2.720 2.770 2.82 [2,] 2.680 2.670 2.730 2.705 2.770 2.785 2.82 [3,] 2.695 2.785 2.760 2.730 2.805 2.800 2.82 [4,] 2.720 2.790 2.795 2.745 2.840 2.850 2.82 [5,] 2.720 2.810 2.800 2.760 2.850 2.860 2.82 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.676756 2.730267 2.730353 2.711756 2.773073 2.770353 2.82 [2,] 2.713244 2.839733 2.789647 2.748244 2.836927 2.829647 2.82 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.65, 2.68, 2.695, 2.72, 2.72, 2.65, 2.67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vtod1210789773.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.04708149 0.130 0.04750 [2,] 0.04996505 0.130 0.06250 [3,] 0.05694678 0.145 0.07375 [4,] 0.06116850 0.160 0.08875 [5,] 0.07652886 0.200 0.10250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.05183681 0.1313168 0.0617772 [2,] 0.06205674 0.1586832 0.0857228 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0470814896394185, 0.0499650522141838, 0.0569467776021298, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/13e131210789773.ps tmp/13e131210789773.png") > system("convert tmp/2twuw1210789773.ps tmp/2twuw1210789773.png") > system("convert tmp/3xpxo1210789773.ps tmp/3xpxo1210789773.png") > system("convert tmp/45sky1210789773.ps tmp/45sky1210789773.png") > system("convert tmp/5k6cs1210789773.ps tmp/5k6cs1210789773.png") > system("convert tmp/6vtod1210789773.ps tmp/6vtod1210789773.png") > > > proc.time() user system elapsed 1.271 0.816 1.555