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(707169,703434,701017,696968,688558,679237,677362,676693,670009,667209,662976,660194,652270,648024,629295,624961,617306,607691,596219,591130,584528,576798,575683,574369,566815,573074,567739,571942,570274,568800,558115,550591,548872,547009,545946,539702,542427,542968,536640,533653,540996,538316,532646,533390,528715,530664,528564,519107,518703,519059,518498,524575,536046,552006,560687,578884,591491,599228,633019,649918,655509) > 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] 61 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 707169 652270 566815 542427 518703 655509 [2,] 703434 648024 573074 542968 519059 NA [3,] 701017 629295 567739 536640 518498 NA [4,] 696968 624961 571942 533653 524575 NA [5,] 688558 617306 570274 540996 536046 NA [6,] 679237 607691 568800 538316 552006 NA [7,] 677362 596219 558115 532646 560687 NA [8,] 676693 591130 550591 533390 578884 NA [9,] 670009 584528 548872 528715 591491 NA [10,] 667209 576798 547009 530664 599228 NA [11,] 662976 575683 545946 528564 633019 NA [12,] 660194 574369 539702 519107 649918 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -3735 -4246 6259 541 356 NA [2,] -2417 -18729 -5335 -6328 -561 NA [3,] -4049 -4334 4203 -2987 6077 NA [4,] -8410 -7655 -1668 7343 11471 NA [5,] -9321 -9615 -1474 -2680 15960 NA [6,] -1875 -11472 -10685 -5670 8681 NA [7,] -669 -5089 -7524 744 18197 NA [8,] -6684 -6602 -1719 -4675 12607 NA [9,] -2800 -7730 -1863 1949 7737 NA [10,] -4233 -1115 -1063 -2100 33791 NA [11,] -2782 -1314 -6244 -9457 16899 NA [12,] -7924 -7554 2725 -404 5591 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/1w0081260634836.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/2joi31260634836.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/33qyr1260634836.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/4xjrb1260634836.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,] 518703.0 519059 518498 524575 536046 538316 532646 533390 528715 530664 [2,] 542427.0 542968 536640 533653 540996 552006 558115 550591 548872 547009 [3,] 609542.5 573074 567739 571942 570274 568800 560687 578884 584528 576798 [4,] 655509.0 648024 629295 624961 617306 607691 596219 591130 591491 599228 [5,] 707169.0 703434 701017 696968 688558 679237 596219 591130 591491 667209 [,11] [,12] [1,] 528564 519107 [2,] 545946 539702 [3,] 575683 574369 [4,] 633019 649918 [5,] 662976 660194 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 536601 498841.7 502269.2 507424 516353.5 529453.1 533762.8 550239.2 [2,] 682484 647306.3 633208.8 636460 624194.5 608146.9 587611.2 607528.8 [,9] [,10] [,11] [,12] [1,] 554413.5 539900.2 514157.4 496490.7 [2,] 614642.5 613695.8 637208.6 652247.3 $out [1] 677362 676693 670009 $group [1] 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(518703, 542427, 609542.5, 655509, 707169, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59rpl1260634836.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,] -4246 -6328 -4334 -8410 -9615 -11472 -7524 -6684 -7730 -2100 -9457 -7924 [2,] -3735 -6328 -4049 -7655 -9321 -10685 -5089 -6602 -2800 -2100 -6244 -7554 [3,] 356 -5335 -2987 -1668 -2680 -5670 -669 -4675 -1863 -1115 -2782 -404 [4,] 541 -2417 4203 7343 -1474 -1875 744 -1719 1949 -1063 -1314 2725 [5,] 6259 -561 6077 11471 -1474 8681 744 -1719 7737 -1063 -1314 5591 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2665.411 -8098.503 -8817.842 -12265.549 -8224.670 -11895.1238 -4790.583 [2,] 3377.411 -2571.497 2843.842 8929.549 2864.670 555.1238 3452.583 [,8] [,9] [,10] [,11] [,12] [1,] -8125.315 -5218.631 -1847.7416 -6265.5256 -7667.116 [2,] -1224.685 1492.631 -382.2584 701.5256 6859.116 $out [1] -18729 15960 18197 12607 -4233 33791 16899 $group [1] 2 5 7 8 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4246, -3735, 356, 541, 6259, -6328, -6328, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6u3d81260634836.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] [1,] 660194.0 574369 539702.0 519107.0 518498.0 655509 [2,] 668609.0 580663 547940.5 529689.5 521817.0 655509 [3,] 678299.5 601955 562465.0 533521.5 556346.5 655509 [4,] 698992.5 627128 569537.0 539656.0 595359.5 655509 [5,] 707169.0 652270 573074.0 542968.0 649918.0 655509 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 664441.4 580762 552614.7 528975.7 522803.3 655509 [2,] 692157.6 623148 572315.3 538067.3 589889.7 655509 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(660194, 668609, 678299.5, 698992.5, 707169, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/74zgj1260634836.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,] 584181.6 560687.0 570181.5 [2,] 585571.7 569537.0 575142.8 [3,] 589223.8 573721.5 579577.8 [4,] 590636.9 577841.0 592146.2 [5,] 597311.8 584528.0 601611.6 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 586913.5 569934 571822.3 [2,] 591534.1 577509 587333.2 $out [1] 607148.8 609542.5 $group [1] 1 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(584181.6, 585571.7, 589223.8, 590636.9, 597311.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1w0081260634836.ps tmp/1w0081260634836.png",intern=TRUE)) character(0) > try(system("convert tmp/2joi31260634836.ps tmp/2joi31260634836.png",intern=TRUE)) character(0) > try(system("convert tmp/33qyr1260634836.ps tmp/33qyr1260634836.png",intern=TRUE)) character(0) > try(system("convert tmp/4xjrb1260634836.ps tmp/4xjrb1260634836.png",intern=TRUE)) character(0) > try(system("convert tmp/59rpl1260634836.ps tmp/59rpl1260634836.png",intern=TRUE)) character(0) > try(system("convert tmp/6u3d81260634836.ps tmp/6u3d81260634836.png",intern=TRUE)) character(0) > try(system("convert tmp/74zgj1260634836.ps tmp/74zgj1260634836.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.195 0.942 1.474