R version 2.10.1 (2009-12-14) 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(33,32,31,29,49,48,33,23,24,24,25,27,24,21,15,21,49,48,35,36,51,50,61,63,61,62,58,65,93,94,86,88,102,107,121,127,125,128,117,127,160,162,153,160,177,178,196,212,212,211,204,216,248,250,240,249,275,277,286,302,290,290,277,285,311,300,291,299,332,337,343,360,353,351,341,348,381,358,353,358,399,409,407,419,418,421,414,424,463,437,430,436,474,489,482,492,502,500,493,504,538,516,502,501,541,571,559,569,576,573,562,570,597,573,562,556,600,630,624,634) > 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,] 33 24 61 125 212 290 353 418 502 576 NA [2,] 32 21 62 128 211 290 351 421 500 573 NA [3,] 31 15 58 117 204 277 341 414 493 562 NA [4,] 29 21 65 127 216 285 348 424 504 570 NA [5,] 49 49 93 160 248 311 381 463 538 597 NA [6,] 48 48 94 162 250 300 358 437 516 573 NA [7,] 33 35 86 153 240 291 353 430 502 562 NA [8,] 23 36 88 160 249 299 358 436 501 556 NA [9,] 24 51 102 177 275 332 399 474 541 600 NA [10,] 24 50 107 178 277 337 409 489 571 630 NA [11,] 25 61 121 196 286 343 407 482 559 624 NA [12,] 27 63 127 212 302 360 419 492 569 634 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/rcomp/tmp/1vsf61278526049.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/rcomp/tmp/2ojwr1278526049.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/rcomp/tmp/3ojwr1278526049.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/rcomp/tmp/4haec1278526049.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,] 24 21.0 15.0 21.0 49.0 48 33.0 23 24.0 24 25.0 27 [2,] 61 62.0 58.0 65.0 93.0 94 86.0 88 102.0 107 121.0 127 [3,] 251 250.5 240.5 250.5 279.5 275 265.5 274 303.5 307 314.5 331 [4,] 418 421.0 414.0 424.0 463.0 437 430.0 436 474.0 489 482.0 492 [5,] 576 573.0 562.0 570.0 597.0 573 562.0 556 600.0 630 624.0 634 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 72.62857 71.12929 62.6282 71.12929 94.63325 103.6235 93.62388 [2,] 429.37143 429.87071 418.3718 429.87071 464.36675 446.3765 437.37612 [,8] [,9] [,10] [,11] [,12] [1,] 100.1253 117.6340 116.1376 134.13 148.6314 [2,] 447.8747 489.3660 497.8624 494.87 513.3686 $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(24, 61, 251, 418, 576, 21, 62, 250.5, 421, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5haec1278526049.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,] 23.0 15.0 58.0 117.0 204.0 277.0 341 414.0 493.0 556.0 NA [2,] 24.5 22.5 63.5 127.5 214.0 290.0 352 422.5 501.5 566.0 NA [3,] 30.0 42.0 90.5 160.0 248.5 299.5 358 436.5 510.0 574.5 NA [4,] 33.0 50.5 104.5 177.5 276.0 334.5 403 478.0 550.0 612.0 NA [5,] 33.0 63.0 127.0 212.0 302.0 360.0 419 492.0 571.0 634.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,] 26.12309 29.22901 71.79962 137.1947 220.2214 279.2033 334.7386 411.1861 [2,] 33.87691 54.77099 109.20038 182.8053 276.7786 319.7967 381.2614 461.8139 [,9] [,10] [,11] [1,] 487.8788 553.5191 NA [2,] 532.1212 595.4809 NA $out [1] 49 48 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(23, 24.5, 30, 33, 33, 15, 22.5, 42, 50.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6haec1278526049.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,] 191.4060 525.0 306.250 [2,] 195.0394 540.0 316.750 [3,] 199.9034 550.5 324.625 [4,] 207.5535 587.5 329.125 [5,] 216.5722 607.0 344.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 194.1956 528.8349 318.9807 [2,] 205.6112 572.1651 330.2693 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(191.406025680141, 195.039365262237, 199.903413503658, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vsf61278526049.ps tmp/1vsf61278526049.png",intern=TRUE)) character(0) > try(system("convert tmp/2ojwr1278526049.ps tmp/2ojwr1278526049.png",intern=TRUE)) character(0) > try(system("convert tmp/3ojwr1278526049.ps tmp/3ojwr1278526049.png",intern=TRUE)) character(0) > try(system("convert tmp/4haec1278526049.ps tmp/4haec1278526049.png",intern=TRUE)) character(0) > try(system("convert tmp/5haec1278526049.ps tmp/5haec1278526049.png",intern=TRUE)) character(0) > try(system("convert tmp/6haec1278526049.ps tmp/6haec1278526049.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.250 1.010 1.364