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(101.6,101.8,102.1,102.1,101.9,102.1,102,102.1,102.2,102.3,102.7,102.8,103.1,103.1,103.3,103.5,103.3,103.5,103.8,103.9,103.9,104.2,104.6,104.9,105.2,105.2,105.6,105.6,106.2,106.3,106.4,106.9,107.2,107.3,107.3,107.4,107.55,107.87,108.37,108.38,107.92,108.03,108.14,108.3,108.64,108.66,109.04,109.03,109.03,109.54,109.75,109.83,109.65,109.82,109.95,110.12,110.15,110.2,109.99,110.14,110.14,110.81,110.97,110.99,109.73,109.81,110.02,110.18,110.21,110.25,110.36,110.51,110.64,110.95,111.18,111.19,111.69,111.7,111.83,111.77,111.73,112.01,111.86,112.04) > 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,] 101.6 103.1 105.2 107.55 109.03 110.14 110.64 NA [2,] 101.8 103.1 105.2 107.87 109.54 110.81 110.95 NA [3,] 102.1 103.3 105.6 108.37 109.75 110.97 111.18 NA [4,] 102.1 103.5 105.6 108.38 109.83 110.99 111.19 NA [5,] 101.9 103.3 106.2 107.92 109.65 109.73 111.69 NA [6,] 102.1 103.5 106.3 108.03 109.82 109.81 111.70 NA [7,] 102.0 103.8 106.4 108.14 109.95 110.02 111.83 NA [8,] 102.1 103.9 106.9 108.30 110.12 110.18 111.77 NA [9,] 102.2 103.9 107.2 108.64 110.15 110.21 111.73 NA [10,] 102.3 104.2 107.3 108.66 110.20 110.25 112.01 NA [11,] 102.7 104.6 107.3 109.04 109.99 110.36 111.86 NA [12,] 102.8 104.9 107.4 109.03 110.14 110.51 112.04 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/1epgi1210607464.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/2dl6p1210607464.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/3gugv1210607464.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/4ygto1210607464.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,] 101.600 101.800 102.10 102.10 101.90 102.100 102.000 102.10 102.20 102.300 [2,] 104.150 104.150 104.45 104.55 104.75 104.900 105.100 105.40 105.55 105.750 [3,] 107.550 107.870 108.37 108.38 107.92 108.030 108.140 108.30 108.64 108.660 [4,] 109.585 110.175 110.36 110.41 109.69 109.815 109.985 110.15 110.18 110.225 [5,] 110.640 110.950 111.18 111.19 111.69 111.700 111.830 111.77 111.73 112.010 [,11] [,12] [1,] 102.700 102.800 [2,] 105.950 106.150 [3,] 109.040 109.030 [4,] 110.175 110.325 [5,] 111.860 112.040 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.3043 104.2720 104.8406 104.8805 104.9699 105.0948 105.2228 105.4634 [2,] 110.7957 111.4680 111.8994 111.8795 110.8701 110.9652 111.0572 111.1366 [,9] [,10] [,11] [,12] [1,] 105.8750 105.9876 106.5169 106.5368 [2,] 111.4050 111.3324 111.5631 111.5232 $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(101.6, 104.15, 107.55, 109.585, 110.64, 101.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/502181210607464.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,] 101.60 103.10 105.20 107.550 109.54 109.73 110.640 NA [2,] 101.95 103.30 105.60 107.975 109.70 110.08 111.185 NA [3,] 102.10 103.65 106.35 108.335 109.89 110.23 111.715 NA [4,] 102.25 104.05 107.25 108.650 110.13 110.66 111.845 NA [5,] 102.30 104.90 107.40 109.040 110.20 110.99 112.040 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.9632 103.3079 105.5974 108.0271 109.6939 109.9655 111.4140 NA [2,] 102.2368 103.9921 107.1026 108.6429 110.0861 110.4945 112.0160 NA $out [1] 102.70 102.80 109.03 $group [1] 1 1 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(101.6, 101.95, 102.1, 102.25, 102.3, 103.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6e7qi1210607464.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,] 3.504083 9.040 4.1750 [2,] 3.512305 9.120 4.5525 [3,] 3.539475 9.385 4.9000 [4,] 3.628776 9.690 5.6475 [5,] 3.714985 9.830 6.0250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.486352 9.12502 4.400563 [2,] 3.592598 9.64498 5.399437 $out [1] 3.307761 3.295860 $group [1] 1 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(3.50408265286298, 3.51230510536593, 3.53947498326481, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1epgi1210607464.ps tmp/1epgi1210607464.png") > system("convert tmp/2dl6p1210607464.ps tmp/2dl6p1210607464.png") > system("convert tmp/3gugv1210607464.ps tmp/3gugv1210607464.png") > system("convert tmp/4ygto1210607464.ps tmp/4ygto1210607464.png") > system("convert tmp/502181210607464.ps tmp/502181210607464.png") > system("convert tmp/6e7qi1210607464.ps tmp/6e7qi1210607464.png") > > > proc.time() user system elapsed 1.831 1.188 1.991