R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(112,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] 144 > (np <- floor(n / par1)) [1] 12 > 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 12 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 112 115 145 171 196 204 242 284 315 340 360 417 NA [2,] 118 126 150 180 196 188 233 277 301 318 342 391 NA [3,] 132 141 178 193 236 235 267 317 356 362 406 419 NA [4,] 129 135 163 181 235 227 269 313 348 348 396 461 NA [5,] 121 125 172 183 229 234 270 318 355 363 420 472 NA [6,] 135 149 178 218 243 264 315 374 422 435 472 535 NA [7,] 148 170 199 230 264 302 364 413 465 491 548 622 NA [8,] 148 170 199 242 272 293 347 405 467 505 559 606 NA [9,] 136 158 184 209 237 259 312 355 404 404 463 508 NA [10,] 119 133 162 191 211 229 274 306 347 359 407 461 NA [11,] 104 114 146 172 180 203 237 271 305 310 362 390 NA [12,] 118 140 166 194 201 229 278 306 336 337 405 432 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/wessaorg/rcomp/tmp/1tpn51323164708.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2fq4k1323164708.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3wjew1323164708.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4mz9o1323164708.ps",horizontal=F,onefile=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,] 112.0 118.0 132.0 129 121.0 135.0 148.0 148.0 136.0 119.0 104.0 118.0 [2,] 158.0 165.0 185.5 172 177.5 198.0 214.5 220.5 196.5 176.5 159.0 180.0 [3,] 223.0 214.5 251.5 252 252.0 289.5 333.0 320.0 285.5 251.5 220.0 253.5 [4,] 327.5 309.5 359.0 348 359.0 428.5 478.0 486.0 404.0 353.0 307.5 336.5 [5,] 417.0 391.0 419.0 461 472.0 535.0 622.0 606.0 508.0 461.0 390.0 432.0 $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 145.6899 148.5926 172.3655 171.7252 169.2166 184.3674 212.8159 198.9037 [2,] 300.3101 280.4074 330.6345 332.2748 334.7834 394.6326 453.1841 441.0963 [,9] [,10] [,11] [,12] [1,] 190.8579 170.9972 152.2682 182.1193 [2,] 380.1421 332.0028 287.7318 324.8807 $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(112, 158, 223, 327.5, 417, 118, 165, 214.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/52pqy1323164708.ps",horizontal=F,onefile=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 145 171.0 180.0 188.0 233.0 271.0 301.0 310.0 342.0 390.0 [2,] 118.0 125.5 156 180.5 198.5 215.5 254.5 295.0 325.5 338.5 379.0 418.0 [3,] 125.0 137.5 169 192.0 232.0 231.5 272.0 315.0 351.5 360.5 406.5 461.0 [4,] 135.5 153.5 181 213.5 240.0 261.5 313.5 364.5 413.0 419.5 467.5 521.5 [5,] 148.0 170.0 199 242.0 272.0 302.0 364.0 413.0 467.0 505.0 559.0 622.0 [,13] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 117.0181 124.729 157.5973 176.9485 213.0716 210.5191 245.0897 283.3006 [2,] 132.9819 150.271 180.4027 207.0515 250.9284 252.4809 298.9103 346.6994 [,9] [,10] [,11] [,12] [,13] [1,] 311.5907 323.5554 366.1346 413.793 NA [2,] 391.4093 397.4446 446.8654 508.207 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" NA Warning message: In bxp(list(stats = c(104, 118, 125, 135.5, 148, 114, 125.5, 137.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/62p6r1323164708.ps",horizontal=F,onefile=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.6194 273 132.750 [2,] 100.7961 296 153.000 [3,] 109.0599 337 169.875 [4,] 129.0870 386 209.250 [5,] 156.8273 474 249.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 96.15622 295.9504 144.219 [2,] 121.96358 378.0496 195.531 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(89.6193972510213, 100.796077252023, 109.059901339699, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1tpn51323164708.ps tmp/1tpn51323164708.png",intern=TRUE)) character(0) > try(system("convert tmp/2fq4k1323164708.ps tmp/2fq4k1323164708.png",intern=TRUE)) character(0) > try(system("convert tmp/3wjew1323164708.ps tmp/3wjew1323164708.png",intern=TRUE)) character(0) > try(system("convert tmp/4mz9o1323164708.ps tmp/4mz9o1323164708.png",intern=TRUE)) character(0) > try(system("convert tmp/52pqy1323164708.ps tmp/52pqy1323164708.png",intern=TRUE)) character(0) > try(system("convert tmp/62p6r1323164708.ps tmp/62p6r1323164708.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.379 0.292 1.678