R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(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,564478,557560,575093,580112,574761,563250,551531,537034,544686,600991,604378,586111,563668,548604,551174) > 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,] 562325 590865 593408 560576 516922 528222 580112 NA [2,] 560854 589379 590072 548854 507561 532638 574761 NA [3,] 555332 584428 579799 531673 492622 536322 563250 NA [4,] 543599 573100 574205 525919 490243 536535 551531 NA [5,] 536662 567456 572775 511038 469357 523597 537034 NA [6,] 542722 569028 572942 498662 477580 536214 544686 NA [7,] 593530 620735 619567 555362 528379 586570 600991 NA [8,] 610763 628884 625809 564591 533590 596594 604378 NA [9,] 612613 628232 619916 541657 517945 580523 586111 NA [10,] 611324 612117 587625 527070 506174 564478 563668 NA [11,] 594167 595404 565742 509846 501866 557560 548604 NA [12,] 595454 597141 557274 514258 516141 575093 551174 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1471 -1486 -3336 -11722 -9361 4416 -5351 NA [2,] -5522 -4951 -10273 -17181 -14939 3684 -11511 NA [3,] -11733 -11328 -5594 -5754 -2379 213 -11719 NA [4,] -6937 -5644 -1430 -14881 -20886 -12938 -14497 NA [5,] 6060 1572 167 -12376 8223 12617 7652 NA [6,] 50808 51707 46625 56700 50799 50356 56305 NA [7,] 17233 8149 6242 9229 5211 10024 3387 NA [8,] 1850 -652 -5893 -22934 -15645 -16071 -18267 NA [9,] -1289 -16115 -32291 -14587 -11771 -16045 -22443 NA [10,] -17157 -16713 -21883 -17224 -4308 -6918 -15064 NA [11,] 1287 1737 -8468 4412 14275 17533 2570 NA [12,] -4589 -3733 3302 2664 12081 5019 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/rcomp/tmp/145w61319650605.ps",horizontal=F,onefile=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/rcomp/tmp/2ylzk1319650605.ps",horizontal=F,onefile=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/rcomp/tmp/3j6g21319650605.ps",horizontal=F,onefile=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/rcomp/tmp/4y04g1319650605.ps",horizontal=F,onefile=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,] 516922.0 507561 492622.0 490243.0 469357.0 477580 528379 533590.0 517945.0 [2,] 544399.0 540746 533997.5 531227.0 517317.5 517438 570966 580592.5 561090.0 [3,] 562325.0 560854 555332.0 543599.0 536662.0 542722 593530 604378.0 586111.0 [4,] 585488.5 582070 571524.5 562315.5 552245.0 556857 610279 618286.0 616264.5 [5,] 593408.0 590072 584428.0 574205.0 572775.0 572942 620735 628884.0 628232.0 [,10] [,11] [,12] [1,] 506174.0 501866.0 514258.0 [2,] 545369.0 529225.0 533657.5 [3,] 564478.0 557560.0 557274.0 [4,] 599474.5 579954.5 585273.5 [5,] 612117.0 595404.0 597141.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 537787 536176 532921.5 525033.4 515803.9 519181.6 570052.9 581868 553161.7 [2,] 586863 585532 577742.5 562164.6 557520.1 566262.4 617007.1 626888 619060.3 [,10] [,11] [,12] [1,] 532167.1 527265.2 526449.8 [2,] 596788.9 587854.8 588098.2 $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(516922, 544399, 562325, 585488.5, 593408, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5hqb01319650605.ps",horizontal=F,onefile=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] [1,] -11722.0 -17181.0 -11733.0 -20886.0 167.0 46625.0 3387.0 -22934.0 [2,] -7356.0 -13225.0 -11523.5 -14689.0 869.5 50577.5 5726.5 -17169.0 [3,] -3336.0 -10273.0 -5754.0 -12938.0 6060.0 50808.0 8149.0 -15645.0 [4,] -1478.5 -5236.5 -3986.5 -6290.5 7937.5 54006.0 9626.5 -3272.5 [5,] 4416.0 3684.0 213.0 -1430.0 12617.0 56700.0 10024.0 1850.0 [,9] [,10] [,11] [,12] [1,] -22443 -21883.0 -8468.0 -4589 [2,] -19279 -17190.5 1512.0 -3733 [3,] -16045 -16713.0 2570.0 2983 [4,] -13179 -10991.0 9343.5 5019 [5,] -11771 -4308.0 17533.0 12081 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -6845.9482 -15043.603 -10254.975 -17953.449 1839.104 48760.56 5819.983 [2,] 173.9482 -5502.397 -1253.025 -7922.551 10280.896 52855.44 10478.017 [,8] [,9] [,10] [,11] [,12] [1,] -23943.766 -19687.82 -20415.24 -2106.845 -2662.323 [2,] -7346.234 -12402.18 -13010.76 7246.845 8628.323 $out [1] -12376 17233 -1289 -32291 $group [1] 5 7 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11722, -7356, -3336, -1478.5, 4416, -17181, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6itw31319650605.ps",horizontal=F,onefile=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,] 536662.0 567456.0 557274.0 498662.0 469357.0 523597.0 537034.0 NA [2,] 549465.5 578764.0 572858.5 512648.0 491432.5 534426.0 549889.0 NA [3,] 577927.5 593134.5 583712.0 529371.5 506867.5 547047.5 563459.0 NA [4,] 603108.5 616426.0 606487.5 552108.0 517433.5 577808.0 583111.5 NA [5,] 612613.0 628884.0 625809.0 564591.0 533590.0 596594.0 604378.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 553460.6 575956.6 568373.6 511373.5 495008.3 527260.7 548306 NA [2,] 602394.4 610312.4 599050.4 547369.5 518726.7 566834.3 578612 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(536662, 549465.5, 577927.5, 603108.5, 612613, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7j0ld1319650605.ps",horizontal=F,onefile=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,] 531131.3 536662.0 534781.2 [2,] 545611.3 549465.5 549766.1 [3,] 557903.9 559207.0 560436.8 [4,] 575675.2 575294.5 580549.5 [5,] 594944.1 604378.0 599439.2 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 544191.5 547426.2 546396.2 [2,] 571616.2 570987.8 574477.3 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(531131.285714286, 545611.285714286, 557903.857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/145w61319650605.ps tmp/145w61319650605.png",intern=TRUE)) character(0) > try(system("convert tmp/2ylzk1319650605.ps tmp/2ylzk1319650605.png",intern=TRUE)) character(0) > try(system("convert tmp/3j6g21319650605.ps tmp/3j6g21319650605.png",intern=TRUE)) character(0) > try(system("convert tmp/4y04g1319650605.ps tmp/4y04g1319650605.png",intern=TRUE)) character(0) > try(system("convert tmp/5hqb01319650605.ps tmp/5hqb01319650605.png",intern=TRUE)) character(0) > try(system("convert tmp/6itw31319650605.ps tmp/6itw31319650605.png",intern=TRUE)) character(0) > try(system("convert tmp/7j0ld1319650605.ps tmp/7j0ld1319650605.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.160 0.512 2.657