R version 2.9.0 (2009-04-17) Copyright (C) 2009 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,574205,572775,572942,619567,625809,619916,587625,565742,557274,560576,548854,531673,525919,511038,498662,555362,564591,541657,527070,509846,514258,516922,507561,492622,490243,469357,477580,528379,533590,517945,506174,501866,516141,528222,532638,536322,536535,523597,536214,586570,596594,580523) > 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] 117 > (np <- floor(n / par1)) [1] 9 > 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] 10 10 10 10 10 10 10 10 10 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 492865 467037 476049 519164 562325 590865 593408 560576 516922 528222 [2,] 480961 460070 474605 517009 560854 589379 590072 548854 507561 532638 [3,] 461935 447988 470439 509933 555332 584428 579799 531673 492622 536322 [4,] 456608 442867 461251 509127 543599 573100 574205 525919 490243 536535 [5,] 441977 436087 454724 500857 536662 567456 572775 511038 469357 523597 [6,] 439148 431328 455626 506971 542722 569028 572942 498662 477580 536214 [7,] 488180 484015 516847 569323 593530 620735 619567 555362 528379 586570 [8,] 520564 509673 525192 579714 610763 628884 625809 564591 533590 596594 [9,] 501492 512927 522975 577992 612613 628232 619916 541657 517945 580523 [10,] 485025 502831 518585 565464 611324 612117 587625 527070 506174 NA [11,] 464196 470984 509239 547344 594167 595404 565742 509846 501866 NA [12,] 460170 471067 512238 554788 595454 597141 557274 514258 516141 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -11904 -6967 -1444 -2155 -1471 -1486 -3336 -11722 -9361 4416 [2,] -19026 -12082 -4166 -7076 -5522 -4951 -10273 -17181 -14939 3684 [3,] -5327 -5121 -9188 -806 -11733 -11328 -5594 -5754 -2379 213 [4,] -14631 -6780 -6527 -8270 -6937 -5644 -1430 -14881 -20886 -12938 [5,] -2829 -4759 902 6114 6060 1572 167 -12376 8223 12617 [6,] 49032 52687 61221 62352 50808 51707 46625 56700 50799 50356 [7,] 32384 25658 8345 10391 17233 8149 6242 9229 5211 10024 [8,] -19072 3254 -2217 -1722 1850 -652 -5893 -22934 -15645 -16071 [9,] -16467 -10096 -4390 -12528 -1289 -16115 -32291 -14587 -11771 NA [10,] -20829 -31847 -9346 -18120 -17157 -16713 -21883 -17224 -4308 NA [11,] -4026 83 2999 7444 1287 1737 -8468 4412 14275 NA [12,] 6867 4982 6926 7537 -4589 -3733 3302 2664 12081 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/1erun1260963282.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/rcomp/tmp/2i5lj1260963282.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/3cfxm1260963282.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/4ljzi1260963282.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 460070.0 447988 442867 436087.0 431328.0 484015.0 509673.0 501492.0 [2,] 492865 480961.0 470439 461251 454724.0 455626.0 516847.0 525192.0 517945.0 [3,] 523693 524823.5 520803 517523 505947.5 502816.5 562342.5 572152.5 559824.5 [4,] 562325 560854.0 555332 543599 536662.0 542722.0 593530.0 610763.0 612613.0 [5,] 593408 590072.0 584428 574205 572775.0 572942.0 620735.0 628884.0 628232.0 [,10] [,11] [,12] [1,] 485025 464196 460170 [2,] 506174 501866 512238 [3,] 527070 509846 516141 [4,] 587625 565742 557274 [5,] 612117 595404 597141 $n [1] 10 10 10 10 10 10 10 10 10 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 488988 484905.8 478387.1 476378.7 465008 459299.9 524028.6 529397.8 [2,] 558398 564741.2 563218.9 558667.3 546887 546333.1 600656.4 614907.2 [,9] [,10] [,11] [,12] [1,] 512524.6 484172.5 476204.6 492422 [2,] 607124.4 569967.5 543487.4 539860 $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, 492865, 523693, 562325, 593408, 460070, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/52cgf1260963282.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] [1,] -11904.0 -19026.0 -11733.0 -20886.0 -12376 46625.0 5211.0 -22934 -16467 [2,] -9361.0 -14939.0 -9188.0 -14631.0 -2829 50356.0 8149.0 -16071 -16115 [3,] -2745.5 -8674.5 -5460.5 -7603.5 1237 51257.5 9626.5 -4055 -12528 [4,] -1471.0 -4951.0 -2379.0 -6527.0 6114 56700.0 17233.0 -652 -10096 [5,] 4416.0 3684.0 213.0 -1430.0 12617 62352.0 25658.0 3254 -1289 [,10] [,11] [,12] [1,] -21883 -4026 2664 [2,] -20829 83 2664 [3,] -17224 1737 4982 [4,] -16713 4412 6926 [5,] -16713 7444 12081 $n [1] 10 10 10 10 10 10 10 10 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -6687.659 -13664.903 -8862.548 -11652.582 -3231.279 48087.78 5087.771 [2,] 1196.659 -3684.097 -2058.452 -3554.418 5705.279 54427.22 14165.229 [,8] [,9] [,10] [,11] [,12] [1,] -11758.947 -15698.007 -19391.76 -542.94 2737.347 [2,] 3648.947 -9357.993 -15056.24 4016.94 7226.653 $out [1] 32384 -32291 -31847 -9346 -4308 -8468 14275 -4589 -3733 $group [1] 7 9 10 10 10 11 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11904, -9361, -2745.5, -1471, 4416, -19026, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/68pb01260963282.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] [,8] [1,] 439148.0 431328.0 454724 500857.0 536662.0 567456.0 557274.0 498662.0 [2,] 458389.0 445427.5 465845 509530.0 549465.5 578764.0 572858.5 512648.0 [3,] 472578.5 469010.5 492644 533254.0 577927.5 593134.5 583712.0 529371.5 [4,] 490522.5 493423.0 517716 567393.5 603108.5 616426.0 606487.5 552108.0 [5,] 520564.0 512927.0 525192 579714.0 612613.0 628884.0 625809.0 564591.0 [,9] [,10] [1,] 469357.0 523597 [2,] 491432.5 532638 [3,] 506867.5 536322 [4,] 517433.5 580523 [5,] 533590.0 596594 $n [1] 12 12 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 457922.2 447119.4 468985.3 506862.1 553460.6 575956.6 568373.6 511373.5 [2,] 487234.8 490901.6 516302.7 559645.9 602394.4 610312.4 599050.4 547369.5 [,9] [,10] [1,] 495008.3 511102.6 [2,] 518726.7 561541.4 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" 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/7iowm1260963282.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,] 501453.0 502816.5 495889.0 [2,] 514196.2 512993.5 509224.1 [3,] 529748.8 522248.0 532093.8 [4,] 551248.5 543447.2 551329.8 [5,] 569537.4 572152.5 567256.1 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 512849.0 508357.8 512889.1 [2,] 546648.5 536138.2 551298.4 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(501453, 514196.25, 529748.761111111, 551248.455555556, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1erun1260963282.ps tmp/1erun1260963282.png",intern=TRUE)) character(0) > try(system("convert tmp/2i5lj1260963282.ps tmp/2i5lj1260963282.png",intern=TRUE)) character(0) > try(system("convert tmp/3cfxm1260963282.ps tmp/3cfxm1260963282.png",intern=TRUE)) character(0) > try(system("convert tmp/4ljzi1260963282.ps tmp/4ljzi1260963282.png",intern=TRUE)) character(0) > try(system("convert tmp/52cgf1260963282.ps tmp/52cgf1260963282.png",intern=TRUE)) character(0) > try(system("convert tmp/68pb01260963282.ps tmp/68pb01260963282.png",intern=TRUE)) character(0) > try(system("convert tmp/7iowm1260963282.ps tmp/7iowm1260963282.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.200 0.941 1.516