R version 2.10.1 (2009-12-14) 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(600,425,398,582,458,455,621,635,589,220,351,379,683,524,536,598,581,632,645,722,689,645,354,486,423,479,684,601,608,463,602,485,563,645,486,435,479,579,563,202,389,467,466,706,546,689,531,528,579,684,651,637,548,496,582,467,693,615,708,648,899,852,745,689,582,674,684,542,489,472,398,486,549,766,654,628,689,648,578,536,548,496,475,687,642,584,596,609,678,694,485,489,537,706,489,598) > 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] 96 > (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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 600 683 423 479 579 899 549 642 NA [2,] 425 524 479 579 684 852 766 584 NA [3,] 398 536 684 563 651 745 654 596 NA [4,] 582 598 601 202 637 689 628 609 NA [5,] 458 581 608 389 548 582 689 678 NA [6,] 455 632 463 467 496 674 648 694 NA [7,] 621 645 602 466 582 684 578 485 NA [8,] 635 722 485 706 467 542 536 489 NA [9,] 589 689 563 546 693 489 548 537 NA [10,] 220 645 645 689 615 472 496 706 NA [11,] 351 354 486 531 708 398 475 489 NA [12,] 379 486 435 528 648 486 687 598 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/yougetitorg/rcomp/tmp/1s05w1304530679.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/2egzf1304530679.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/3jfyi1304530679.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/4bd7q1304530679.ps",horizontal=F,onefile=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,] 423.0 425.0 398.0 582.0 389.0 455 466.0 467.0 489.0 220 351.0 379.0 [2,] 514.0 501.5 549.5 590.0 503.0 465 531.5 487.0 541.5 484 376.0 460.5 [3,] 589.5 581.5 623.5 605.0 581.5 564 592.0 539.0 555.5 630 480.5 507.0 [4,] 662.5 725.0 669.0 632.5 643.0 661 633.0 670.5 639.0 667 510.0 623.0 [5,] 683.0 852.0 745.0 689.0 689.0 694 684.0 722.0 693.0 706 708.0 687.0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 506.5458 456.6497 556.7456 581.2589 503.294 454.5116 535.3006 436.4943 [2,] 672.4542 706.3503 690.2544 628.7411 659.706 673.4884 648.6994 641.5057 [,9] [,10] [,11] [,12] [1,] 501.0351 527.7736 405.6457 416.2252 [2,] 609.9649 732.2264 555.3543 597.7748 $out [1] 899 202 $group [1] 1 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(423, 514, 589.5, 662.5, 683, 425, 501.5, 581.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5z4v01304530679.ps",horizontal=F,onefile=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,] 220.0 354 423.0 389.0 467.0 398.0 475.0 485 NA [2,] 388.5 530 471.0 466.5 563.5 487.5 542.0 513 NA [3,] 456.5 615 524.5 529.5 626.0 628.0 603.0 597 NA [4,] 594.5 664 605.0 571.0 667.5 717.0 670.5 660 NA [5,] 635.0 722 684.0 706.0 708.0 899.0 766.0 706 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 362.542 553.8817 463.3817 481.8368 578.5649 523.3235 544.3903 529.9523 [2,] 550.458 676.1183 585.6183 577.1632 673.4351 732.6765 661.6097 664.0477 [,9] [1,] NA [2,] NA $out [1] 202 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(220, 388.5, 456.5, 594.5, 635, 354, 530, 615, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/66q891304530679.ps",horizontal=F,onefile=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,] 73.00245 204.0 36.250 [2,] 101.88550 247.0 86.125 [3,] 106.46377 327.5 116.625 [4,] 145.27603 451.5 165.375 [5,] 161.62744 487.0 191.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 86.67306 234.2262 80.47854 [2,] 126.25448 420.7738 152.77146 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(73.0024461429694, 101.885499175621, 106.463768722695, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1s05w1304530679.ps tmp/1s05w1304530679.png",intern=TRUE)) character(0) > try(system("convert tmp/2egzf1304530679.ps tmp/2egzf1304530679.png",intern=TRUE)) character(0) > try(system("convert tmp/3jfyi1304530679.ps tmp/3jfyi1304530679.png",intern=TRUE)) character(0) > try(system("convert tmp/4bd7q1304530679.ps tmp/4bd7q1304530679.png",intern=TRUE)) character(0) > try(system("convert tmp/5z4v01304530679.ps tmp/5z4v01304530679.png",intern=TRUE)) character(0) > try(system("convert tmp/66q891304530679.ps tmp/66q891304530679.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.27 0.94 1.84