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(627,696,825,677,656,785,412,352,839,729,696,641,695,638,762,635,721,854,418,367,824,687,601,676,740,691,683,594,729,731,386,331,707,715,657,653,642,643,718,654,632,731,392,344,792,852,649,629,685,617,715,715,629,916,531,357,917,828,708,858,775,785,1006,789,734,906,532,387,991,841,892,782) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 627 695 740 642 685 775 NA [2,] 696 638 691 643 617 785 NA [3,] 825 762 683 718 715 1006 NA [4,] 677 635 594 654 715 789 NA [5,] 656 721 729 632 629 734 NA [6,] 785 854 731 731 916 906 NA [7,] 412 418 386 392 531 532 NA [8,] 352 367 331 344 357 387 NA [9,] 839 824 707 792 917 991 NA [10,] 729 687 715 852 828 841 NA [11,] 696 601 657 649 708 892 NA [12,] 641 676 653 629 858 782 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/1lmvw1291991426.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/2lmvw1291991426.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/3wddz1291991426.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/4wddz1291991426.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] [,10] [,11] [,12] [1,] 627 617 683 594.0 629.0 731.0 386 331.0 707.0 687.0 601.0 629.0 [2,] 642 638 715 635.0 632.0 731.0 392 344.0 792.0 715.0 649.0 641.0 [3,] 690 667 740 665.5 688.5 819.5 415 354.5 831.5 778.5 676.5 664.5 [4,] 740 696 825 715.0 729.0 906.0 531 367.0 917.0 841.0 708.0 782.0 [5,] 775 696 825 789.0 734.0 916.0 532 387.0 991.0 852.0 708.0 858.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 626.7868 629.5881 669.0464 613.8974 625.9319 706.6193 325.3405 339.6643 [2,] 753.2132 704.4119 810.9536 717.1026 751.0681 932.3807 504.6595 369.3357 [,9] [,10] [,11] [,12] [1,] 750.871 697.226 638.4431 573.5504 [2,] 912.129 859.774 714.5569 755.4496 $out [1] 785 1006 892 $group [1] 2 3 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(627, 642, 690, 740, 775, 617, 638, 667, 696, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5omck1291991426.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] [1,] 627.0 601.0 594.0 629.0 357.0 734.0 NA [2,] 634.0 618.0 623.5 630.5 623.0 754.5 NA [3,] 686.5 681.5 687.0 646.0 711.5 787.0 NA [4,] 757.0 741.5 722.0 724.5 843.0 899.0 NA [5,] 839.0 854.0 740.0 852.0 917.0 1006.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 630.3989 625.1708 642.0735 603.126 611.1565 721.0926 NA [2,] 742.6011 737.8292 731.9265 688.874 811.8435 852.9074 NA $out [1] 412 352 418 367 386 331 392 344 532 387 $group [1] 1 1 2 2 3 3 4 4 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(627, 634, 686.5, 757, 839, 601, 618, 681.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6omck1291991426.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,] 19.32529 56.0 18.500 [2,] 58.64521 147.0 60.625 [3,] 70.47342 176.5 91.250 [4,] 95.64005 256.5 108.625 [5,] 118.96456 323.0 148.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 53.59982 126.5563 69.35688 [2,] 87.34701 226.4437 113.14312 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(19.3252856813726, 58.645211905761, 70.4734156985483, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1lmvw1291991426.ps tmp/1lmvw1291991426.png",intern=TRUE)) character(0) > try(system("convert tmp/2lmvw1291991426.ps tmp/2lmvw1291991426.png",intern=TRUE)) character(0) > try(system("convert tmp/3wddz1291991426.ps tmp/3wddz1291991426.png",intern=TRUE)) character(0) > try(system("convert tmp/4wddz1291991426.ps tmp/4wddz1291991426.png",intern=TRUE)) character(0) > try(system("convert tmp/5omck1291991426.ps tmp/5omck1291991426.png",intern=TRUE)) character(0) > try(system("convert tmp/6omck1291991426.ps tmp/6omck1291991426.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.067 0.832 3.207