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(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) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 467037 476049 519164 562325 590865 593408 560576 NA [2,] 460070 474605 517009 560854 589379 590072 548854 NA [3,] 447988 470439 509933 555332 584428 579799 531673 NA [4,] 442867 461251 509127 543599 573100 574205 525919 NA [5,] 436087 454724 500857 536662 567456 572775 511038 NA [6,] 431328 455626 506971 542722 569028 572942 498662 NA [7,] 484015 516847 569323 593530 620735 619567 555362 NA [8,] 509673 525192 579714 610763 628884 625809 564591 NA [9,] 512927 522975 577992 612613 628232 619916 541657 NA [10,] 502831 518585 565464 611324 612117 587625 527070 NA [11,] 470984 509239 547344 594167 595404 565742 509846 NA [12,] 471067 512238 554788 595454 597141 557274 514258 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -6967 -1444 -2155 -1471 -1486 -3336 -11722 NA [2,] -12082 -4166 -7076 -5522 -4951 -10273 -17181 NA [3,] -5121 -9188 -806 -11733 -11328 -5594 -5754 NA [4,] -6780 -6527 -8270 -6937 -5644 -1430 -14881 NA [5,] -4759 902 6114 6060 1572 167 -12376 NA [6,] 52687 61221 62352 50808 51707 46625 56700 NA [7,] 25658 8345 10391 17233 8149 6242 9229 NA [8,] 3254 -2217 -1722 1850 -652 -5893 -22934 NA [9,] -10096 -4390 -12528 -1289 -16115 -32291 -14587 NA [10,] -31847 -9346 -18120 -17157 -16713 -21883 -17224 NA [11,] 83 2999 7444 1287 1737 -8468 4412 NA [12,] 4982 6926 7537 -4589 -3733 3302 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/1b2ya1229700658.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/2tg0i1229700658.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/3medu1229700658.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/4ibs71229700658.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] [1,] 467037.0 460070.0 447988.0 442867.0 436087.0 431328 484015.0 509673.0 [2,] 497606.5 495807.0 490186.0 485189.0 477790.5 477144 536104.5 544891.5 [3,] 560576.0 548854.0 531673.0 525919.0 511038.0 506971 569323.0 579714.0 [4,] 576595.0 575116.5 567565.5 558349.5 552059.0 555875 606548.5 618286.0 [5,] 593408.0 590072.0 584428.0 574205.0 572775.0 572942 620735.0 628884.0 [,9] [,10] [,11] [,12] [1,] 512927.0 502831.0 470984.0 471067 [2,] 532316.0 522827.5 509542.5 513248 [3,] 577992.0 565464.0 547344.0 554788 [4,] 616264.5 599474.5 579954.5 576364 [5,] 628232.0 612117.0 595404.0 597141 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 513405.3 501491.6 485463.2 482228.7 466686.0 459954.1 527255 535884 [2,] 607746.7 596216.4 577882.8 569609.3 555390.0 553987.9 611391 623544 [,9] [,10] [,11] [,12] [1,] 527859.3 519691.6 505295.1 517096.1 [2,] 628124.7 611236.4 589392.9 592479.9 $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, 497606.5, 560576, 576595, 593408, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5lmxv1229700658.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,] -6967.0 -17181.0 -11733.0 -8270.0 -4759 46625.0 6242 -5893 -16115 [2,] -5151.5 -11177.5 -10258.0 -7603.5 -2296 51257.5 8247 -4055 -15351 [3,] -2155.0 -7076.0 -5754.0 -6780.0 902 52687.0 9229 -1722 -12528 [4,] -1478.5 -5236.5 -5357.5 -6085.5 3816 58960.5 13812 599 -7243 [5,] -1444.0 -4166.0 -806.0 -5644.0 6114 62352.0 17233 3254 -1289 [,10] [,11] [,12] [1,] -21883.0 83.0 -4589 [2,] -20001.5 685.0 -3733 [3,] -17224.0 1737.0 4142 [4,] -16935.0 3705.5 6926 [5,] -16713.0 7444.0 7537 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4348.45634 -10623.869 -8680.500 -7686.525 -2747.988 48086.89 5905.672 [2,] 38.45634 -3528.131 -2827.500 -5873.475 4551.988 57287.11 12552.328 [,8] [,9] [,10] [,11] [,12] [1,] -4501.294 -17369.967 -19055.26 -66.79387 -2733.399 [2,] 1057.294 -7686.033 -15392.74 3540.79387 11017.399 $out [1] -11722 -1430 -14881 -12376 25658 -22934 -32291 -31847 -9346 -8468 $group [1] 1 4 4 5 7 8 9 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, -17181, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/69mus1229700658.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,] 431328.0 454724 500857.0 536662.0 567456.0 557274.0 498662.0 NA [2,] 445427.5 465845 509530.0 549465.5 578764.0 572858.5 512648.0 NA [3,] 469010.5 492644 533254.0 577927.5 593134.5 583712.0 529371.5 NA [4,] 493423.0 517716 567393.5 603108.5 616426.0 606487.5 552108.0 NA [5,] 512927.0 525192 579714.0 612613.0 628884.0 625809.0 564591.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 447119.4 468985.3 506862.1 553460.6 575956.6 568373.6 511373.5 NA [2,] 490901.6 516302.7 559645.9 602394.4 610312.4 599050.4 547369.5 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(431328, 445427.5, 469010.5, 493423, 512927, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7fll61229700658.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,] 511039.9 506971.0 514924.8 [2,] 522118.6 528796.0 525322.5 [3,] 540153.6 551821.0 540924.6 [4,] 563171.1 567393.5 566238.8 [5,] 577803.7 579714.0 581588.8 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 521429.3 534216.4 522262.4 [2,] 558877.9 569425.6 559586.8 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(511039.857142857, 522118.571428571, 540153.571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1b2ya1229700658.ps tmp/1b2ya1229700658.png") > system("convert tmp/2tg0i1229700658.ps tmp/2tg0i1229700658.png") > system("convert tmp/3medu1229700658.ps tmp/3medu1229700658.png") > system("convert tmp/4ibs71229700658.ps tmp/4ibs71229700658.png") > system("convert tmp/5lmxv1229700658.ps tmp/5lmxv1229700658.png") > system("convert tmp/69mus1229700658.ps tmp/69mus1229700658.png") > system("convert tmp/7fll61229700658.ps tmp/7fll61229700658.png") > > > proc.time() user system elapsed 1.855 1.436 2.102