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(509,501,507,569,580,578,565,547,555,562,561,555,544,537,543,594,611,613,611,594,595,591,589,584,573,567,569,621,629,628,612,595,597,593,590,580,574,573,573,620,626,620,588,566,557,561,549,532,526,511,499,555,565,542,527,510,514,517,508,493,490,469,478,528,534,518,506,502,516,528,533,536) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 509 544 573 574 526 490 NA [2,] 501 537 567 573 511 469 NA [3,] 507 543 569 573 499 478 NA [4,] 569 594 621 620 555 528 NA [5,] 580 611 629 626 565 534 NA [6,] 578 613 628 620 542 518 NA [7,] 565 611 612 588 527 506 NA [8,] 547 594 595 566 510 502 NA [9,] 555 595 597 557 514 516 NA [10,] 562 591 593 561 517 528 NA [11,] 561 589 590 549 508 533 NA [12,] 555 584 580 532 493 536 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/18kjy1243966145.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/2uszw1243966145.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/3sfr51243966145.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/4xnen1243966145.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] [,11] [,12] [1,] 490 469 478 528.0 534.0 518.0 506.0 502.0 514 517.0 508 493.0 [2,] 509 501 499 555.0 565.0 542.0 527.0 510.0 516 528.0 533 532.0 [3,] 535 524 525 581.5 595.5 595.5 576.5 556.5 556 561.5 555 545.5 [4,] 573 567 569 620.0 626.0 620.0 611.0 594.0 595 591.0 589 580.0 [5,] 574 573 573 621.0 629.0 628.0 612.0 595.0 597 593.0 590 584.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 493.7179 481.4279 479.8477 539.5729 556.153 545.1875 522.3173 502.3173 [2,] 576.2821 566.5721 570.1523 623.4271 634.847 645.8125 630.6827 610.6827 [,9] [,10] [,11] [,12] [1,] 505.0424 520.863 518.8782 514.5384 [2,] 606.9576 602.137 591.1218 576.4616 $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(490, 509, 535, 573, 574, 469, 501, 524, 567, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5dls61243966145.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] [1,] 501 537.0 567.0 532 493.0 469.0 NA [2,] 528 564.0 576.5 559 509.0 496.0 NA [3,] 558 592.5 594.0 573 515.5 517.0 NA [4,] 567 603.0 616.5 604 534.5 530.5 NA [5,] 580 613.0 629.0 626 565.0 536.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 540.2118 574.7118 575.7557 552.4752 503.8693 501.2643 NA [2,] 575.7882 610.2882 612.2443 593.5248 527.1307 532.7357 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(501, 528, 558, 567, 580, 537, 564, 592.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/614ux1243966145.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,] 31.36027 76.0 40.750 [2,] 34.06655 83.5 50.000 [3,] 37.46062 93.0 55.500 [4,] 40.25750 99.5 64.375 [5,] 45.22131 110.0 68.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 34.63689 85.7023 48.94347 [2,] 40.28436 100.2977 62.05653 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(31.360272107663, 34.0665541636217, 37.4606223640236, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/18kjy1243966145.ps tmp/18kjy1243966145.png") > system("convert tmp/2uszw1243966145.ps tmp/2uszw1243966145.png") > system("convert tmp/3sfr51243966145.ps tmp/3sfr51243966145.png") > system("convert tmp/4xnen1243966145.ps tmp/4xnen1243966145.png") > system("convert tmp/5dls61243966145.ps tmp/5dls61243966145.png") > system("convert tmp/614ux1243966145.ps tmp/614ux1243966145.png") > > > proc.time() user system elapsed 1.080 0.838 1.712