R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(617,614,647,580,614,636,388,356,639,753,611,639,630,586,695,552,619,681,421,307,754,690,644,643,608,651,691,627,634,731,475,337,803,722,590,724,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,706,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,811,792,978,773,796,946,594,438,1023,868,791,760,779,852,1001,734,996,869,599,426,1138) > 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] 129 > (np <- floor(n / par1)) [1] 10 > 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] 11 11 11 11 11 11 11 11 11 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 617 630 608 627 695 740 642 685 775 811 779 [2,] 614 586 651 696 638 691 643 617 785 792 852 [3,] 647 695 691 825 762 683 718 715 1006 978 1001 [4,] 580 552 627 677 635 594 654 715 789 773 734 [5,] 614 619 634 656 721 729 632 629 734 796 996 [6,] 636 681 731 785 854 731 731 916 906 946 869 [7,] 388 421 475 412 418 386 392 531 532 594 599 [8,] 356 307 337 352 367 331 344 357 387 438 426 [9,] 639 754 803 839 824 706 792 917 991 1023 1138 [10,] 753 690 722 729 687 715 852 828 841 868 NA [11,] 611 644 590 696 601 657 649 708 892 791 NA [12,] 639 643 724 641 676 653 629 858 782 760 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/wessaorg/rcomp/tmp/1x6uz1322826784.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/wessaorg/rcomp/tmp/2gdqa1322826784.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/wessaorg/rcomp/tmp/3b3d21322826784.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/wessaorg/rcomp/tmp/4n3u11322826784.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,] 608.0 586.0 647.0 552.0 614.0 636.0 386.0 307.0 639 687 590 629.0 [2,] 628.5 627.5 693.0 610.5 630.5 731.0 402.0 340.5 773 715 611 641.0 [3,] 685.0 651.0 718.0 654.0 656.0 785.0 421.0 356.0 824 741 653 664.5 [4,] 757.5 740.5 901.5 724.5 731.5 887.5 531.5 377.0 954 841 708 760.0 [5,] 811.0 852.0 1006.0 789.0 796.0 946.0 599.0 426.0 1138 868 791 858.0 $n [1] 11 11 11 11 11 11 11 11 11 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 623.546 597.1682 618.6731 599.6918 607.8848 710.4453 359.3078 338.6118 [2,] 746.454 704.8318 817.3269 708.3082 704.1152 859.5547 482.6922 373.3882 [,9] [,10] [,11] [,12] [1,] 737.7738 678.0454 604.5349 605.0429 [2,] 910.2262 803.9546 701.4651 723.9571 $out [1] 996 438 892 $group [1] 5 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(608, 628.5, 685, 757.5, 811, 586, 627.5, 651, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5gm5j1322826784.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] [,9] [,10] [,11] [1,] 580.0 421.0 475.0 627.0 601.0 594.0 629.0 357.0 734.0 594.0 426 [2,] 595.5 569.0 599.0 634.0 618.0 623.5 630.5 623.0 754.5 766.5 734 [3,] 615.5 636.5 642.5 686.5 681.5 687.0 646.0 711.5 787.0 794.0 852 [4,] 639.0 685.5 723.0 757.0 741.5 722.0 724.5 843.0 899.0 907.0 996 [5,] 647.0 754.0 803.0 839.0 854.0 740.0 852.0 917.0 1006.0 1023.0 1138 $n [1] 12 12 12 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 595.6594 583.3636 585.9428 630.3989 625.1708 642.0735 603.126 611.1565 [2,] 635.3406 689.6364 699.0572 742.6011 737.8292 731.9265 688.874 811.8435 [,9] [,10] [,11] [1,] 721.0926 729.917 714.0133 [2,] 852.9074 858.083 989.9867 $out [1] 388 356 753 307 337 412 352 418 367 386 331 392 344 532 387 438 $group [1] 1 1 1 2 3 4 4 5 5 6 6 7 7 9 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(580, 595.5, 615.5, 639, 647, 421, 569, 636.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6w49w1322826784.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,] 39.47358 131.0 85.75 [2,] 75.60004 208.0 105.25 [3,] 84.21352 251.5 117.50 [4,] 109.01464 334.5 143.00 [5,] 147.49946 499.0 181.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 68.97290 193.8025 100.282 [2,] 99.45414 309.1975 134.718 $out [1] 208.5 36.5 $group [1] 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(39.4735814990689, 75.6000413942005, 84.2135186223492, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1x6uz1322826784.ps tmp/1x6uz1322826784.png",intern=TRUE)) character(0) > try(system("convert tmp/2gdqa1322826784.ps tmp/2gdqa1322826784.png",intern=TRUE)) character(0) > try(system("convert tmp/3b3d21322826784.ps tmp/3b3d21322826784.png",intern=TRUE)) character(0) > try(system("convert tmp/4n3u11322826784.ps tmp/4n3u11322826784.png",intern=TRUE)) character(0) > try(system("convert tmp/5gm5j1322826784.ps tmp/5gm5j1322826784.png",intern=TRUE)) character(0) > try(system("convert tmp/6w49w1322826784.ps tmp/6w49w1322826784.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.356 0.324 1.902