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(562674,599000,668516,597798,579889,668233,499232,215187,555813,586935,546136,571111,634712,639283,712182,621557,621000,675989,501322,220286,560727,602530,626379,605508,646783,658442,712906,687714,723916,707183,629000,237530,613296,730444,734925,651812,676155,748183,810681,729363,701108,790079,594621,230716,617189,691389,701067,705777,747636,773392,813788,766713,728875,749197,680954,241424,680234,708326,694238,772071,795337,788421,889968,797393,751000,821255,691605,290655,727147,868355,812390,799556,843038,847000,941952,804309,840307,871528,656330,370508,742000,847152,731675,898527,778139,856075,938833,813023,783417,828110,657311,310032,780000,860000,780000,807993,895217,856075,893268,875000,835088,934595,832500,300000,791443,900000,781729,880000,875024,992968,976804,968697,871675,1006852,832037,345587,849528,913871,868746,993733) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 562674 634712 646783 676155 747636 795337 843038 778139 895217 875024 [2,] 599000 639283 658442 748183 773392 788421 847000 856075 856075 992968 [3,] 668516 712182 712906 810681 813788 889968 941952 938833 893268 976804 [4,] 597798 621557 687714 729363 766713 797393 804309 813023 875000 968697 [5,] 579889 621000 723916 701108 728875 751000 840307 783417 835088 871675 [6,] 668233 675989 707183 790079 749197 821255 871528 828110 934595 1006852 [7,] 499232 501322 629000 594621 680954 691605 656330 657311 832500 832037 [8,] 215187 220286 237530 230716 241424 290655 370508 310032 300000 345587 [9,] 555813 560727 613296 617189 680234 727147 742000 780000 791443 849528 [10,] 586935 602530 730444 691389 708326 868355 847152 860000 900000 913871 [11,] 546136 626379 734925 701067 694238 812390 731675 780000 781729 868746 [12,] 571111 605508 651812 705777 772071 799556 898527 807993 880000 993733 [,11] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 36326 4571 11659 72028 25756 -6916 3962 77936 -39142 [2,] 69516 72899 54464 62498 40396 101547 94952 82758 37193 [3,] -70718 -90625 -25192 -81318 -47075 -92575 -137643 -125810 -18268 [4,] -17909 -557 36202 -28255 -37838 -46393 35998 -29606 -39912 [5,] 88344 54989 -16733 88971 20322 70255 31221 44693 99507 [6,] -169001 -174667 -78183 -195458 -68243 -129650 -215198 -170799 -102095 [7,] -284045 -281036 -391470 -363905 -439530 -400950 -285822 -347279 -532500 [8,] 340626 340441 375766 386473 438810 436492 371492 469968 491443 [9,] 31122 41803 117148 74200 28092 141208 105152 80000 108557 [10,] -40799 23849 4481 9678 -14088 -55965 -115477 -80000 -118271 [11,] 24975 -20871 -83113 4710 77833 -12834 166852 27993 98271 [12,] 63601 41275 24343 41859 23266 43482 -120388 87224 -4976 [,10] [,11] [1,] 117944 NA [2,] -16164 NA [3,] -8107 NA [4,] -97022 NA [5,] 135177 NA [6,] -174815 NA [7,] -486450 NA [8,] 503941 NA [9,] 64343 NA [10,] -45125 NA [11,] 124987 NA [12,] 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/1fa1w1272028531.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/2fa1w1272028531.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/3qjig1272028531.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/4qjig1272028531.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,] 562674.0 599000.0 668516 597798 579889.0 668233 499232.0 215187.0 [2,] 646783.0 658442.0 712906 687714 701108.0 707183 594621.0 230716.0 [3,] 762887.5 780906.5 851878 782053 739937.5 805667 656820.5 266039.5 [4,] 843038.0 856075.0 938833 813023 835088.0 871528 691605.0 310032.0 [5,] 895217.0 992968.0 976804 968697 871675.0 1006852 832500.0 370508.0 [,9] [,10] [,11] [,12] [1,] 555813.0 586935 626379 571111.0 [2,] 613296.0 691389 694238 651812.0 [3,] 703690.5 788798 733300 785813.5 [4,] 780000.0 868355 781729 880000.0 [5,] 849528.0 913871 868746 993733.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 664830.7 682161.2 738995.9 719443.6 672995.8 723553.7 608363.4 226410.1 [2,] 860944.3 879651.8 964760.1 844662.4 806879.2 887780.3 705277.6 305668.9 [,9] [,10] [,11] [,12] [1,] 620398.5 700378.7 689586 671801.7 [2,] 786982.5 877217.3 777014 899825.3 $out [1] 546136 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(562674, 646783, 762887.5, 843038, 895217, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51thj1272028531.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,] -39142.0 -16164 -137643 -97022.0 -16733 -215198 -532500.0 340441.0 28092 [2,] 3962.0 40396 -92575 -39912.0 31221 -174815 -439530.0 371492.0 41803 [3,] 18707.5 66007 -76018 -28930.5 62622 -169900 -377687.5 411482.5 77100 [4,] 72028.0 82758 -25192 -557.0 88971 -102095 -285822.0 469968.0 108557 [5,] 117944.0 101547 -8107 36202.0 135177 -68243 -281036.0 503941.0 141208 [,10] [,11] [,12] [1,] -118271 -83113 -4976 [2,] -80000 -12834 23266 [3,] -42962 26484 41275 [4,] 4481 98271 43482 [5,] 23849 166852 63601 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -15300.99 44841.26 -109685.23 -48593.827 33767.8 -206233.8 -454486.1 [2,] 52715.99 87172.74 -42350.77 -9267.173 91476.2 -133566.2 -300888.9 [,8] [,9] [,10] [,11] [,12] [1,] 362280 43747.04 -85172.0759 -29028.49 30627.91 [2,] 460685 110452.96 -751.9241 81996.49 51922.09 $out [1] -120388 87224 $group [1] 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-39142, 3962, 18707.5, 72028, 117944, -16164, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61thj1272028531.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,] 499232.0 501322.0 613296.0 594621.0 680234.0 691605.0 656330.0 778139.0 [2,] 550974.5 581628.5 637891.5 646672.0 687596.0 739073.5 736837.5 779069.5 [3,] 575500.0 621278.5 673078.0 701087.5 738255.5 796365.0 841672.5 795705.0 [4,] 598399.0 636997.5 718411.0 738773.0 769392.0 816822.5 859340.0 842092.5 [5,] 668516.0 712182.0 734925.0 810681.0 813788.0 889968.0 941952.0 860000.0 [,9] [,10] [,11] [1,] 781729.0 832037.0 NA [2,] 811971.5 859137.0 NA [3,] 865537.5 894447.5 NA [4,] 894242.5 984886.0 NA [5,] 934595.0 1006852.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 553869.4 596024.3 636352.5 659079.6 700947.8 760903.2 785798.3 766959.8 [2,] 597130.6 646532.7 709803.5 743095.4 775563.2 831826.8 897546.7 824450.2 [,9] [,10] [,11] [1,] 828013.1 837092.5 NA [2,] 903061.9 951802.5 NA $out [1] 215187 220286 237530 230716 241424 290655 370508 938833 657311 310032 [11] 300000 345587 $group [1] 1 2 3 4 5 6 7 8 8 8 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(499232, 550974.5, 575500, 598399, 668516, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/71thj1272028531.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,] 657491.2 656820.5 646079.0 [2,] 709733.1 718495.2 715502.8 [3,] 755814.1 771897.0 759068.1 [4,] 773392.1 787305.8 774143.2 [5,] 835889.8 851878.0 832395.8 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 726778.8 740512 732321.8 [2,] 784849.4 803282 785814.4 $out [1] 276192.5 266039.5 269971.8 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(657491.2, 709733.1, 755814.1, 773392.05, 835889.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fa1w1272028531.ps tmp/1fa1w1272028531.png",intern=TRUE)) character(0) > try(system("convert tmp/2fa1w1272028531.ps tmp/2fa1w1272028531.png",intern=TRUE)) character(0) > try(system("convert tmp/3qjig1272028531.ps tmp/3qjig1272028531.png",intern=TRUE)) character(0) > try(system("convert tmp/4qjig1272028531.ps tmp/4qjig1272028531.png",intern=TRUE)) character(0) > try(system("convert tmp/51thj1272028531.ps tmp/51thj1272028531.png",intern=TRUE)) character(0) > try(system("convert tmp/61thj1272028531.ps tmp/61thj1272028531.png",intern=TRUE)) character(0) > try(system("convert tmp/71thj1272028531.ps tmp/71thj1272028531.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.190 0.932 1.629