R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(361.58,363.19,363.61,364.14,365.51,365.51,365.5,365.5,364.59,364.63,364.54,363.67,365.22,369.05,370.45,370.46,370.46,370.58,370.58,370.22,370.21,370.29,370.29,370.2,370.2,372.55,374.51,375.58,375.75,375.75,375.75,375.69,375.76,377.5,377.51,377.74,369.82,373.1,374.55,375.01,374.81,375.31,375.31,375.39,375.59,376.26,377.18,377.26,377.26,381.87,387.09,387.14,388.78,389.16,389.16,389.42,389.49,388.97,388.97,389.09,389.09,391.76,390.96,391.76,392.8,393.06,393.06,393.26,393.87,394.47,394.57,394.57,394.57,399.57,406.13,407.03,409.46,409.9,409.9,410.14,410.54,410.69,410.79,410.97) > 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,] 361.58 365.22 370.20 369.82 377.26 389.09 394.57 NA [2,] 363.19 369.05 372.55 373.10 381.87 391.76 399.57 NA [3,] 363.61 370.45 374.51 374.55 387.09 390.96 406.13 NA [4,] 364.14 370.46 375.58 375.01 387.14 391.76 407.03 NA [5,] 365.51 370.46 375.75 374.81 388.78 392.80 409.46 NA [6,] 365.51 370.58 375.75 375.31 389.16 393.06 409.90 NA [7,] 365.50 370.58 375.75 375.31 389.16 393.06 409.90 NA [8,] 365.50 370.22 375.69 375.39 389.42 393.26 410.14 NA [9,] 364.59 370.21 375.76 375.59 389.49 393.87 410.54 NA [10,] 364.63 370.29 377.50 376.26 388.97 394.47 410.69 NA [11,] 364.54 370.29 377.51 377.18 388.97 394.57 410.79 NA [12,] 363.67 370.20 377.74 377.26 389.09 394.57 410.97 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/1vkvv1291457657.ps",horizontal=F,onefile=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/2vkvv1291457657.ps",horizontal=F,onefile=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/3ouug1291457657.ps",horizontal=F,onefile=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/4ouug1291457657.ps",horizontal=F,onefile=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,] 361.580 363.190 363.610 364.140 365.510 365.510 365.500 365.500 364.59 [2,] 367.520 370.800 372.480 372.735 372.635 372.945 372.945 372.805 372.90 [3,] 370.200 373.100 374.550 375.580 375.750 375.750 375.750 375.690 375.76 [4,] 383.175 386.815 389.025 389.450 390.790 391.110 391.110 391.340 391.68 [5,] 394.570 399.570 406.130 407.030 409.460 409.900 409.900 410.140 410.54 [,10] [,11] [,12] [1,] 364.630 364.540 363.67 [2,] 373.275 373.735 373.73 [3,] 377.500 377.510 377.74 [4,] 391.720 391.770 391.83 [5,] 410.690 410.790 410.97 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 360.8511 363.5361 364.6696 365.5981 364.9081 364.9022 364.9022 364.6212 [2,] 379.5489 382.6639 384.4304 385.5619 386.5919 386.5978 386.5978 386.7588 [,9] [,10] [,11] [,12] [1,] 364.5449 366.4849 366.7398 366.931 [2,] 386.9751 388.5151 388.2802 388.549 $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(361.58, 367.52, 370.2, 383.175, 394.57, 363.19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ouug1291457657.ps",horizontal=F,onefile=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,] 361.580 370.200 374.510 373.100 387.090 389.09 406.130 NA [2,] 363.640 370.205 375.045 374.680 387.115 391.76 406.580 NA [3,] 364.565 370.290 375.750 375.310 388.970 393.06 409.900 NA [4,] 365.500 370.460 376.630 375.925 389.160 394.17 410.615 NA [5,] 365.510 370.580 377.740 377.260 389.490 394.57 410.970 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 363.7166 370.1737 375.0271 374.7421 388.0373 391.9608 408.0596 NA [2,] 365.4134 370.4063 376.4729 375.8779 389.9027 394.1592 411.7404 NA $out [1] 365.22 369.05 370.20 372.55 369.82 377.26 381.87 394.57 399.57 $group [1] 2 2 3 3 4 5 5 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(361.58, 363.64, 364.565, 365.5, 365.51, 370.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6y3tj1291457657.ps",horizontal=F,onefile=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,] 13.03220 42.520 15.6550 [2,] 14.58994 42.705 16.6300 [3,] 15.46156 44.395 18.1275 [4,] 15.85115 46.005 18.3050 [5,] 16.07527 47.300 18.7800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 14.88632 42.88985 17.36352 [2,] 16.03681 45.90015 18.89148 $out [1] 12.32318 32.99000 36.38000 $group [1] 1 2 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(13.0321995000661, 14.5899380350293, 15.4615609879312, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vkvv1291457657.ps tmp/1vkvv1291457657.png",intern=TRUE)) character(0) > try(system("convert tmp/2vkvv1291457657.ps tmp/2vkvv1291457657.png",intern=TRUE)) character(0) > try(system("convert tmp/3ouug1291457657.ps tmp/3ouug1291457657.png",intern=TRUE)) character(0) > try(system("convert tmp/4ouug1291457657.ps tmp/4ouug1291457657.png",intern=TRUE)) character(0) > try(system("convert tmp/5ouug1291457657.ps tmp/5ouug1291457657.png",intern=TRUE)) character(0) > try(system("convert tmp/6y3tj1291457657.ps tmp/6y3tj1291457657.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.061 0.843 2.657