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(467,460,448,443,436,431,484,510,513,503,471,471,476,475,470,461,455,456,517,525,523,519,509,512,519,517,510,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) > 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] 97 > (np <- floor(n / par1)) [1] 8 > 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] 9 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 467 476 519 562 591 593 561 517 528 [2,] 460 475 517 561 589 590 549 508 NA [3,] 448 470 510 555 584 580 532 493 NA [4,] 443 461 509 544 573 574 526 490 NA [5,] 436 455 501 537 567 573 511 469 NA [6,] 431 456 507 543 569 573 499 478 NA [7,] 484 517 569 594 621 620 555 528 NA [8,] 510 525 580 611 629 626 565 534 NA [9,] 513 523 578 613 628 620 542 518 NA [10,] 503 519 565 611 612 588 527 506 NA [11,] 471 509 547 594 595 566 510 502 NA [12,] 471 512 555 595 597 557 514 516 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/1pe0u1244047073.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/2fntx1244047073.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/3bm351244047073.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/4h8gb1244047073.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,] 467 460.0 448.0 443.0 436 431 484.0 510.0 513.0 503.0 471.0 471.0 [2,] 517 491.5 481.5 475.5 462 467 522.5 529.5 520.5 512.5 505.5 513.0 [3,] 528 533.0 521.0 517.5 506 503 562.0 572.5 560.0 546.0 528.5 535.5 [4,] 562 575.0 567.5 558.5 552 556 607.0 618.5 616.5 599.5 580.0 576.0 [5,] 593 590.0 584.0 574.0 573 573 621.0 629.0 628.0 612.0 595.0 597.0 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 504.3 486.3557 472.9592 471.135 455.7247 453.2833 514.7971 522.7833 [2,] 551.7 579.6443 569.0408 563.865 556.2753 552.7167 609.2029 622.2167 [,9] [,10] [,11] [,12] [1,] 506.373 497.4006 486.8832 500.3073 [2,] 613.627 594.5994 570.1168 570.6927 $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(467, 517, 528, 562, 593, 460, 491.5, 533, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lfyf1244047073.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] [,9] [1,] 431.0 455.0 501.0 537.0 567.0 557.0 499.0 469.0 528 [2,] 445.5 465.5 509.5 549.5 578.5 573.0 512.5 491.5 528 [3,] 469.0 492.5 533.0 578.0 593.0 584.0 529.5 507.0 528 [4,] 493.5 518.0 567.0 603.0 616.5 606.5 552.0 517.5 528 [5,] 513.0 525.0 580.0 613.0 629.0 626.0 565.0 534.0 528 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 447.1069 468.5544 506.7739 553.5983 575.668 568.7204 511.4838 495.1412 [2,] 490.8931 516.4456 559.2261 602.4017 610.332 599.2796 547.5162 518.8588 [,9] [1,] 528 [2,] 528 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(431, 445.5, 469, 493.5, 513, 455, 465.5, 492.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65u8o1244047073.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,] 44.05171 109.0 53.000 [2,] 45.82286 121.5 67.000 [3,] 48.70672 128.0 74.625 [4,] 49.84489 136.5 78.500 [5,] 51.79355 142.0 93.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 46.87225 121.1584 69.37977 [2,] 50.54120 134.8416 79.87023 $out [1] 45 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(44.0517147387996, 45.822863601075, 48.7067247600694, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1pe0u1244047073.ps tmp/1pe0u1244047073.png") > system("convert tmp/2fntx1244047073.ps tmp/2fntx1244047073.png") > system("convert tmp/3bm351244047073.ps tmp/3bm351244047073.png") > system("convert tmp/4h8gb1244047073.ps tmp/4h8gb1244047073.png") > system("convert tmp/5lfyf1244047073.ps tmp/5lfyf1244047073.png") > system("convert tmp/65u8o1244047073.ps tmp/65u8o1244047073.png") > > > proc.time() user system elapsed 1.032 0.782 1.650