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(120.05,120.05,120.08,120.12,120.18,120.2,120.25,120.25,120.24,120.29,120.25,120.26,120.32,120.31,120.36,120.4,120.4,120.39,120.44,120.5,120.53,120.64,120.78,120.94,121,121.05,121.15,121.07,121.18,121.46,121.71,121.71,121.74,121.76,121.76,121.82,121.82,121.82,121.94,121.99,122.18,122.41,122.48,122.52,122.62,122.63,122.74,122.58,122.59,122.61,122.63,122.37,122.36,122.47,122.46,122.45,122.49,122.5,122.37,122.37,122.51,122.51,122.55,122.56,122.72,122.97,123.03,123.05,123.08,123.08,123.12,123.07,123.04,123.06,123.39,124.02,124.05,123.99,124.46,124.46,124.6,124.84,124.84,124.99,125.02) > 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] 85 > (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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 120.05 120.32 121.00 121.82 122.59 122.51 123.04 125.02 [2,] 120.05 120.31 121.05 121.82 122.61 122.51 123.06 NA [3,] 120.08 120.36 121.15 121.94 122.63 122.55 123.39 NA [4,] 120.12 120.40 121.07 121.99 122.37 122.56 124.02 NA [5,] 120.18 120.40 121.18 122.18 122.36 122.72 124.05 NA [6,] 120.20 120.39 121.46 122.41 122.47 122.97 123.99 NA [7,] 120.25 120.44 121.71 122.48 122.46 123.03 124.46 NA [8,] 120.25 120.50 121.71 122.52 122.45 123.05 124.46 NA [9,] 120.24 120.53 121.74 122.62 122.49 123.08 124.60 NA [10,] 120.29 120.64 121.76 122.63 122.50 123.08 124.84 NA [11,] 120.25 120.78 121.76 122.74 122.37 123.12 124.84 NA [12,] 120.26 120.94 121.82 122.58 122.37 123.07 124.99 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/147lv1211128961.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/2l2vu1211128961.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/3az3q1211128961.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/4je2z1211128961.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] [1,] 120.050 120.05 120.080 120.120 120.18 120.200 120.250 120.250 120.240 [2,] 120.660 120.68 120.755 120.735 120.79 120.925 121.075 121.105 121.135 [3,] 122.165 121.82 121.940 121.990 122.18 122.410 122.460 122.450 122.490 [4,] 122.815 122.56 122.590 122.465 122.54 122.720 122.755 122.785 122.850 [5,] 125.020 123.06 123.390 124.020 124.05 123.990 124.460 124.460 124.600 [,10] [,11] [,12] [1,] 120.290 120.25 120.260 [2,] 121.200 121.27 121.380 [3,] 122.500 122.37 122.370 [4,] 122.855 122.93 122.825 [5,] 124.840 124.84 124.990 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 120.9612 120.6973 120.8442 120.9569 121.1349 121.3381 121.4567 121.4467 [2,] 123.3688 122.9427 123.0358 123.0231 123.2251 123.4819 123.4633 123.4533 [,9] [,10] [,11] [,12] [1,] 121.4658 121.5117 121.3787 121.5071 [2,] 123.5142 123.4883 123.3613 123.2329 $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(120.05, 120.66, 122.165, 122.815, 125.02, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/59rp11211128961.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,] 120.05 120.310 121.000 121.820 122.360 122.510 123.040 125.02 [2,] 120.10 120.375 121.110 121.965 122.370 122.555 123.690 125.02 [3,] 120.22 120.420 121.585 122.445 122.465 123.000 124.255 125.02 [4,] 120.25 120.585 121.750 122.600 122.545 123.075 124.720 125.02 [5,] 120.29 120.780 121.820 122.740 122.630 123.120 124.990 125.02 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 120.1516 120.3242 121.2931 122.1554 122.3852 122.7628 123.7852 125.02 [2,] 120.2884 120.5158 121.8769 122.7346 122.5448 123.2372 124.7248 125.02 $out [1] 120.94 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(120.05, 120.1, 120.22, 120.25, 120.29, 120.31, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6ho0p1211128961.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,] 1.182582 3.01 1.6550 [2,] 1.368867 3.83 1.6700 [3,] 1.470076 4.21 1.7225 [4,] 1.534926 4.57 1.8150 [5,] 1.623585 4.97 1.8800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.394335 3.872481 1.656365 [2,] 1.545816 4.547519 1.788635 $out [1] 1.445 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.18258192105241, 1.36886741192952, 1.47007570998508, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/147lv1211128961.ps tmp/147lv1211128961.png") > system("convert tmp/2l2vu1211128961.ps tmp/2l2vu1211128961.png") > system("convert tmp/3az3q1211128961.ps tmp/3az3q1211128961.png") > system("convert tmp/4je2z1211128961.ps tmp/4je2z1211128961.png") > system("convert tmp/59rp11211128961.ps tmp/59rp11211128961.png") > system("convert tmp/6ho0p1211128961.ps tmp/6ho0p1211128961.png") > > > proc.time() user system elapsed 1.810 1.166 1.940