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(36,35,34,32,52,51,36,26,27,27,28,30,28,29,25,28,55,53,42,32,37,41,37,38,39,32,36,39,83,83,66,53,72,77,69,72,81,71,63,66,114,116,109,97,111,120,110,106,115,110,103,112,163,166,156,140,166,176,163,162,171,167,163,168,222,216,197,178,204,220,196,195,213,218,216,225,280,272,252,230,248,259,240,237,252,250,255,255,313,291,271,247,268,283,259,259,267,270,279,269,334,326,301,276,301,313,291,287,289,298,320,312,385,380,351,322,350,363,344,345) > 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,] 36 28 39 81 115 171 213 252 267 289 NA [2,] 35 29 32 71 110 167 218 250 270 298 NA [3,] 34 25 36 63 103 163 216 255 279 320 NA [4,] 32 28 39 66 112 168 225 255 269 312 NA [5,] 52 55 83 114 163 222 280 313 334 385 NA [6,] 51 53 83 116 166 216 272 291 326 380 NA [7,] 36 42 66 109 156 197 252 271 301 351 NA [8,] 26 32 53 97 140 178 230 247 276 322 NA [9,] 27 37 72 111 166 204 248 268 301 350 NA [10,] 27 41 77 120 176 220 259 283 313 363 NA [11,] 28 37 69 110 163 196 240 259 291 344 NA [12,] 30 38 72 106 162 195 237 259 287 345 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/1njhi1281964993.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/2njhi1281964993.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/3gbhl1281964993.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/4gbhl1281964993.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,] 28 29.0 25 28 52.0 51 36.0 26 27 27 28.0 30.0 [2,] 39 35.0 36 39 83.0 83 66.0 53 72 77 69.0 72.0 [3,] 143 138.5 133 140 192.5 191 176.5 159 185 198 179.5 178.5 [4,] 252 250.0 255 255 313.0 291 271.0 247 268 283 259.0 259.0 [5,] 289 298.0 320 312 385.0 380 351.0 322 350 363 344.0 345.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 36.57671 31.07743 23.57887 32.07779 77.58283 87.0749 74.07383 [2,] 249.42329 245.92257 242.42113 247.92221 307.41717 294.9251 278.92617 [,8] [,9] [,10] [,11] [,12] [1,] 62.06987 87.07059 95.07419 84.56842 85.06734 [2,] 255.93013 282.92941 300.92581 274.43158 271.93266 $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(28, 39, 143, 252, 289, 29, 35, 138.5, 250, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/592yo1281964993.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,] 26.0 25.0 32.0 63.0 103.0 163.0 213.0 247.0 267 289.0 NA [2,] 27.5 28.5 39.0 76.0 113.5 169.5 221.5 253.5 273 316.0 NA [3,] 33.0 37.0 67.5 107.5 159.0 195.5 238.5 259.0 289 344.5 NA [4,] 36.0 41.5 74.5 112.5 164.5 210.0 255.5 277.0 307 357.0 NA [5,] 36.0 55.0 83.0 120.0 176.0 222.0 280.0 291.0 334 385.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,] 29.12309 31.07061 51.30821 90.8521 135.7386 177.0277 222.9924 248.2815 [2,] 36.87691 42.92939 83.69179 124.1479 182.2614 213.9723 254.0076 269.7185 [,9] [,10] [,11] [1,] 273.4924 325.7996 NA [2,] 304.5076 363.2004 NA $out [1] 52 51 313 $group [1] 1 1 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(26, 27.5, 33, 36, 36, 25, 28.5, 37, 41.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/692yo1281964993.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,] 102.1996 261.0 173.000 [2,] 107.9178 289.5 180.000 [3,] 111.2836 315.0 191.125 [4,] 116.1449 326.0 199.875 [5,] 123.4760 336.0 214.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 107.5312 298.3521 182.0599 [2,] 115.0360 331.6479 200.1901 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(102.199641225724, 107.917843601415, 111.283586304283, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1njhi1281964993.ps tmp/1njhi1281964993.png",intern=TRUE)) character(0) > try(system("convert tmp/2njhi1281964993.ps tmp/2njhi1281964993.png",intern=TRUE)) character(0) > try(system("convert tmp/3gbhl1281964993.ps tmp/3gbhl1281964993.png",intern=TRUE)) character(0) > try(system("convert tmp/4gbhl1281964993.ps tmp/4gbhl1281964993.png",intern=TRUE)) character(0) > try(system("convert tmp/592yo1281964993.ps tmp/592yo1281964993.png",intern=TRUE)) character(0) > try(system("convert tmp/692yo1281964993.ps tmp/692yo1281964993.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.042 0.813 1.352