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(433,344,357,385,392,308,294,302,400,392,373,379,303,324,353,392,327,376,329,359,413,338,422,390,370,367,406,418,346,350,329,318,381,337,372,422,427,426,396,458,314,336,385,351,381,438,397,451,362,363,468,371,407,391,364,366,424,364,366,423) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 433 303 370 427 362 NA [2,] 344 324 367 426 363 NA [3,] 357 353 406 396 468 NA [4,] 385 392 418 458 371 NA [5,] 392 327 346 314 407 NA [6,] 308 376 350 336 391 NA [7,] 294 329 329 385 364 NA [8,] 302 359 318 351 366 NA [9,] 400 413 381 381 424 NA [10,] 392 338 337 438 364 NA [11,] 373 422 372 397 366 NA [12,] 379 390 422 451 423 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/1ogdv1257700581.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/27epg1257700581.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/3bus81257700581.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/42xlk1257700581.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,] 303 324 353 371 314 308 294 302 381 337 366 379 [2,] 362 344 357 385 327 336 329 318 381 338 372 390 [3,] 370 363 396 392 346 350 329 351 400 364 373 422 [4,] 427 367 406 418 392 376 364 359 413 392 397 423 [5,] 433 367 468 458 407 391 385 366 424 438 422 451 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 324.0712 346.7483 361.3767 368.6823 300.0712 321.7361 304.2691 322.0295 [2,] 415.9288 379.2517 430.6233 415.3177 391.9288 378.2639 353.7309 379.9705 [,9] [,10] [,11] [,12] [1,] 377.3889 325.8437 355.3351 398.6823 [2,] 422.6111 402.1563 390.6649 445.3177 $out [1] 426 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(303, 362, 370, 427, 433, 324, 344, 363, 367, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5c77u1257700581.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,] 294 303 318.0 314.0 362.0 NA [2,] 326 328 341.5 366.0 364.0 NA [3,] 376 356 368.5 396.5 368.5 NA [4,] 392 391 393.5 432.5 415.0 NA [5,] 433 422 422.0 458.0 468.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 345.8970 327.2653 344.7825 366.1689 345.2386 NA [2,] 406.1030 384.7347 392.2175 426.8311 391.7614 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(294, 326, 376, 392, 433, 303, 328, 356, 391, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6fls51257700581.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,] 19.14941 43.0 23.0 [2,] 28.26389 68.0 32.5 [3,] 34.74893 89.0 37.5 [4,] 41.49289 101.5 51.5 [5,] 53.30572 130.0 65.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 28.71509 73.72043 28.83397 [2,] 40.78276 104.27957 46.16603 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(19.1494125236259, 28.2638919187345, 34.7489278915144, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ogdv1257700581.ps tmp/1ogdv1257700581.png") > system("convert tmp/27epg1257700581.ps tmp/27epg1257700581.png") > system("convert tmp/3bus81257700581.ps tmp/3bus81257700581.png") > system("convert tmp/42xlk1257700581.ps tmp/42xlk1257700581.png") > system("convert tmp/5c77u1257700581.ps tmp/5c77u1257700581.png") > system("convert tmp/6fls51257700581.ps tmp/6fls51257700581.png") > > > proc.time() user system elapsed 1.642 1.254 1.928