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(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) > 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,] 593530 620735 619567 555362 528379 586570 [2,] 610763 628884 625809 564591 533590 NA [3,] 612613 628232 619916 541657 517945 NA [4,] 611324 612117 587625 527070 506174 NA [5,] 594167 595404 565742 509846 501866 NA [6,] 595454 597141 557274 514258 516141 NA [7,] 590865 593408 560576 516922 528222 NA [8,] 589379 590072 548854 507561 532638 NA [9,] 584428 579799 531673 492622 536322 NA [10,] 573100 574205 525919 490243 536535 NA [11,] 567456 572775 511038 469357 523597 NA [12,] 569028 572942 498662 477580 536214 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 17233 8149 6242 9229 5211 NA [2,] 1850 -652 -5893 -22934 -15645 NA [3,] -1289 -16115 -32291 -14587 -11771 NA [4,] -17157 -16713 -21883 -17224 -4308 NA [5,] 1287 1737 -8468 4412 14275 NA [6,] -4589 -3733 3302 2664 12081 NA [7,] -1486 -3336 -11722 -9361 4416 NA [8,] -4951 -10273 -17181 -14939 3684 NA [9,] -11328 -5594 -5754 -2379 213 NA [10,] -5644 -1430 -14881 -20886 -12938 NA [11,] 1572 167 -12376 8223 12617 NA [12,] 51707 46625 56700 50799 50356 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/1gleu1261153237.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/28rmc1261153237.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/30cl81261153237.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/4k7cp1261153237.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,] 528379 533590 517945 506174 501866 514258 516922 507561 492622 490243 [2,] 555362 564591 541657 527070 509846 516141 528222 532638 531673 525919 [3,] 590050 610763 612613 587625 565742 557274 560576 548854 536322 536535 [4,] 619567 625809 619916 611324 594167 595454 590865 589379 579799 573100 [5,] 620735 628884 628232 612117 595404 597141 593408 590072 584428 574205 [,11] [,12] [1,] 469357 477580 [2,] 511038 498662 [3,] 523597 536214 [4,] 567456 569028 [5,] 572775 572942 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 548635.7 567506.5 557315.4 528091.3 506161 501231.6 516312.6 508761 [2,] 631464.3 654019.5 667910.6 647158.7 625323 613316.4 604839.4 588947 [,9] [,10] [,11] [,12] [1,] 502316.3 503197 483732.2 486493.6 [2,] 570327.7 569873 563461.8 585934.4 $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(528379, 555362, 590050, 619567, 620735, 533590, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5swg01261153237.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] [1,] 5211 -22934 -16115 -17224 1287 -4589 -11722 -17181 -5754 -20886 167 [2,] 6242 -15645 -16115 -17224 1287 -3733 -9361 -14939 -5754 -14881 167 [3,] 8149 -5893 -14587 -17157 1737 2664 -3336 -10273 -5594 -12938 1572 [4,] 9229 -652 -11771 -16713 4412 3302 -1486 -4951 -2379 -5644 8223 [5,] 9229 1850 -11771 -16713 4412 12081 4416 3684 213 -1430 12617 [,12] [1,] 50356 [2,] 50356 [3,] 50799 [4,] 51707 [5,] 51707 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 6038.393 -16487.016 -17656.46 -17518.07 -471.1171 -2306.913 -8900.455 [2,] 10259.607 4701.016 -11517.54 -16795.93 3945.1171 7634.913 2228.455 [,8] [,9] [,10] [,11] [,12] [1,] -17330.496 -7978.766 -19464.841 -4120.349 49844.39 [2,] -3215.504 -3209.234 -6411.159 7264.349 51753.61 $out [1] 17233 -1289 -32291 -21883 -4308 -8468 14275 -11328 -12376 46625 [11] 56700 $group [1] 1 3 3 4 4 5 5 9 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(5211, 6242, 8149, 9229, 9229, -22934, -15645, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/671xo1261153237.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,] 567456.0 572775 498662 469357.0 501866.0 586570 [2,] 578764.0 577002 528796 491432.5 517043.0 586570 [3,] 592197.5 594406 558925 512052.0 528300.5 586570 [4,] 603108.5 616426 603596 534363.5 534902.0 586570 [5,] 612613.0 628884 625809 564591.0 536535.0 586570 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 581093.8 576424.4 524808.2 492470.9 520154.9 586570 [2,] 603301.2 612387.6 593041.8 531633.1 536446.1 586570 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(567456, 578764, 592197.5, 603108.5, 612613, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7krdm1261153237.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,] 528844.6 523597.0 533845.0 [2,] 542484.6 536428.5 550758.0 [3,] 554877.2 558925.0 557670.5 [4,] 576442.9 588837.5 574991.8 [5,] 592727.4 612613.0 595200.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 539388.6 535020.9 546617.3 [2,] 570365.8 582829.1 568723.7 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(528844.6, 542484.6, 554877.2, 576442.916666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1gleu1261153237.ps tmp/1gleu1261153237.png",intern=TRUE)) character(0) > try(system("convert tmp/28rmc1261153237.ps tmp/28rmc1261153237.png",intern=TRUE)) character(0) > try(system("convert tmp/30cl81261153237.ps tmp/30cl81261153237.png",intern=TRUE)) character(0) > try(system("convert tmp/4k7cp1261153237.ps tmp/4k7cp1261153237.png",intern=TRUE)) character(0) > try(system("convert tmp/5swg01261153237.ps tmp/5swg01261153237.png",intern=TRUE)) character(0) > try(system("convert tmp/671xo1261153237.ps tmp/671xo1261153237.png",intern=TRUE)) character(0) > try(system("convert tmp/7krdm1261153237.ps tmp/7krdm1261153237.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.230 0.958 3.201