R version 2.6.2 (2008-02-08) Copyright (C) 2008 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(209,214,265,290,287,270,263,265,252,281,259,312,275,250,312,331,256,247,291,318,296,291,313,311,273,258,361,391,446,433,449,479,460,466,410,415,382,409,496,471,488,584,610,684,626,580,444,552,473,431,513,467,470,455,406,424,406,373,332,310,301,296,333,374,422,424,341,216,319,383,360,400) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 209 275 273 382 473 301 NA [2,] 214 250 258 409 431 296 NA [3,] 265 312 361 496 513 333 NA [4,] 290 331 391 471 467 374 NA [5,] 287 256 446 488 470 422 NA [6,] 270 247 433 584 455 424 NA [7,] 263 291 449 610 406 341 NA [8,] 265 318 479 684 424 216 NA [9,] 252 296 460 626 406 319 NA [10,] 281 291 466 580 373 383 NA [11,] 259 313 410 444 332 360 NA [12,] 312 311 415 552 310 400 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/1a8i71211126461.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/2otlp1211126461.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/34mk31211126462.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/4k59a1211126462.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,] 209 214 265 290.0 256 247.0 263.0 216 252.0 281 259 310 [2,] 273 250 312 331.0 287 270.0 291.0 265 296.0 291 313 311 [3,] 288 277 347 382.5 434 428.5 373.5 371 362.5 378 346 356 [4,] 382 409 496 467.0 470 455.0 449.0 479 460.0 466 410 415 [5,] 473 431 513 471.0 488 584.0 610.0 684 626.0 580 444 552 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 217.6915 174.4399 228.3141 294.7756 315.9591 309.169 271.5849 232.9631 [2,] 358.3085 379.5601 465.6859 470.2244 552.0409 547.831 475.4151 509.0369 [,9] [,10] [,11] [,12] [1,] 256.7147 265.1193 283.4319 288.9166 [2,] 468.2853 490.8807 408.5681 423.0834 $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(209, 273, 288, 382, 473, 214, 250, 277, 409, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/54vfr1211126462.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] [1,] 214.0 247.0 273.0 382.0 310.0 216.0 NA [2,] 255.5 265.5 376.0 457.5 389.5 310.0 NA [3,] 265.0 293.5 424.0 524.0 427.5 350.5 NA [4,] 284.0 312.5 454.5 597.0 468.5 391.5 NA [5,] 312.0 331.0 479.0 684.0 513.0 424.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 252.0010 272.063 388.1956 460.3731 391.4676 313.3273 NA [2,] 277.9990 314.937 459.8044 587.6269 463.5324 387.6727 NA $out [1] 209 258 $group [1] 1 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(214, 255.5, 265, 284, 312, 247, 265.5, 293.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ot9z1211126462.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,] 67.01642 181.0 79.750 [2,] 91.79903 224.5 103.125 [3,] 100.06535 256.0 134.250 [4,] 126.18410 342.0 144.000 [5,] 171.02359 468.0 187.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 84.38208 202.4075 115.6066 [2,] 115.74861 309.5925 152.8934 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(67.0164158993899, 91.7990290992106, 100.06534524191, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1a8i71211126461.ps tmp/1a8i71211126461.png") > system("convert tmp/2otlp1211126461.ps tmp/2otlp1211126461.png") > system("convert tmp/34mk31211126462.ps tmp/34mk31211126462.png") > system("convert tmp/4k59a1211126462.ps tmp/4k59a1211126462.png") > system("convert tmp/54vfr1211126462.ps tmp/54vfr1211126462.png") > system("convert tmp/6ot9z1211126462.ps tmp/6ot9z1211126462.png") > > > proc.time() user system elapsed 1.288 0.817 1.646