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(334053,326018,326894,330958,333913,337042,342103,344795,342060,342535,343083,354261,363049,347562,347577,349715,353818,354073,357040,359177,354845,354481,352747,360446,368285,354819,353017,354551,352682,351146,350760,347555,335363,325165,311274,297987,344276,306152,283323,285869,293660,300831,313351,322765,323613,329199,334038,350683,353929,340715,347752,358474,366179,373163,382739,391636,391693,395453,399368,416075,427623,418000,425316,436397,442533,449148,460852,462789,465097,469728,475434,495992,487101,489496,498649,505533,512839,522584,532603,531520,531623,535608,539804,559182,548414,550774,556397,569125,571988,578807,588234,588724,588550,592764,598593,619494,604560,606210,614823,620033,625236,631307,639704,639223,637312,640124,644649,668209,651667,653170,662102,667617,671420,677156,686086,684954,684331,722145,731098,753123,740228,741472,747315,757533) > 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] 124 > (np <- floor(n / par1)) [1] 10 > arr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + if (j == par1) j = 0 + } > ari [1] 11 11 11 11 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 334053 363049 368285 344276 353929 427623 487101 548414 604560 651667 [2,] 326018 347562 354819 306152 340715 418000 489496 550774 606210 653170 [3,] 326894 347577 353017 283323 347752 425316 498649 556397 614823 662102 [4,] 330958 349715 354551 285869 358474 436397 505533 569125 620033 667617 [5,] 333913 353818 352682 293660 366179 442533 512839 571988 625236 671420 [6,] 337042 354073 351146 300831 373163 449148 522584 578807 631307 677156 [7,] 342103 357040 350760 313351 382739 460852 532603 588234 639704 686086 [8,] 344795 359177 347555 322765 391636 462789 531520 588724 639223 684954 [9,] 342060 354845 335363 323613 391693 465097 531623 588550 637312 684331 [10,] 342535 354481 325165 329199 395453 469728 535608 592764 640124 722145 [11,] 343083 352747 311274 334038 399368 475434 539804 598593 644649 731098 [12,] 354261 360446 297987 350683 416075 495992 559182 619494 668209 753123 [,11] [1,] 740228 [2,] 741472 [3,] 747315 [4,] 757533 [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > arr.sd <- array(NA,dim=par1) > arr.range <- array(NA,dim=par1) > arr.iqr <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.sd[j] <- sqrt(var(arr[j,],na.rm=TRUE)) + arr.range[j] <- max(arr[j,],na.rm=TRUE) - min(arr[j,],na.rm=TRUE) + arr.iqr[j] <- quantile(arr[j,],0.75,na.rm=TRUE) - quantile(arr[j,],0.25,na.rm=TRUE) + } > overall.sd <- sqrt(var(x)) > overall.range <- max(x) - min(x) > overall.iqr <- quantile(x,0.75) - quantile(x,0.25) > postscript(file="/var/www/html/rcomp/tmp/1wobn1244406302.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.sd,type='b',ylab='S.D.',main='Standard Deviation Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.sd,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/23mfd1244406302.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.range,type='b',ylab='range',main='Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.range,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/3jk7d1244406302.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.iqr,type='b',ylab='IQR',main='Interquartile Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.iqr,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4j3rd1244406302.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,] 334053 306152.0 283323.0 285869 293660 300831.0 313351.0 322765.0 323613 [2,] 358489 344138.5 347664.5 352133 352682 351146.0 350760.0 347555.0 342060 [3,] 427623 418000.0 425316.0 436397 404356 411155.5 421795.5 427212.5 428395 [4,] 576487 578492.0 585610.0 594579 571988 578807.0 588234.0 588724.0 588550 [5,] 740228 741472.0 747315.0 757533 671420 677156.0 686086.0 684954.0 684331 [,10] [,11] [,12] [1,] 325165.0 311274 297987.0 [2,] 342535.0 343083 354261.0 [3,] 432590.5 437401 456033.5 [4,] 592764.0 598593 619494.0 [5,] 722145.0 731098 753123.0 $n [1] 11 11 11 11 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 323771.4 306356.8 311961.6 320898.7 294782 297407 303144 306714.9 305238.8 [2,] 531474.6 529643.2 538670.4 551895.3 513930 524904 540447 547710.1 551551.2 [,10] [,11] [,12] [1,] 307566.1 309738 323512.5 [2,] 557614.9 565064 588554.5 $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(334053, 358489, 427623, 576487, 740228, 306152, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5zyz51244406302.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,] 326018.0 347562.0 297987 283323.0 340715.0 418000.0 487101.0 548414.0 [2,] 332435.5 351231.0 330264 297245.5 356201.5 432010.0 502091.0 562761.0 [3,] 339551.0 354277.0 350953 318058.0 377951.0 455000.0 527052.0 583520.5 [4,] 342809.0 358108.5 353784 331618.5 393573.0 467412.5 534105.5 590744.0 [5,] 354261.0 363049.0 368285 350683.0 416075.0 495992.0 559182.0 619494.0 [,9] [,10] [,11] [1,] 604560.0 651667.0 740228.0 [2,] 617428.0 664859.5 740850.0 [3,] 634309.5 680743.5 744393.5 [4,] 639914.0 704115.5 752424.0 [5,] 668209.0 753123.0 757533.0 $n [1] 12 12 12 12 12 12 12 12 12 12 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 334819.6 351140.1 340225.4 302380.2 360905.6 438852.7 512450 570757.3 [2,] 344282.4 357413.9 361680.6 333735.8 394996.4 471147.3 541654 596283.7 [,9] [,10] [,11] [1,] 624053.5 662838.6 735250 [2,] 644565.5 698648.4 753537 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(326018, 332435.5, 339551, 342809, 354261, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63mu71244406302.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.sd,arr.range,arr.iqr)) > names(z) <- list('S.D.','Range','IQR') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Variability',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 134258.2 360718.0 204234.8 [2,] 135927.0 374530.0 219997.1 [3,] 143237.4 401577.5 231007.8 [4,] 153552.8 445228.0 238171.1 [5,] 157966.3 471664.0 248608.8 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 135198.2 369331.7 222718.5 [2,] 151276.6 433823.3 239297.0 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(134258.152711525, 135927.044674881, 143237.416745245, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1wobn1244406302.ps tmp/1wobn1244406302.png") > system("convert tmp/23mfd1244406302.ps tmp/23mfd1244406302.png") > system("convert tmp/3jk7d1244406302.ps tmp/3jk7d1244406302.png") > system("convert tmp/4j3rd1244406302.ps tmp/4j3rd1244406302.png") > system("convert tmp/5zyz51244406302.ps tmp/5zyz51244406302.png") > system("convert tmp/63mu71244406302.ps tmp/63mu71244406302.png") > > > proc.time() user system elapsed 1.062 0.810 1.301