R version 2.7.2 (2008-08-25) 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(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) > par1 = '60' > #'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] 61 > (np <- floor(n / par1)) [1] 1 > 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] 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > arr [,1] [,2] [1,] 577992 517945 [2,] 565464 NA [3,] 547344 NA [4,] 554788 NA [5,] 562325 NA [6,] 560854 NA [7,] 555332 NA [8,] 543599 NA [9,] 536662 NA [10,] 542722 NA [11,] 593530 NA [12,] 610763 NA [13,] 612613 NA [14,] 611324 NA [15,] 594167 NA [16,] 595454 NA [17,] 590865 NA [18,] 589379 NA [19,] 584428 NA [20,] 573100 NA [21,] 567456 NA [22,] 569028 NA [23,] 620735 NA [24,] 628884 NA [25,] 628232 NA [26,] 612117 NA [27,] 595404 NA [28,] 597141 NA [29,] 593408 NA [30,] 590072 NA [31,] 579799 NA [32,] 574205 NA [33,] 572775 NA [34,] 572942 NA [35,] 619567 NA [36,] 625809 NA [37,] 619916 NA [38,] 587625 NA [39,] 565742 NA [40,] 557274 NA [41,] 560576 NA [42,] 548854 NA [43,] 531673 NA [44,] 525919 NA [45,] 511038 NA [46,] 498662 NA [47,] 555362 NA [48,] 564591 NA [49,] 541657 NA [50,] 527070 NA [51,] 509846 NA [52,] 514258 NA [53,] 516922 NA [54,] 507561 NA [55,] 492622 NA [56,] 490243 NA [57,] 469357 NA [58,] 477580 NA [59,] 528379 NA [60,] 533590 NA > darr [,1] [,2] [1,] -12528 NA [2,] -18120 NA [3,] 7444 NA [4,] 7537 NA [5,] -1471 NA [6,] -5522 NA [7,] -11733 NA [8,] -6937 NA [9,] 6060 NA [10,] 50808 NA [11,] 17233 NA [12,] 1850 NA [13,] -1289 NA [14,] -17157 NA [15,] 1287 NA [16,] -4589 NA [17,] -1486 NA [18,] -4951 NA [19,] -11328 NA [20,] -5644 NA [21,] 1572 NA [22,] 51707 NA [23,] 8149 NA [24,] -652 NA [25,] -16115 NA [26,] -16713 NA [27,] 1737 NA [28,] -3733 NA [29,] -3336 NA [30,] -10273 NA [31,] -5594 NA [32,] -1430 NA [33,] 167 NA [34,] 46625 NA [35,] 6242 NA [36,] -5893 NA [37,] -32291 NA [38,] -21883 NA [39,] -8468 NA [40,] 3302 NA [41,] -11722 NA [42,] -17181 NA [43,] -5754 NA [44,] -14881 NA [45,] -12376 NA [46,] 56700 NA [47,] 9229 NA [48,] -22934 NA [49,] -14587 NA [50,] -17224 NA [51,] 4412 NA [52,] 2664 NA [53,] -9361 NA [54,] -14939 NA [55,] -2379 NA [56,] -20886 NA [57,] 8223 NA [58,] 50799 NA [59,] 5211 NA [60,] -15645 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/1kqnl1225298462.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/2y9n81225298462.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/3lkre1225298462.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/4dq2o1225298462.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] [,10] [1,] 517945.0 565464 547344 554788 562325 560854 555332 543599 536662 542722 [2,] 517945.0 565464 547344 554788 562325 560854 555332 543599 536662 542722 [3,] 547968.5 565464 547344 554788 562325 560854 555332 543599 536662 542722 [4,] 577992.0 565464 547344 554788 562325 560854 555332 543599 536662 542722 [5,] 577992.0 565464 547344 554788 562325 560854 555332 543599 536662 542722 [,11] [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [1,] 593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 [2,] 593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 [3,] 593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 [4,] 593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 [5,] 593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 [,21] [,22] [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [1,] 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 [2,] 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 [3,] 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 [4,] 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 [5,] 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [,39] [,40] [1,] 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 [2,] 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 [3,] 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 [4,] 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 [5,] 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 [2,] 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 [3,] 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 [4,] 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 [5,] 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 [2,] 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 [3,] 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 [4,] 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 [5,] 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 $n [1] 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 480882.3 565464 547344 554788 562325 560854 555332 543599 536662 542722 [2,] 615054.7 565464 547344 554788 562325 560854 555332 543599 536662 542722 [,11] [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [1,] 593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 [2,] 593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 [,21] [,22] [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [1,] 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 [2,] 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [,39] [,40] [1,] 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 [2,] 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 [,41] [,42] [,43] [,44] [,45] [,46] [,47] [,48] [,49] [,50] [1,] 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 [2,] 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [,59] [,60] [1,] 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 [2,] 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" [46] "46" "47" "48" "49" "50" "51" "52" "53" "54" "55" "56" "57" "58" "59" "60" Warning message: In bxp(list(stats = c(517945, 517945, 547968.5, 577992, 577992, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5brsn1225298462.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] [,11] [,12] [1,] -12528 -18120 7444 7537 -1471 -5522 -11733 -6937 6060 50808 17233 1850 [2,] -12528 -18120 7444 7537 -1471 -5522 -11733 -6937 6060 50808 17233 1850 [3,] -12528 -18120 7444 7537 -1471 -5522 -11733 -6937 6060 50808 17233 1850 [4,] -12528 -18120 7444 7537 -1471 -5522 -11733 -6937 6060 50808 17233 1850 [5,] -12528 -18120 7444 7537 -1471 -5522 -11733 -6937 6060 50808 17233 1850 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] -1289 -17157 1287 -4589 -1486 -4951 -11328 -5644 1572 51707 8149 -652 [2,] -1289 -17157 1287 -4589 -1486 -4951 -11328 -5644 1572 51707 8149 -652 [3,] -1289 -17157 1287 -4589 -1486 -4951 -11328 -5644 1572 51707 8149 -652 [4,] -1289 -17157 1287 -4589 -1486 -4951 -11328 -5644 1572 51707 8149 -652 [5,] -1289 -17157 1287 -4589 -1486 -4951 -11328 -5644 1572 51707 8149 -652 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] -16115 -16713 1737 -3733 -3336 -10273 -5594 -1430 167 46625 6242 -5893 [2,] -16115 -16713 1737 -3733 -3336 -10273 -5594 -1430 167 46625 6242 -5893 [3,] -16115 -16713 1737 -3733 -3336 -10273 -5594 -1430 167 46625 6242 -5893 [4,] -16115 -16713 1737 -3733 -3336 -10273 -5594 -1430 167 46625 6242 -5893 [5,] -16115 -16713 1737 -3733 -3336 -10273 -5594 -1430 167 46625 6242 -5893 [,37] [,38] [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [1,] -32291 -21883 -8468 3302 -11722 -17181 -5754 -14881 -12376 56700 9229 [2,] -32291 -21883 -8468 3302 -11722 -17181 -5754 -14881 -12376 56700 9229 [3,] -32291 -21883 -8468 3302 -11722 -17181 -5754 -14881 -12376 56700 9229 [4,] -32291 -21883 -8468 3302 -11722 -17181 -5754 -14881 -12376 56700 9229 [5,] -32291 -21883 -8468 3302 -11722 -17181 -5754 -14881 -12376 56700 9229 [,48] [,49] [,50] [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [1,] -22934 -14587 -17224 4412 2664 -9361 -14939 -2379 -20886 8223 50799 [2,] -22934 -14587 -17224 4412 2664 -9361 -14939 -2379 -20886 8223 50799 [3,] -22934 -14587 -17224 4412 2664 -9361 -14939 -2379 -20886 8223 50799 [4,] -22934 -14587 -17224 4412 2664 -9361 -14939 -2379 -20886 8223 50799 [5,] -22934 -14587 -17224 4412 2664 -9361 -14939 -2379 -20886 8223 50799 [,59] [,60] [1,] 5211 -15645 [2,] 5211 -15645 [3,] 5211 -15645 [4,] 5211 -15645 [5,] 5211 -15645 $n [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [39] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -12528 -18120 7444 7537 -1471 -5522 -11733 -6937 6060 50808 17233 1850 [2,] -12528 -18120 7444 7537 -1471 -5522 -11733 -6937 6060 50808 17233 1850 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] -1289 -17157 1287 -4589 -1486 -4951 -11328 -5644 1572 51707 8149 -652 [2,] -1289 -17157 1287 -4589 -1486 -4951 -11328 -5644 1572 51707 8149 -652 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] -16115 -16713 1737 -3733 -3336 -10273 -5594 -1430 167 46625 6242 -5893 [2,] -16115 -16713 1737 -3733 -3336 -10273 -5594 -1430 167 46625 6242 -5893 [,37] [,38] [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [,47] [1,] -32291 -21883 -8468 3302 -11722 -17181 -5754 -14881 -12376 56700 9229 [2,] -32291 -21883 -8468 3302 -11722 -17181 -5754 -14881 -12376 56700 9229 [,48] [,49] [,50] [,51] [,52] [,53] [,54] [,55] [,56] [,57] [,58] [1,] -22934 -14587 -17224 4412 2664 -9361 -14939 -2379 -20886 8223 50799 [2,] -22934 -14587 -17224 4412 2664 -9361 -14939 -2379 -20886 8223 50799 [,59] [,60] [1,] 5211 -15645 [2,] 5211 -15645 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" [46] "46" "47" "48" "49" "50" "51" "52" "53" "54" "55" "56" "57" "58" "59" "60" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6eqm41225298462.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] [1,] 469357 517945 [2,] 535126 517945 [3,] 565603 517945 [4,] 593469 517945 [5,] 628884 517945 $n [1] 60 1 $conf [,1] [,2] [1,] 553702.4 517945 [2,] 577503.6 517945 $out numeric(0) $group numeric(0) $names [1] "1" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/75xeg1225298462.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,] 469357.0 469357.0 469357.0 [2,] 535126.0 535126.0 535126.0 [3,] 565027.5 565027.5 565027.5 [4,] 593469.0 593469.0 593469.0 [5,] 628884.0 628884.0 628884.0 $n [1] 60 60 60 $conf [,1] [,2] [,3] [1,] 553126.9 553126.9 553126.9 [2,] 576928.1 576928.1 576928.1 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1kqnl1225298462.ps tmp/1kqnl1225298462.png") > system("convert tmp/2y9n81225298462.ps tmp/2y9n81225298462.png") > system("convert tmp/3lkre1225298462.ps tmp/3lkre1225298462.png") > system("convert tmp/4dq2o1225298462.ps tmp/4dq2o1225298462.png") > system("convert tmp/5brsn1225298462.ps tmp/5brsn1225298462.png") > system("convert tmp/6eqm41225298462.ps tmp/6eqm41225298462.png") > system("convert tmp/75xeg1225298462.ps tmp/75xeg1225298462.png") > > > proc.time() user system elapsed 1.679 1.024 2.090