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(797,840,988,819,831,904,814,798,828,789,930,744,832,826,907,776,835,715,729,733,736,712,711,667,799,661,692,649,729,622,671,635,648,745,624,477,710,515,461,590,415,554,585,513,591,561,684,668,795,776,1043,964,762,1030,939,779,918,839,874,840,794,820,1003,780,607,1001,743,810,716,775,883,633) > 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,] 797 832 799 710 795 794 NA [2,] 840 826 661 515 776 820 NA [3,] 988 907 692 461 1043 1003 NA [4,] 819 776 649 590 964 780 NA [5,] 831 835 729 415 762 607 NA [6,] 904 715 622 554 1030 1001 NA [7,] 814 729 671 585 939 743 NA [8,] 798 733 635 513 779 810 NA [9,] 828 736 648 591 918 716 NA [10,] 789 712 745 561 839 775 NA [11,] 930 711 624 684 874 883 NA [12,] 744 667 477 668 840 633 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/11csh1322679698.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/2mopx1322679699.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/3f9a31322679699.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/4l5n21322679699.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,] 794 515 461.0 590 415.0 554.0 585 513 591 712 624.0 477.0 [2,] 794 661 692.0 649 607.0 622.0 671 635 648 712 684.0 633.0 [3,] 796 798 947.5 778 745.5 809.5 736 756 726 760 792.5 667.5 [4,] 799 826 1003.0 819 831.0 1001.0 814 798 828 789 883.0 744.0 [5,] 799 840 1043.0 964 835.0 1030.0 939 810 918 839 930.0 840.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,] 792.7748 691.5697 746.895 668.3445 601.0128 565.0328 643.7604 650.8597 [2,] 799.2252 904.4303 1148.105 887.6555 889.9872 1053.9672 828.2396 861.1403 [,9] [,10] [,11] [,12] [1,] 609.8942 710.3325 664.1386 595.9014 [2,] 842.1058 809.6675 920.8614 739.0986 $out [1] 832 710 561 $group [1] 1 1 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(794, 794, 796, 799, 799, 515, 661, 798, 826, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5joqe1322679699.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,] 744.0 667.0 622.0 415.0 762.0 607.0 NA [2,] 797.5 713.5 629.5 514.0 787.0 729.5 NA [3,] 823.5 734.5 655.0 573.0 857.0 787.0 NA [4,] 872.0 829.0 710.5 629.5 951.5 851.5 NA [5,] 930.0 907.0 799.0 710.0 1043.0 1003.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 789.52 681.8197 618.0554 520.3197 781.9704 731.355 NA [2,] 857.48 787.1803 691.9446 625.6803 932.0296 842.645 NA $out [1] 988 477 $group [1] 1 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(744, 797.5, 823.5, 872, 930, 667, 713.5, 734.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/659831322679699.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,] 96.14243 278.0 4.250 [2,] 117.52531 301.5 97.125 [3,] 124.01246 340.5 134.250 [4,] 146.50692 397.0 183.125 [5,] 161.16544 476.0 253.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 110.7938 296.9418 95.02482 [2,] 137.2312 384.0582 173.47518 $out [1] 40.75987 227.69717 201.70738 122.00000 582.00000 331.50000 $group [1] 1 1 1 2 2 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(96.1424290657703, 117.525314141435, 124.012460984877, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/11csh1322679698.ps tmp/11csh1322679698.png",intern=TRUE)) character(0) > try(system("convert tmp/2mopx1322679699.ps tmp/2mopx1322679699.png",intern=TRUE)) character(0) > try(system("convert tmp/3f9a31322679699.ps tmp/3f9a31322679699.png",intern=TRUE)) character(0) > try(system("convert tmp/4l5n21322679699.ps tmp/4l5n21322679699.png",intern=TRUE)) character(0) > try(system("convert tmp/5joqe1322679699.ps tmp/5joqe1322679699.png",intern=TRUE)) character(0) > try(system("convert tmp/659831322679699.ps tmp/659831322679699.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.433 0.288 1.747