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(516141,501866,506174,517945,533590,528379,477580,469357,490243,492622,507561,516922,514258,509846,527070,541657,564591,555362,498662,511038,525919,531673,548854,560576,557274,565742,587625,619916,625809,619567,572942,572775,574205,579799,590072,593408,597141,595404,612117,628232,628884,620735,569028,567456,573100,584428,589379,590865,595454,594167,611324,612613,610763,593530,542722,536662,543599,555332,560854,562325,554788,547344,565464,577992,579714,569323,506971,500857,509127,509933,517009,519164) > 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,] 516141 514258 557274 597141 595454 554788 NA [2,] 501866 509846 565742 595404 594167 547344 NA [3,] 506174 527070 587625 612117 611324 565464 NA [4,] 517945 541657 619916 628232 612613 577992 NA [5,] 533590 564591 625809 628884 610763 579714 NA [6,] 528379 555362 619567 620735 593530 569323 NA [7,] 477580 498662 572942 569028 542722 506971 NA [8,] 469357 511038 572775 567456 536662 500857 NA [9,] 490243 525919 574205 573100 543599 509127 NA [10,] 492622 531673 579799 584428 555332 509933 NA [11,] 507561 548854 590072 589379 560854 517009 NA [12,] 516922 560576 593408 590865 562325 519164 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/1kjm51244324793.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/2d3jo1244324793.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/34hff1244324793.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/4ofk41244324793.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] [1,] 514258 501866 506174.0 517945.0 533590.0 528379.0 477580.0 469357 490243 [2,] 516141 509846 527070.0 541657.0 564591.0 555362.0 498662.0 500857 509127 [3,] 556031 556543 576544.5 595302.5 595238.5 581426.5 524846.5 523850 534759 [4,] 595454 594167 611324.0 619916.0 625809.0 619567.0 569028.0 567456 573100 [5,] 597141 595404 612117.0 628232.0 628884.0 620735.0 572942.0 572775 574205 [,10] [,11] [,12] [1,] 492622.0 507561 516922.0 [2,] 509933.0 517009 519164.0 [3,] 543502.5 554854 561450.5 [4,] 579799.0 589379 590865.0 [5,] 584428.0 590072 593408.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,] 504871.6 502153.2 522198 544822.9 555750.9 540012.2 479458.2 480891.5 [2,] 607190.4 610932.8 630891 645782.1 634726.1 622840.8 570234.8 566808.5 [,9] [,10] [,11] [,12] [1,] 493494.3 498436.7 508173 515201 [2,] 576023.7 588568.3 601535 607700 $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(514258, 516141, 556031, 595454, 597141, 501866, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5eq0w1244324793.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] [,7] [1,] 469357.0 498662.0 557274.0 567456.0 536662.0 500857.0 NA [2,] 491432.5 512648.0 572858.5 578764.0 549465.5 509530.0 NA [3,] 506867.5 529371.5 583712.0 593134.5 577927.5 533254.0 NA [4,] 517433.5 552108.0 606487.5 616426.0 603108.5 567393.5 NA [5,] 533590.0 564591.0 625809.0 628884.0 612613.0 579714.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 495008.3 511373.5 568373.6 575956.6 553460.6 506862.1 NA [2,] 518726.7 547369.5 599050.4 610312.4 602394.4 559645.9 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(469357, 491432.5, 506867.5, 517433.5, 533590, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6sdvs1244324793.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,] 33319.87 76486.0 52399.75 [2,] 35655.23 83422.5 54209.25 [3,] 37597.43 92947.0 57795.88 [4,] 40305.96 99390.0 64530.88 [5,] 45281.59 110287.0 68730.75 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 35476.20 85664.12 53088.11 [2,] 39718.66 100229.88 62503.64 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(33319.869357487, 35655.2330710635, 37597.4265580109, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1kjm51244324793.ps tmp/1kjm51244324793.png") > system("convert tmp/2d3jo1244324793.ps tmp/2d3jo1244324793.png") > system("convert tmp/34hff1244324793.ps tmp/34hff1244324793.png") > system("convert tmp/4ofk41244324793.ps tmp/4ofk41244324793.png") > system("convert tmp/5eq0w1244324793.ps tmp/5eq0w1244324793.png") > system("convert tmp/6sdvs1244324793.ps tmp/6sdvs1244324793.png") > > > proc.time() user system elapsed 1.737 1.348 1.993