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,593408,590072,579799) > par1 = '12' > par1 <- as.numeric(par1) > (n <- length(x)) [1] 75 > (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] 7 7 7 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 492865 467037 476049 519164 562325 590865 593408 [2,] 480961 460070 474605 517009 560854 589379 590072 [3,] 461935 447988 470439 509933 555332 584428 579799 [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 -3336 [2,] -19026 -12082 -4166 -7076 -5522 -4951 -10273 [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 -3733 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/rcomp/tmp/1hrep1229092528.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='01/2000-03/2006') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2zags1229092528.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/rcomp/tmp/3wkv61229092528.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/rcomp/tmp/4uyyf1229092528.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='01/2000-03/2006',ylab='aantal werklozen',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 467037 460070.0 447988.0 442867 436087.0 431328.0 484015 509673 501492.0 [2,] 484457 477783.0 466187.0 456608 441977.0 439148.0 488180 520564 512927.0 [3,] 519164 517009.0 509933.0 485189 477790.5 481298.5 543085 552453 550483.5 [4,] 576595 575116.5 567565.5 543599 536662.0 542722.0 593530 610763 612613.0 [5,] 593408 590072.0 584428.0 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] 7 7 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 464140.7 458883 449391.4 429077 416715.6 414489.9 475130.8 494271.7 [2,] 574187.3 575135 570474.6 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, 484457, 519164, 576595, 593408, 460070, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ajud1229092528.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='01/2000-03/2006',ylab='aantal werklozen',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -6967.0 -19026.0 -11733.0 -8270.0 -4759 49032 8149 -2217 -16467 -20829.0 [2,] -5151.5 -11177.5 -11328.0 -8270.0 -2829 50808 8345 -2217 -16115 -20829.0 [3,] -2155.0 -7076.0 -7257.5 -6858.5 1237 52197 13812 -1187 -11312 -17638.5 [4,] -1478.5 -5236.5 -5121.0 -6527.0 6060 61221 25658 1850 -4390 -16713.0 [5,] -1444.0 -4166.0 -806.0 -5644.0 6114 62352 32384 3254 -1289 -16713.0 [,11] [,12] [1,] -4026 -4589.0 [2,] 83 -3733.0 [3,] 1512 5924.5 [4,] 2999 6926.0 [5,] 2999 7537.0 $n [1] 7 7 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4348.45634 -10623.869 -11261.215 -7982.791 -4496.692 45480.28 2644.556 [2,] 38.45634 -3528.131 -3253.785 -5734.209 6970.692 58913.72 24979.444 [,8] [,9] [,10] [,11] [,12] [1,] -3810.346 -18875.004 -20293.45 -368.9142 -950.8993 [2,] 1436.346 -3748.996 -14983.55 3392.9142 12799.8993 $out [1] -11904 -14631 -19072 -31847 -9346 7444 $group [1] 1 4 8 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6967, -5151.5, -2155, -1478.5, -1444, -19026, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6atqk1229092528.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='aantal werklozen',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 579799.0 [2,] 458389.0 445427.5 465845 509530.0 549465.5 578764.0 584935.5 [3,] 472578.5 469010.5 492644 533254.0 577927.5 593134.5 590072.0 [4,] 490522.5 493423.0 517716 567393.5 603108.5 616426.0 591740.0 [5,] 520564.0 512927.0 525192 579714.0 612613.0 628884.0 593408.0 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 457922.2 447119.4 468985.3 506862.1 553460.6 575956.6 583864.8 [2,] 487234.8 490901.6 516302.7 559645.9 602394.4 610312.4 596279.2 $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/rcomp/tmp/77cv61229092528.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,] 506726.0 497561.0 506625.6 [3,] 529519.2 523727.8 531015.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,] 510998.9 503205.8 512434.5 [2,] 548039.6 544249.7 549596.0 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(489627.166666667, 506726.047619048, 529519.238095238, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1hrep1229092528.ps tmp/1hrep1229092528.png") > system("convert tmp/2zags1229092528.ps tmp/2zags1229092528.png") > system("convert tmp/3wkv61229092528.ps tmp/3wkv61229092528.png") > system("convert tmp/4uyyf1229092528.ps tmp/4uyyf1229092528.png") > system("convert tmp/5ajud1229092528.ps tmp/5ajud1229092528.png") > system("convert tmp/6atqk1229092528.ps tmp/6atqk1229092528.png") > system("convert tmp/77cv61229092528.ps tmp/77cv61229092528.png") > > > proc.time() user system elapsed 1.210 0.943 1.485