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(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,537,524,536,587,597,581) > 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)) > 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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 613 628 620 542 518 581 [2,] 611 612 588 527 506 NA [3,] 594 595 566 510 502 NA [4,] 595 597 557 514 516 NA [5,] 591 593 561 517 528 NA [6,] 589 590 549 508 533 NA [7,] 584 580 532 493 536 NA [8,] 573 574 526 490 537 NA [9,] 567 573 511 469 524 NA [10,] 569 573 499 478 536 NA [11,] 621 620 555 528 587 NA [12,] 629 626 565 534 597 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/1erz71261047492.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/2njxx1261047492.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/3u8gg1261047492.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/41zij1261047492.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 506 502 514 517 508 493 490 469 478 528 534 [2,] 542 527 510 516 528 533 532 526 511 499 555 565 [3,] 597 588 566 557 561 549 536 537 524 536 587 597 [4,] 620 611 594 595 591 589 580 573 567 569 620 626 [5,] 628 612 595 597 593 590 584 574 573 573 621 629 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 546.6875 528.6458 506.6458 501.1788 516.4844 509.4305 502.0833 503.7899 [2,] 647.3125 647.3542 625.3542 612.8212 605.5156 588.5695 569.9167 570.2101 [,9] [,10] [,11] [,12] [1,] 484.4305 486.5382 541.0712 553.8976 [2,] 563.5695 585.4618 632.9288 640.1024 $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, 597, 620, 628, 506, 527, 588, 611, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5uoz41261047492.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,] 567.0 573 499.0 469.0 502.0 581 [2,] 578.5 577 529.0 491.5 517.0 581 [3,] 592.5 594 556.0 512.0 530.5 581 [4,] 612.0 616 565.5 527.5 536.5 581 [5,] 629.0 628 620.0 542.0 537.0 581 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 577.2204 576.2118 539.3521 495.5802 521.6059 581 [2,] 607.7796 611.7882 572.6479 528.4198 539.3941 581 $out [1] 587 597 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(567, 578.5, 592.5, 612, 629, 573, 577, 594, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6x2m81261047492.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 74.5 [5,] 49.26155 110.0 84.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 37.46835 85.7023 55.56203 [2,] 43.96137 100.2977 72.43797 $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 > > try(system("convert tmp/1erz71261047492.ps tmp/1erz71261047492.png",intern=TRUE)) character(0) > try(system("convert tmp/2njxx1261047492.ps tmp/2njxx1261047492.png",intern=TRUE)) character(0) > try(system("convert tmp/3u8gg1261047492.ps tmp/3u8gg1261047492.png",intern=TRUE)) character(0) > try(system("convert tmp/41zij1261047492.ps tmp/41zij1261047492.png",intern=TRUE)) character(0) > try(system("convert tmp/5uoz41261047492.ps tmp/5uoz41261047492.png",intern=TRUE)) character(0) > try(system("convert tmp/6x2m81261047492.ps tmp/6x2m81261047492.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.085 0.846 1.411