R version 2.8.0 (2008-10-20) 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(517,540,454,292,445,483,545,355,370,372,422,445,471,413,307,308,389,377,521,420,413,384,466,434,263,334,334,416,309,334,350,337,277,439,433,455,372,409,471,382,417,405,410,357,360,329,359,393,448,593,535,449,742,631,513,526,677,631,547,533,433,427,470,418,485,464,439,452,423,537,384,380) > 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,] 517 471 263 372 448 433 NA [2,] 540 413 334 409 593 427 NA [3,] 454 307 334 471 535 470 NA [4,] 292 308 416 382 449 418 NA [5,] 445 389 309 417 742 485 NA [6,] 483 377 334 405 631 464 NA [7,] 545 521 350 410 513 439 NA [8,] 355 420 337 357 526 452 NA [9,] 370 413 277 360 677 423 NA [10,] 372 384 439 329 631 537 NA [11,] 422 466 433 359 547 384 NA [12,] 445 434 455 393 533 380 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/freestat/rcomp/tmp/1tqzd1244405163.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/freestat/rcomp/tmp/2e3wl1244405163.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/freestat/rcomp/tmp/3np8w1244405163.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/freestat/rcomp/tmp/4n65b1244405163.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,] 263.0 334 307 292 309 334.0 350 337.0 277.0 329.0 359.0 380.0 [2,] 372.0 409 334 308 389 377.0 410 355.0 360.0 372.0 384.0 393.0 [3,] 440.5 420 462 399 431 434.5 476 388.5 391.5 411.5 427.5 439.5 [4,] 471.0 540 471 418 485 483.0 521 452.0 423.0 537.0 466.0 455.0 [5,] 517.0 593 535 449 485 631.0 545 526.0 423.0 631.0 547.0 533.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 376.6418 335.5008 373.6306 328.0464 369.0769 366.1266 404.4014 325.9319 [2,] 504.3582 504.4992 550.3694 469.9536 492.9231 502.8734 547.5986 451.0681 [,9] [,10] [,11] [,12] [1,] 350.863 305.0697 374.6074 399.508 [2,] 432.137 517.9303 480.3926 479.492 $out [1] 742 677 $group [1] 5 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(263, 372, 440.5, 471, 517, 334, 409, 420, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5tk4j1244405163.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,] 292 307.0 263.0 329.0 448.0 380.0 NA [2,] 371 380.5 321.5 359.5 519.5 420.5 NA [3,] 445 413.0 335.5 387.5 541.0 436.0 NA [4,] 500 450.0 424.5 409.5 631.0 467.0 NA [5,] 545 521.0 455.0 471.0 742.0 485.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 386.1622 381.3006 288.521 364.6947 490.1441 414.791 NA [2,] 503.8378 444.6994 382.479 410.3053 591.8559 457.209 NA $out [1] 537 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(292, 371, 445, 500, 545, 307, 380.5, 413, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6snwp1244405163.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,] 54.30285 153.0 49.250 [2,] 69.57707 188.5 71.125 [3,] 88.93000 241.0 89.750 [4,] 109.60582 299.5 101.750 [5,] 148.28587 433.0 137.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 70.67262 190.3722 75.78173 [2,] 107.18739 291.6278 103.71827 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(54.3028544369447, 69.5770699846266, 88.9300045188476, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1tqzd1244405163.ps tmp/1tqzd1244405163.png") > system("convert tmp/2e3wl1244405163.ps tmp/2e3wl1244405163.png") > system("convert tmp/3np8w1244405163.ps tmp/3np8w1244405163.png") > system("convert tmp/4n65b1244405163.ps tmp/4n65b1244405163.png") > system("convert tmp/5tk4j1244405163.ps tmp/5tk4j1244405163.png") > system("convert tmp/6snwp1244405163.ps tmp/6snwp1244405163.png") > > > proc.time() user system elapsed 1.639 1.244 1.875