R version 2.8.0 (2008-10-20) 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(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) > 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] 69 > (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 6 6 6 6 6 6 6 6 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 562325 590865 593408 560576 516922 528222 [2,] 560854 589379 590072 548854 507561 532638 [3,] 555332 584428 579799 531673 492622 536322 [4,] 543599 573100 574205 525919 490243 536535 [5,] 536662 567456 572775 511038 469357 523597 [6,] 542722 569028 572942 498662 477580 536214 [7,] 593530 620735 619567 555362 528379 586570 [8,] 610763 628884 625809 564591 533590 596594 [9,] 612613 628232 619916 541657 517945 580523 [10,] 611324 612117 587625 527070 506174 NA [11,] 594167 595404 565742 509846 501866 NA [12,] 595454 597141 557274 514258 516141 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1471 -1486 -3336 -11722 -9361 4416 [2,] -5522 -4951 -10273 -17181 -14939 3684 [3,] -11733 -11328 -5594 -5754 -2379 213 [4,] -6937 -5644 -1430 -14881 -20886 -12938 [5,] 6060 1572 167 -12376 8223 12617 [6,] 50808 51707 46625 56700 50799 50356 [7,] 17233 8149 6242 9229 5211 10024 [8,] 1850 -652 -5893 -22934 -15645 -16071 [9,] -1289 -16115 -32291 -14587 -11771 NA [10,] -17157 -16713 -21883 -17224 -4308 NA [11,] 1287 1737 -8468 4412 14275 NA [12,] -4589 -3733 3302 2664 12081 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/freestat/rcomp/tmp/1f1nn1257417753.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/freestat/rcomp/tmp/2opsv1257417753.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/freestat/rcomp/tmp/31lim1257417753.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/freestat/rcomp/tmp/48ugy1257417753.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] [1,] 516922.0 507561 492622 490243 469357.0 477580 528379 533590.0 517945 [2,] 528222.0 532638 531673 525919 511038.0 498662 555362 564591.0 541657 [3,] 561450.5 554854 545827 540067 530129.5 539468 590050 603678.5 596568 [4,] 590865.0 589379 579799 573100 567456.0 569028 619567 625809.0 619916 [5,] 593408.0 590072 584428 574205 572775.0 572942 620735 628884.0 628232 [,10] [,11] [,12] [1,] 506174 501866 514258 [2,] 527070 509846 516141 [3,] 587625 565742 557274 [4,] 611324 594167 595454 [5,] 612117 595404 597141 $n [1] 6 6 6 6 6 6 6 6 6 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 521043.7 518254.2 514784.2 509633.7 493738.1 494079.7 548635.7 564190.9 [2,] 601857.3 591453.8 576869.8 570500.3 566520.9 584856.3 631464.3 643166.1 [,9] [,10] [,11] [,12] [1,] 546088.4 528091.3 506161 501231.6 [2,] 647047.6 647158.7 625323 613316.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(516922, 528222, 561450.5, 590865, 593408, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5dqzt1257417753.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] [1,] -11722 -17181.0 -11733 -20886.0 167 50356.0 5211 -22934 -16115 -17224 [2,] -9361 -14939.0 -11328 -14881.0 167 50356.0 6242 -16071 -16115 -17224 [3,] -2411 -7897.5 -5674 -9937.5 3816 50803.5 8689 -10769 -14587 -17157 [4,] -1471 -4951.0 -2379 -5644.0 8223 51707.0 10024 -652 -11771 -16713 [5,] 4416 3684.0 213 -1430.0 12617 51707.0 10024 1850 -11771 -16713 [,11] [,12] [1,] 1287 -4589 [2,] 1287 -3733 [3,] 1737 2664 [4,] 4412 3302 [5,] 4412 12081 $n [1] 6 6 6 6 6 6 6 6 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7500.305 -14340.083 -11446.39404 -15895.663 -1380.380 49932.06 6249.488 [2,] 2678.305 -1454.917 98.39404 -3979.337 9012.380 51674.94 11128.512 [,8] [,9] [,10] [,11] [,12] [1,] -20714.753 -17656.46 -17518.07 -471.1171 -2306.913 [2,] -823.247 -11517.54 -16795.93 3945.1171 7634.913 $out [1] -12376 46625 56700 17233 -1289 -32291 -21883 -4308 -8468 14275 $group [1] 5 6 6 7 9 9 10 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11722, -9361, -2411, -1471, 4416, -17181, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6lklw1257417753.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,] 536662.0 567456.0 557274.0 498662.0 469357.0 523597 [2,] 549465.5 578764.0 572858.5 512648.0 491432.5 532638 [3,] 577927.5 593134.5 583712.0 529371.5 506867.5 536322 [4,] 603108.5 616426.0 606487.5 552108.0 517433.5 580523 [5,] 612613.0 628884.0 625809.0 564591.0 533590.0 596594 $n [1] 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 553460.6 575956.6 568373.6 511373.5 495008.3 511102.6 [2,] 602394.4 610312.4 599050.4 547369.5 518726.7 561541.4 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" 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/html/freestat/rcomp/tmp/7euu81257417753.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,] 530147.5 530129.5 535250.8 [2,] 543648.1 542947.0 549577.7 [3,] 555473.3 559362.2 557633.7 [4,] 576171.5 588837.5 576964.4 [5,] 593371.8 603678.5 597319.6 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 540639.2 538431.3 545142.4 [2,] 570307.4 580293.2 570125.0 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(530147.5, 543648.083333333, 555473.3, 576171.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1f1nn1257417753.ps tmp/1f1nn1257417753.png") > system("convert tmp/2opsv1257417753.ps tmp/2opsv1257417753.png") > system("convert tmp/31lim1257417753.ps tmp/31lim1257417753.png") > system("convert tmp/48ugy1257417753.ps tmp/48ugy1257417753.png") > system("convert tmp/5dqzt1257417753.ps tmp/5dqzt1257417753.png") > system("convert tmp/6lklw1257417753.ps tmp/6lklw1257417753.png") > system("convert tmp/7euu81257417753.ps tmp/7euu81257417753.png") > > > proc.time() user system elapsed 1.919 1.506 2.271