R version 2.9.0 (2009-04-17) 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(41,39,50,40,43,38,44,35,39,35,29,49,50,59,63,32,47,53,60,57,52,70,90,74,62,55,84,94,70,108,139,120,97,126,149,158,124,140,109,114,77,120,133,110,92,97,78,99,107,112,90,98,125,155,190,236,189,174,178,136,161,171,149,184,155,276,224,213,279,268,287,238,213,257,293,212,246,353,339,308,247,257,322,298,273,312,249,286,279,309,401,309,328,353,354,327,324,285,243,241,287,355,460,364,487,452,391,500,451,375,372,302,316,398,394,431,431) > 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] 117 > (np <- floor(n / par1)) [1] 9 > 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 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 41 50 62 124 107 161 213 273 324 451 [2,] 39 59 55 140 112 171 257 312 285 375 [3,] 50 63 84 109 90 149 293 249 243 372 [4,] 40 32 94 114 98 184 212 286 241 302 [5,] 43 47 70 77 125 155 246 279 287 316 [6,] 38 53 108 120 155 276 353 309 355 398 [7,] 44 60 139 133 190 224 339 401 460 394 [8,] 35 57 120 110 236 213 308 309 364 431 [9,] 39 52 97 92 189 279 247 328 487 431 [10,] 35 70 126 97 174 268 257 353 452 NA [11,] 29 90 149 78 178 287 322 354 391 NA [12,] 49 74 158 99 136 238 298 327 500 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/1yank1244029189.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/2pkqu1244029189.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/3qd8b1244029189.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/4ipn01244029189.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,] 41.0 39.0 50 32 43 38.0 44 35.0 39 35 29 49 [2,] 62.0 59.0 84 94 70 108.0 133 110.0 92 97 90 99 [3,] 142.5 155.5 129 149 140 215.5 207 224.5 218 174 178 158 [4,] 273.0 285.0 249 241 279 353.0 394 309.0 328 268 322 298 [5,] 451.0 375.0 372 302 316 398.0 460 431.0 487 452 391 500 $n [1] 10 10 10 10 10 10 10 10 10 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 37.07599 42.58139 46.55942 75.55294 35.57527 93.08823 76.594 [2,] 247.92401 268.41861 211.44058 222.44706 244.42473 337.91177 337.406 [,8] [,9] [,10] [,11] [,12] [1,] 125.0717 100.085 83.94 55.81333 53.19333 [2,] 323.9283 335.915 264.06 300.18667 262.80667 $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(41, 62, 142.5, 273, 451, 39, 59, 155.5, 285, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5f6wz1244029189.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] [1,] 29.0 32.0 55.0 77.0 90.0 149.0 212.0 249.0 241.0 302 [2,] 36.5 51.0 77.0 94.5 109.5 166.0 246.5 282.5 286.0 372 [3,] 39.5 58.0 102.5 109.5 145.5 218.5 275.0 310.5 359.5 394 [4,] 43.5 66.5 132.5 122.0 183.5 272.0 315.0 340.5 456.0 431 [5,] 50.0 74.0 158.0 140.0 236.0 287.0 353.0 401.0 500.0 451 $n [1] 12 12 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 36.30725 50.93035 77.18608 96.95707 111.7481 170.1527 243.7567 284.0458 [2,] 42.69275 65.06965 127.81392 122.04293 179.2519 266.8473 306.2433 336.9542 [,9] [,10] [1,] 281.9619 362.9267 [2,] 437.0381 425.0733 $out [1] 90 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(29, 36.5, 39.5, 43.5, 50, 32, 51, 58, 66.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6brhg1244029189.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,] 98.30796 270.0 138.750 [2,] 115.43187 329.0 177.875 [3,] 134.77829 379.0 199.000 [4,] 142.87057 416.5 226.750 [5,] 158.10506 451.0 245.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 122.2633 339.0907 176.7078 [2,] 147.2933 418.9093 221.2922 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(98.3079628288348, 115.431873004939, 134.778291427355, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1yank1244029189.ps tmp/1yank1244029189.png") > system("convert tmp/2pkqu1244029189.ps tmp/2pkqu1244029189.png") > system("convert tmp/3qd8b1244029189.ps tmp/3qd8b1244029189.png") > system("convert tmp/4ipn01244029189.ps tmp/4ipn01244029189.png") > system("convert tmp/5f6wz1244029189.ps tmp/5f6wz1244029189.png") > system("convert tmp/6brhg1244029189.ps tmp/6brhg1244029189.png") > > > proc.time() user system elapsed 1.030 0.788 1.370