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(449,452,462,455,461,461,463,462,456,455,456,472,472,471,465,459,465,468,467,463,460,462,461,476,476,471,453,443,442,444,438,427,424,416,406,431,434,418,412,404,409,412,406,398,397,385,390,413,413,401,397,397,409,419,424,428,430,424,433,456,459) > 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] 61 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 449 472 476 434 413 459 [2,] 452 471 471 418 401 NA [3,] 462 465 453 412 397 NA [4,] 455 459 443 404 397 NA [5,] 461 465 442 409 409 NA [6,] 461 468 444 412 419 NA [7,] 463 467 438 406 424 NA [8,] 462 463 427 398 428 NA [9,] 456 460 424 397 430 NA [10,] 455 462 416 385 424 NA [11,] 456 461 406 390 433 NA [12,] 472 476 431 413 456 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/1cb3c1257765310.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/2teue1257765310.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/3g9l71257765310.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/40wx41257765310.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,] 413 401 397 397 409 412 406 398 397 385 390 413 [2,] 434 418 412 404 409 419 424 427 424 416 406 431 [3,] 454 452 453 443 442 444 438 428 430 424 433 456 [4,] 472 471 462 455 461 461 463 462 456 455 456 472 [5,] 476 471 465 459 465 468 467 463 460 462 461 476 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 429.4888 414.5503 417.6701 406.9635 405.2569 414.3229 410.4427 403.2691 [2,] 478.5112 489.4497 488.3299 479.0365 478.7431 473.6771 465.5573 452.7309 [,9] [,10] [,11] [,12] [1,] 407.3889 396.4427 397.6701 427.0295 [2,] 452.6111 451.5573 468.3299 484.9705 $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(413, 434, 454, 472, 476, 401, 418, 452, 471, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5bk931257765310.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] [1,] 449.0 459.0 406.0 385.0 397.0 459 [2,] 455.0 461.5 425.5 397.5 405.0 459 [3,] 458.5 465.0 440.0 407.5 421.5 459 [4,] 462.0 469.5 448.5 412.5 429.0 459 [5,] 472.0 476.0 476.0 434.0 456.0 459 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 455.3073 461.3511 429.5095 400.6584 410.5534 459 [2,] 461.6927 468.6489 450.4905 414.3416 432.4466 459 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(449, 455, 458.5, 462, 472, 459, 461.5, 465, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6i3161257765310.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,] 23.93951 56.0 31.0 [2,] 25.77876 61.5 37.0 [3,] 27.26245 63.0 41.5 [4,] 31.03516 69.0 50.5 [5,] 31.76948 77.0 53.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 24.86498 59.5792 35.34256 [2,] 29.65993 66.4208 47.65744 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(23.9395070960118, 25.7787647051579, 27.2624544358233, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1cb3c1257765310.ps tmp/1cb3c1257765310.png") > system("convert tmp/2teue1257765310.ps tmp/2teue1257765310.png") > system("convert tmp/3g9l71257765310.ps tmp/3g9l71257765310.png") > system("convert tmp/40wx41257765310.ps tmp/40wx41257765310.png") > system("convert tmp/5bk931257765310.ps tmp/5bk931257765310.png") > system("convert tmp/6i3161257765310.ps tmp/6i3161257765310.png") > > > proc.time() user system elapsed 1.674 1.302 1.941