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(356,355,354,352,372,371,356,346,347,347,348,350,353,351,348,351,370,370,351,335,330,328,332,334,343,334,336,343,365,364,351,326,320,312,315,316,319,311,315,322,336,339,317,295,291,283,285,289,296,283,285,289,306,306,283,258,255,248,244,249,258,252,246,249,267,284,261,235,229,218,218,229,237,231,229,233,245,256,224,194,192,178,170,187,192,182,178,186,204,224,194,173,178,168,152,163,172,170,156,155,178,194,164,135,139,135,109,121,131,135,119,121,151,169,135,105,112,105,82,81) > 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,] 356 353 343 319 296 258 237 192 172 131 NA [2,] 355 351 334 311 283 252 231 182 170 135 NA [3,] 354 348 336 315 285 246 229 178 156 119 NA [4,] 352 351 343 322 289 249 233 186 155 121 NA [5,] 372 370 365 336 306 267 245 204 178 151 NA [6,] 371 370 364 339 306 284 256 224 194 169 NA [7,] 356 351 351 317 283 261 224 194 164 135 NA [8,] 346 335 326 295 258 235 194 173 135 105 NA [9,] 347 330 320 291 255 229 192 178 139 112 NA [10,] 347 328 312 283 248 218 178 168 135 105 NA [11,] 348 332 315 285 244 218 170 152 109 82 NA [12,] 350 334 316 289 249 229 187 163 121 81 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/1fl5k1282042595.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/2punn1282042595.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/3punn1282042595.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/4punn1282042595.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,] 131 135.0 119.0 121 151.0 169 135 105.0 112 105 82 81 [2,] 192 182.0 178.0 186 204.0 224 194 173.0 178 168 152 163 [3,] 277 267.5 265.5 269 286.5 295 272 246.5 242 233 231 239 [4,] 343 334.0 336.0 343 365.0 364 351 326.0 320 312 315 316 [5,] 356 355.0 354.0 352 372.0 371 356 346.0 347 347 348 350 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 201.5544 191.5547 186.5569 190.5565 206.058 225.0504 193.5565 170.0551 [2,] 352.4456 343.4453 344.4431 347.4435 366.942 364.9496 350.4435 322.9449 [,9] [,10] [,11] [,12] [1,] 171.0511 161.0519 149.5587 162.5551 [2,] 312.9489 304.9481 312.4413 315.4449 $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(131, 192, 277, 343, 356, 135, 182, 267.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ilm81282042595.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,] 346.0 328.0 312 283.0 244.0 218.0 170.0 152.0 109.0 81 NA [2,] 347.5 333.0 318 290.0 252.0 229.0 189.5 170.5 135.0 105 NA [3,] 353.0 349.5 335 313.0 283.0 247.5 226.5 180.0 155.5 120 NA [4,] 356.0 352.0 347 320.5 292.5 259.5 235.0 193.0 171.0 135 NA [5,] 356.0 370.0 365 339.0 306.0 284.0 256.0 224.0 194.0 169 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 349.1231 340.834 321.7729 299.0887 264.5277 233.5887 205.7471 169.7376 [2,] 356.8769 358.166 348.2271 326.9113 301.4723 261.4113 247.2529 190.2624 [,9] [,10] [,11] [1,] 139.0802 106.3168 NA [2,] 171.9198 133.6832 NA $out [1] 372 371 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(346, 347.5, 353, 356, 356, 328, 333, 349.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ilm81282042595.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,] 74.86736 202.0 125.750 [2,] 81.19442 221.0 133.875 [3,] 83.74641 233.0 140.000 [4,] 85.59261 241.5 140.625 [5,] 86.20750 269.0 143.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 81.74036 223.6498 136.9213 [2,] 85.75245 242.3502 143.0787 $out [1] 94.83582 92.39943 151.00000 $group [1] 1 1 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(74.8673641997782, 81.1944184951988, 83.7464061680547, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fl5k1282042595.ps tmp/1fl5k1282042595.png",intern=TRUE)) character(0) > try(system("convert tmp/2punn1282042595.ps tmp/2punn1282042595.png",intern=TRUE)) character(0) > try(system("convert tmp/3punn1282042595.ps tmp/3punn1282042595.png",intern=TRUE)) character(0) > try(system("convert tmp/4punn1282042595.ps tmp/4punn1282042595.png",intern=TRUE)) character(0) > try(system("convert tmp/5ilm81282042595.ps tmp/5ilm81282042595.png",intern=TRUE)) character(0) > try(system("convert tmp/6ilm81282042595.ps tmp/6ilm81282042595.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.042 0.815 1.366