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(668,667,666,664,684,683,668,658,659,659,660,662,659,655,655,655,674,674,665,644,638,648,641,637,651,649,652,650,661,666,652,624,613,623,615,613,621,612,611,609,631,632,624,596,584,587,581,574,593,582,571,572,594,588,571,546,535,537,527,515,545,538,520,523,541,529,504,473,455,458,450,442,469,455,439,443,461,451,425,393,366,359,351,343,366,355,344,351,367,364,353,313,278,274,261,255,274,262,265,274,291,289,277,238,203,198,190,187,201,181,181,196,207,202,186,154,120,107,99,100) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 668 659 651 621 593 545 469 366 274 201 NA [2,] 667 655 649 612 582 538 455 355 262 181 NA [3,] 666 655 652 611 571 520 439 344 265 181 NA [4,] 664 655 650 609 572 523 443 351 274 196 NA [5,] 684 674 661 631 594 541 461 367 291 207 NA [6,] 683 674 666 632 588 529 451 364 289 202 NA [7,] 668 665 652 624 571 504 425 353 277 186 NA [8,] 658 644 624 596 546 473 393 313 238 154 NA [9,] 659 638 613 584 535 455 366 278 203 120 NA [10,] 659 648 623 587 537 458 359 274 198 107 NA [11,] 660 641 615 581 527 450 351 261 190 99 NA [12,] 662 637 613 574 515 442 343 255 187 100 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/1gbdm1282227359.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/2rkvp1282227359.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/3rkvp1282227359.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/4rkvp1282227359.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,] 201 181 181.0 196.0 207.0 202.0 186.0 154.0 120 107.0 99.0 100.0 [2,] 366 355 344.0 351.0 367.0 364.0 353.0 313.0 278 274.0 261.0 255.0 [3,] 569 560 545.5 547.5 567.5 558.5 537.5 509.5 495 497.5 488.5 478.5 [4,] 651 649 652.0 650.0 661.0 666.0 652.0 624.0 613 623.0 615.0 613.0 [5,] 668 667 666.0 664.0 684.0 683.0 668.0 658.0 659 659.0 660.0 662.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 426.6026 413.1059 391.6109 398.1077 420.6059 407.6088 388.1077 354.112 [2,] 711.3974 706.8941 699.3891 696.8923 714.3941 709.3912 686.8923 664.888 [,9] [,10] [,11] [,12] [1,] 327.6206 323.1257 311.6275 299.6289 [2,] 662.3794 671.8743 665.3725 657.3711 $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(201, 366, 569, 651, 668, 181, 355, 560, 649, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5kbua1282227359.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] [,10] [,11] [1,] 658.0 637.0 613.0 574.0 515 442.0 343.0 255.0 187.0 99.0 NA [2,] 659.5 642.5 619.0 585.5 536 456.5 362.5 276.0 200.5 113.5 NA [3,] 665.0 655.0 649.5 610.0 571 512.0 432.0 347.5 263.5 181.0 NA [4,] 668.0 662.0 652.0 622.5 585 533.5 453.0 359.5 275.5 198.5 NA [5,] 668.0 674.0 666.0 632.0 594 545.0 469.0 367.0 291.0 207.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 661.1231 646.1059 634.4485 593.124 548.6508 476.8798 390.7223 309.4151 [2,] 668.8769 663.8941 664.5515 626.876 593.3492 547.1202 473.2777 385.5849 [,9] [,10] [,11] [1,] 229.292 142.2309 NA [2,] 297.708 219.7691 NA $out [1] 684 683 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(658, 659.5, 665, 668, 668, 637, 642.5, 655, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6kbua1282227359.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,] 169.8235 467.0 251.750 [2,] 172.5893 479.0 264.375 [3,] 175.2231 485.5 274.000 [4,] 196.6818 545.5 312.250 [5,] 201.5651 562.0 326.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 164.2344 455.1689 252.1639 [2,] 186.2119 515.8311 295.8361 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(169.823470436542, 172.589320806827, 175.223142778979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1gbdm1282227359.ps tmp/1gbdm1282227359.png",intern=TRUE)) character(0) > try(system("convert tmp/2rkvp1282227359.ps tmp/2rkvp1282227359.png",intern=TRUE)) character(0) > try(system("convert tmp/3rkvp1282227359.ps tmp/3rkvp1282227359.png",intern=TRUE)) character(0) > try(system("convert tmp/4rkvp1282227359.ps tmp/4rkvp1282227359.png",intern=TRUE)) character(0) > try(system("convert tmp/5kbua1282227359.ps tmp/5kbua1282227359.png",intern=TRUE)) character(0) > try(system("convert tmp/6kbua1282227359.ps tmp/6kbua1282227359.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.058 0.815 1.879