R version 2.7.0 (2008-04-22) 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(118,132,129,121,135,148,148,136,119,104,118,115,126,141,135,125,149,170,170,158,133,114,140,145,150,178,163,172,178,199,199,184,162,146,166,171,180,193,181,183,218,230,242,209,191,172,194,196,196,236,235,229,243,264,272,237,211,180,201,204,188,235,227,234,264,302,293,259,229,203,229,242,233,267,269,270,315,364,347,312,274,237,278,284,277,317,313,318,374,413,405,355,306,271,306,315,301,356,348,355,422,465,467,404,347,305,336,340,318,362,348,363,435,491,505,404,359,310,337,360,342,406,396,420,472,548,559,463,407,362,405,417,391,419,461,472,535,622,606,508,461,390,432) > 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] 143 > (np <- floor(n / par1)) [1] 11 > 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] 12 12 12 12 12 12 12 12 12 12 12 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 118 126 150 180 196 188 233 277 301 318 342 391 [2,] 132 141 178 193 236 235 267 317 356 362 406 419 [3,] 129 135 163 181 235 227 269 313 348 348 396 461 [4,] 121 125 172 183 229 234 270 318 355 363 420 472 [5,] 135 149 178 218 243 264 315 374 422 435 472 535 [6,] 148 170 199 230 264 302 364 413 465 491 548 622 [7,] 148 170 199 242 272 293 347 405 467 505 559 606 [8,] 136 158 184 209 237 259 312 355 404 404 463 508 [9,] 119 133 162 191 211 229 274 306 347 359 407 461 [10,] 104 114 146 172 180 203 237 271 305 310 362 390 [11,] 118 140 166 194 201 229 278 306 336 337 405 432 [12,] 115 145 171 196 204 242 284 315 340 360 417 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/1h8eb1218545625.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/2531v1218545625.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/3us711218545625.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/4x4o81218545625.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,] 118.0 132.0 129 121.0 135.0 148.0 148.0 136.0 119.0 104.0 118.0 115.0 [2,] 165.0 185.5 172 177.5 198.0 214.5 220.5 196.5 176.5 159.0 180.0 183.5 [3,] 214.5 251.5 252 252.0 289.5 333.0 320.0 285.5 251.5 220.0 253.5 242.0 [4,] 309.5 359.0 348 359.0 428.5 478.0 486.0 404.0 353.0 307.5 336.5 327.5 [5,] 391.0 419.0 461 472.0 535.0 622.0 606.0 508.0 461.0 390.0 432.0 417.0 $n [1] 12 12 12 12 12 12 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 148.5926 172.3655 171.7252 169.2166 184.3674 212.8159 198.9037 190.8579 [2,] 280.4074 330.6345 332.2748 334.7834 394.6326 453.1841 441.0963 380.1421 [,9] [,10] [,11] [,12] [1,] 170.9972 152.2682 182.1193 173.4001 [2,] 332.0028 287.7318 324.8807 310.5999 $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(118, 165, 214.5, 309.5, 391, 132, 185.5, 251.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5bflf1218545625.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] [,12] [1,] 104.0 114.0 146.0 172.0 180.0 188.0 233.0 271.0 301.0 310.0 342.0 390.0 [2,] 118.0 129.5 162.5 182.0 202.5 228.0 268.0 306.0 338.0 342.5 400.5 425.5 [3,] 125.0 140.5 171.5 193.5 232.0 234.5 276.0 316.0 351.5 361.0 412.0 461.0 [4,] 135.5 153.5 181.0 213.5 240.0 261.5 313.5 364.5 413.0 419.5 467.5 521.5 [5,] 148.0 170.0 199.0 242.0 272.0 302.0 364.0 413.0 467.0 505.0 559.0 622.0 $n [1] 12 12 12 12 12 12 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 117.0181 129.5534 163.0620 179.1326 214.896 219.2204 255.2471 289.3178 [2,] 132.9819 151.4466 179.9380 207.8674 249.104 249.7796 296.7529 342.6822 [,9] [,10] [,11] [,12] [1,] 317.292 325.8798 381.4409 415.2668 [2,] 385.708 396.1202 442.5591 506.7332 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(104, 118, 125, 135.5, 148, 114, 129.5, 140.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6glls1218545625.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,] 89.61940 273.0 132.750 [2,] 98.73543 294.5 146.625 [3,] 109.05990 337.0 169.875 [4,] 129.08700 386.0 209.250 [5,] 156.82725 474.0 249.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 95.21635 295.2662 141.3113 [2,] 122.90345 378.7338 198.4387 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(89.6193972510213, 98.7354344808184, 109.059901339699, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1h8eb1218545625.ps tmp/1h8eb1218545625.png") > system("convert tmp/2531v1218545625.ps tmp/2531v1218545625.png") > system("convert tmp/3us711218545625.ps tmp/3us711218545625.png") > system("convert tmp/4x4o81218545625.ps tmp/4x4o81218545625.png") > system("convert tmp/5bflf1218545625.ps tmp/5bflf1218545625.png") > system("convert tmp/6glls1218545625.ps tmp/6glls1218545625.png") > > > proc.time() user system elapsed 2.311 1.335 2.535