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(492865,480961,461935,456608,441977,439148,488180,520564,501492,485025,464196,460170,467037,460070,447988,442867,436087,431328,484015,509673,512927,502831,470984,471067,476049,474605,470439,461251,454724,455626,516847,525192,522975,518585,509239,512238,519164,517009,509933,509127,500857,506971,569323,579714,577992,565464,547344,554788,562325,560854,555332,543599,536662,542722,593530,610763,612613,611324,594167,595454,590865,589379,584428,573100,567456,569028,620735,628884,628232,612117,595404,597141) > par1 = '12' > par1 <- as.numeric(par1) > (n <- length(x)) [1] 72 > (np <- floor(n / par1)) [1] 6 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[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,] 492865 467037 476049 519164 562325 590865 NA [2,] 480961 460070 474605 517009 560854 589379 NA [3,] 461935 447988 470439 509933 555332 584428 NA [4,] 456608 442867 461251 509127 543599 573100 NA [5,] 441977 436087 454724 500857 536662 567456 NA [6,] 439148 431328 455626 506971 542722 569028 NA [7,] 488180 484015 516847 569323 593530 620735 NA [8,] 520564 509673 525192 579714 610763 628884 NA [9,] 501492 512927 522975 577992 612613 628232 NA [10,] 485025 502831 518585 565464 611324 612117 NA [11,] 464196 470984 509239 547344 594167 595404 NA [12,] 460170 471067 512238 554788 595454 597141 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -11904 -6967 -1444 -2155 -1471 -1486 NA [2,] -19026 -12082 -4166 -7076 -5522 -4951 NA [3,] -5327 -5121 -9188 -806 -11733 -11328 NA [4,] -14631 -6780 -6527 -8270 -6937 -5644 NA [5,] -2829 -4759 902 6114 6060 1572 NA [6,] 49032 52687 61221 62352 50808 51707 NA [7,] 32384 25658 8345 10391 17233 8149 NA [8,] -19072 3254 -2217 -1722 1850 -652 NA [9,] -16467 -10096 -4390 -12528 -1289 -16115 NA [10,] -20829 -31847 -9346 -18120 -17157 -16713 NA [11,] -4026 83 2999 7444 1287 1737 NA [12,] 6867 4982 6926 7537 -4589 NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/html/freestat/rcomp/tmp/1dwa91257875080.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/2aov21257875080.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/38nud1257875080.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/4si6m1257875080.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,] 467037.0 460070 447988 442867 436087.0 431328.0 484015 509673 501492.0 [2,] 476049.0 474605 461935 456608 441977.0 439148.0 488180 520564 512927.0 [3,] 506014.5 498985 490186 485189 477790.5 481298.5 543085 552453 550483.5 [4,] 562325.0 560854 555332 543599 536662.0 542722.0 593530 610763 612613.0 [5,] 590865.0 589379 584428 573100 567456.0 569028.0 620735 628884 628232.0 [,10] [,11] [,12] [1,] 485025.0 464196.0 460170 [2,] 502831.0 470984.0 471067 [3,] 542024.5 528291.5 533513 [4,] 611324.0 594167.0 595454 [5,] 612117.0 595404.0 597141 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 450363.7 443351.6 429941.9 429077 416715.6 414489.9 475130.8 494271.7 [2,] 561665.3 554618.4 550430.1 541301 538865.4 548107.1 611039.2 610634.3 [,9] [,10] [,11] [,12] [1,] 486182.8 472043 448834.5 453279.4 [2,] 614784.2 612006 607748.5 613746.6 $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(467037, 476049, 506014.5, 562325, 590865, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5wcll1257875080.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -11904.0 -19026 -11733.0 -8270.0 -4759 49032 8149 -2217 -16467 -20829.0 [2,] -6967.0 -12082 -11328.0 -8270.0 -2829 50808 8345 -2217 -16115 -20829.0 [3,] -1820.5 -6299 -7257.5 -6858.5 1237 52197 13812 -1187 -11312 -17638.5 [4,] -1471.0 -4951 -5121.0 -6527.0 6060 61221 25658 1850 -4390 -16713.0 [5,] -1444.0 -4166 -806.0 -5644.0 6114 62352 32384 3254 -1289 -16713.0 [,11] [,12] [1,] -4026 4982 [2,] 83 4982 [3,] 1512 6867 [4,] 2999 6926 [5,] 2999 7537 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5365.598 -10898.725 -11261.215 -7982.791 -4496.692 45480.28 2644.556 [2,] 1724.598 -1699.275 -3253.785 -5734.209 6970.692 58913.72 24979.444 [,8] [,9] [,10] [,11] [,12] [1,] -3810.346 -18875.004 -20293.45 -368.9142 5493.374 [2,] 1436.346 -3748.996 -14983.55 3392.9142 8240.626 $out [1] -14631 -19072 -31847 -9346 7444 -4589 $group [1] 4 8 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11904, -6967, -1820.5, -1471, -1444, -19026, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6vcft1257875080.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,] 439148.0 431328.0 454724 500857.0 536662.0 567456.0 NA [2,] 458389.0 445427.5 465845 509530.0 549465.5 578764.0 NA [3,] 472578.5 469010.5 492644 533254.0 577927.5 593134.5 NA [4,] 490522.5 493423.0 517716 567393.5 603108.5 616426.0 NA [5,] 520564.0 512927.0 525192 579714.0 612613.0 628884.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 457922.2 447119.4 468985.3 506862.1 553460.6 575956.6 NA [2,] 487234.8 490901.6 516302.7 559645.9 602394.4 610312.4 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(439148, 458389, 472578.5, 490522.5, 520564, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7687x1257875080.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 489627.2 477790.5 486437.2 [2,] 501383.9 487687.5 500198.2 [3,] 524136.6 517153.0 523699.2 [4,] 547331.3 542554.8 547363.4 [5,] 562465.0 552453.0 562360.9 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 503179.7 492127.7 502186.9 [2,] 545093.5 542178.3 545211.5 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1dwa91257875080.ps tmp/1dwa91257875080.png") > system("convert tmp/2aov21257875080.ps tmp/2aov21257875080.png") > system("convert tmp/38nud1257875080.ps tmp/38nud1257875080.png") > system("convert tmp/4si6m1257875080.ps tmp/4si6m1257875080.png") > system("convert tmp/5wcll1257875080.ps tmp/5wcll1257875080.png") > system("convert tmp/6vcft1257875080.ps tmp/6vcft1257875080.png") > system("convert tmp/7687x1257875080.ps tmp/7687x1257875080.png") > > > proc.time() user system elapsed 1.876 1.480 2.186