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(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)) > 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,] 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 > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -14275 -4412 8468 -1737 -1287 -7444 NA [2,] 4308 17224 21883 16713 17157 18120 NA [3,] 11771 14587 32291 16115 1289 12528 NA [4,] 15645 22934 5893 652 -1850 1722 NA [5,] -5211 -9229 -6242 -8149 -17233 -10391 NA [6,] -50799 -56700 -46625 -51707 -50808 -62352 NA [7,] -8223 12376 -167 -1572 -6060 -6114 NA [8,] 20886 14881 1430 5644 6937 8270 NA [9,] 2379 5754 5594 11328 11733 806 NA [10,] 14939 17181 10273 4951 5522 7076 NA [11,] 9361 11722 3336 1486 1471 2155 NA [12,] -2664 -3302 3733 4589 -7537 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/rcomp/tmp/19ol01244036924.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/26hnb1244036924.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/3o5ih1244036924.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/4o9pe1244036924.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/rcomp/tmp/5kx8w1244036924.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,] -14275.0 16713.0 11771.0 -1850.0 -10391 -62352.0 -8223 1430.0 806 [2,] -7444.0 16713.0 11771.0 652.0 -10391 -56700.0 -6114 5644.0 2379 [3,] -3074.5 17190.5 13557.5 3807.5 -8689 -51257.5 -3816 7603.5 5674 [4,] -1287.0 18120.0 16115.0 15645.0 -6242 -50799.0 -167 14881.0 11328 [5,] -1287.0 18120.0 16115.0 22934.0 -5211 -46625.0 -167 20886.0 11733 [,10] [,11] [,12] [1,] 4951.0 1471.0 -7537 [2,] 5522.0 1486.0 -3302 [3,] 8674.5 2745.5 -2664 [4,] 14939.0 9361.0 3733 [5,] 17181.0 11722.0 4589 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7045.9639 16282.94 10755.48 -5863.469 -11365.239 -55063.84 -7652.00708 [2,] 896.9639 18098.06 16359.52 13478.469 -6012.761 -47451.16 20.00708 [,8] [,9] [,10] [,11] [,12] [1,] 1645.337 -98.39404 2600.231 -2334.129 -7634.913 [2,] 13561.663 11446.39404 14748.769 7825.129 2306.913 $out [1] 8468 4308 21883 32291 1289 -17233 12376 $group [1] 1 2 2 3 3 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-14275, -7444, -3074.5, -1287, -1287, 16713, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6nfsr1244036924.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/rcomp/tmp/7xzno1244036924.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,] 526357.5 523850.0 531579.9 [2,] 539165.0 539130.8 542025.0 [3,] 554118.8 556287.0 554732.4 [4,] 574722.5 578985.5 577724.7 [5,] 590558.5 595302.5 595209.6 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 537900.7 538109 538449.6 [2,] 570336.8 574465 571015.3 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(526357.5, 539165, 554118.75, 574722.5, 590558.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/19ol01244036924.ps tmp/19ol01244036924.png") > system("convert tmp/26hnb1244036924.ps tmp/26hnb1244036924.png") > system("convert tmp/3o5ih1244036924.ps tmp/3o5ih1244036924.png") > system("convert tmp/4o9pe1244036924.ps tmp/4o9pe1244036924.png") > system("convert tmp/5kx8w1244036924.ps tmp/5kx8w1244036924.png") > system("convert tmp/6nfsr1244036924.ps tmp/6nfsr1244036924.png") > system("convert tmp/7xzno1244036924.ps tmp/7xzno1244036924.png") > > > proc.time() user system elapsed 1.185 0.940 1.595