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(581,597,587,536,524,537,536,533,528,516,502,506,518,534,528,478,469,490,493,508,517,514,510,527,542,565,555,499,511,526,532,549,561,557,566,588,620,626,620,573,573,574,580,590,593,597,595,612,628,629,621,569,567,573,584,589,591,595,594,611) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 581 518 542 620 628 NA [2,] 597 534 565 626 629 NA [3,] 587 528 555 620 621 NA [4,] 536 478 499 573 569 NA [5,] 524 469 511 573 567 NA [6,] 537 490 526 574 573 NA [7,] 536 493 532 580 584 NA [8,] 533 508 549 590 589 NA [9,] 528 517 561 593 591 NA [10,] 516 514 557 597 595 NA [11,] 502 510 566 595 594 NA [12,] 506 527 588 612 611 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/1ut9w1258117392.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/2p19z1258117392.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/3299k1258117392.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/4lqq91258117392.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,] 518 534 528 478 469 490 493 508 517 514 502 506 [2,] 542 565 555 499 511 526 532 533 528 516 510 527 [3,] 581 597 587 536 524 537 536 549 561 557 566 588 [4,] 620 626 620 569 567 573 580 589 591 595 594 611 [5,] 628 629 621 573 573 574 584 590 593 597 595 612 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 525.8854 553.8976 541.0712 486.5382 484.4305 503.7899 502.0833 509.4305 [2,] 636.1146 640.1024 632.9288 585.4618 563.5695 570.2101 569.9167 588.5695 [,9] [,10] [,11] [,12] [1,] 516.4844 501.1788 506.6458 528.6458 [2,] 605.5156 612.8212 625.3542 647.3542 $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(518, 542, 581, 620, 628, 534, 565, 597, 626, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5hi8s1258117392.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,] 502.0 469.0 499 573 567.0 NA [2,] 520.0 491.5 529 577 578.5 NA [3,] 534.5 512.0 552 594 592.5 NA [4,] 559.0 522.5 563 616 616.0 NA [5,] 597.0 534.0 588 626 629.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 516.7118 497.8607 536.4924 576.2118 575.396 NA [2,] 552.2882 526.1393 567.5076 611.7882 609.604 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(502, 520, 534.5, 559, 597, 469, 491.5, 512, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6l86p1258117392.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,] 35.01428 76.0 47.0 [2,] 36.73306 83.5 56.0 [3,] 40.71486 93.0 64.0 [4,] 43.85093 99.5 78.5 [5,] 49.26155 110.0 84.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 37.46835 85.7023 53.7376 [2,] 43.96137 100.2977 74.2624 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(35.0142828000232, 36.7330574673291, 40.7148602992645, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ut9w1258117392.ps tmp/1ut9w1258117392.png") > system("convert tmp/2p19z1258117392.ps tmp/2p19z1258117392.png") > system("convert tmp/3299k1258117392.ps tmp/3299k1258117392.png") > system("convert tmp/4lqq91258117392.ps tmp/4lqq91258117392.png") > system("convert tmp/5hi8s1258117392.ps tmp/5hi8s1258117392.png") > system("convert tmp/6l86p1258117392.ps tmp/6l86p1258117392.png") > > > proc.time() user system elapsed 1.055 0.828 1.782