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(760,730,730,680,730,710,800,830,820,770,800,840,800,710,800,780,760,730,770,880,850,810,770,810,890,790,840,830,740,760,630,890,900,820,810,820,890,810,810,840,830,790,610,870,870,820,800,840,860,860,730,850,860,900,610,960,820,860,810,820,820,880,840,910,860,880,620,970,810,880,870,800,740,1010,850,980,880,870,660,940,860,880,1000,840,800,1060,790,930,920,840,690,940,1010,890,1000,820,800,1000,780,1010,950,830,670,1000,960,920,1040,860) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 760 800 890 890 860 820 740 800 800 NA [2,] 730 710 790 810 860 880 1010 1060 1000 NA [3,] 730 800 840 810 730 840 850 790 780 NA [4,] 680 780 830 840 850 910 980 930 1010 NA [5,] 730 760 740 830 860 860 880 920 950 NA [6,] 710 730 760 790 900 880 870 840 830 NA [7,] 800 770 630 610 610 620 660 690 670 NA [8,] 830 880 890 870 960 970 940 940 1000 NA [9,] 820 850 900 870 820 810 860 1010 960 NA [10,] 770 810 820 820 860 880 880 890 920 NA [11,] 800 770 810 800 810 870 1000 1000 1040 NA [12,] 840 810 820 840 820 800 840 820 860 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/186o31312906019.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/22g3h1312906019.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/3qqhz1312906019.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/4zr0z1312906019.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,] 740 710 730 680 730 710 610 830 810 770 770 800 [2,] 800 790 780 830 760 760 620 880 820 820 800 820 [3,] 800 860 800 850 860 830 660 940 860 860 810 820 [4,] 860 1000 840 930 880 870 690 960 900 880 1000 840 [5,] 890 1060 850 1010 950 900 770 1000 1010 920 1040 860 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 768.4 749.4 768.4 797.3333 796.8 772.0667 623.1333 897.8667 817.8667 828.4 [2,] 831.6 970.6 831.6 902.6667 923.2 887.9333 696.8667 982.1333 902.1333 891.6 [,11] [,12] [1,] 704.6667 809.4667 [2,] 915.3333 830.5333 $out [1] 800 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(740, 800, 800, 860, 890, 710, 790, 860, 1000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/58ox01312906019.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] [1,] 680 710 740 790 810 800 740 690 670 NA [2,] 730 765 775 805 815 815 845 810 815 NA [3,] 765 790 820 825 855 865 875 905 935 NA [4,] 810 810 865 855 860 880 960 970 1000 NA [5,] 840 850 900 890 900 970 1010 1060 1040 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 728.5115 769.4752 778.9504 802.1947 834.4752 835.3531 822.5477 832.0229 [2,] 801.4885 810.5248 861.0496 847.8053 875.5248 894.6469 927.4523 977.9771 [,9] [,10] [1,] 850.6203 NA [2,] 1019.3797 NA $out [1] 880 630 610 730 610 960 620 660 $group [1] 2 3 4 5 5 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(680, 730, 765, 810, 840, 710, 765, 790, 810, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/65s391312906019.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,] 18.55921 60 20 [2,] 50.39770 150 60 [3,] 68.15016 190 80 [4,] 90.51178 245 115 [5,] 126.46914 350 120 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 49.85386 146.6699 54.91413 [2,] 86.44646 233.3301 105.08587 $out [1] 210 200 $group [1] 3 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(18.5592145427667, 50.3977005722136, 68.1501610008696, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/186o31312906019.ps tmp/186o31312906019.png",intern=TRUE)) character(0) > try(system("convert tmp/22g3h1312906019.ps tmp/22g3h1312906019.png",intern=TRUE)) character(0) > try(system("convert tmp/3qqhz1312906019.ps tmp/3qqhz1312906019.png",intern=TRUE)) character(0) > try(system("convert tmp/4zr0z1312906019.ps tmp/4zr0z1312906019.png",intern=TRUE)) character(0) > try(system("convert tmp/58ox01312906019.ps tmp/58ox01312906019.png",intern=TRUE)) character(0) > try(system("convert tmp/65s391312906019.ps tmp/65s391312906019.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.378 0.272 1.663