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(554.79,562.33,560.85,555.33,543.6,536.66,542.72,593.53,610.76,612.61,611.32,594.17,595.45,590.87,589.38,584.43,573.1,567.46,569.03,620.74,628.88,628.23,612.12,595.4,597.14,593.41,590.07,579.8,574.21,572.78,572.94,619.57,625.81,619.92,587.63,565.74,557.27,560.58,548.85,531.67,525.92,511.04,498.66,555.36,564.59,541.66,527.07,509.85,514.26,516.92,507.56,492.62,490.24,469.36,477.58,528.38,533.59,517.95,506.17,501.87) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 554.79 595.45 597.14 557.27 514.26 NA [2,] 562.33 590.87 593.41 560.58 516.92 NA [3,] 560.85 589.38 590.07 548.85 507.56 NA [4,] 555.33 584.43 579.80 531.67 492.62 NA [5,] 543.60 573.10 574.21 525.92 490.24 NA [6,] 536.66 567.46 572.78 511.04 469.36 NA [7,] 542.72 569.03 572.94 498.66 477.58 NA [8,] 593.53 620.74 619.57 555.36 528.38 NA [9,] 610.76 628.88 625.81 564.59 533.59 NA [10,] 612.61 628.23 619.92 541.66 517.95 NA [11,] 611.32 612.12 587.63 527.07 506.17 NA [12,] 594.17 595.40 565.74 509.85 501.87 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/13q6i1229184621.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/2zs3r1229184621.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/3hcmh1229184621.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/4v9z51229184621.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,] 514.26 516.92 507.56 492.62 490.24 469.36 477.58 528.38 533.59 517.95 [2,] 554.79 560.58 548.85 531.67 525.92 511.04 498.66 555.36 564.59 541.66 [3,] 557.27 562.33 560.85 555.33 543.60 536.66 542.72 593.53 610.76 612.61 [4,] 595.45 590.87 589.38 579.80 573.10 567.46 569.03 619.57 625.81 619.92 [5,] 597.14 593.41 590.07 584.43 574.21 572.78 572.94 620.74 628.88 628.23 [,11] [,12] [1,] 506.17 501.87 [2,] 527.07 509.85 [3,] 587.63 565.74 [4,] 611.32 594.17 [5,] 612.12 595.40 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 528.5397 540.9272 532.2116 521.3215 510.2627 496.7938 492.9967 548.1594 [2,] 586.0003 583.7328 589.4884 589.3385 576.9373 576.5262 592.4433 638.9006 [,9] [,10] [,11] [,12] [1,] 567.5021 557.3117 528.0992 506.1597 [2,] 654.0179 667.9083 647.1608 625.3203 $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(514.26, 554.79, 557.27, 595.45, 597.14, 516.92, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5ozlz1229184621.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] [1,] 536.660 567.460 565.740 498.660 469.360 NA [2,] 549.195 578.765 573.575 518.480 491.430 NA [3,] 561.590 593.135 588.850 536.665 506.865 NA [4,] 602.465 616.430 608.355 556.315 517.435 NA [5,] 612.610 628.880 625.810 564.590 533.590 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 537.2932 575.9557 572.9866 519.4082 495.0039 NA [2,] 585.8868 610.3143 604.7134 553.9218 518.7261 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(536.66, 549.195, 561.59, 602.465, 612.61, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6d7dn1229184621.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,] 30.88114 76.490 30.290 [2,] 34.70026 83.425 43.920 [3,] 41.27837 92.945 58.820 [4,] 43.90772 99.390 74.315 [5,] 50.54780 110.280 84.320 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 37.07879 85.66326 44.95664 [2,] 45.47796 100.22674 72.68336 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(30.8811361513789, 34.7002584712572, 41.2783746126623, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/13q6i1229184621.ps tmp/13q6i1229184621.png") > system("convert tmp/2zs3r1229184621.ps tmp/2zs3r1229184621.png") > system("convert tmp/3hcmh1229184621.ps tmp/3hcmh1229184621.png") > system("convert tmp/4v9z51229184621.ps tmp/4v9z51229184621.png") > system("convert tmp/5ozlz1229184621.ps tmp/5ozlz1229184621.png") > system("convert tmp/6d7dn1229184621.ps tmp/6d7dn1229184621.png") > > > proc.time() user system elapsed 1.645 1.257 1.864