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,350,343,346,373,363,349,350,353,356,355,346,349,348,342,342,379,375,363,361,363,373,367,360,358,367,357,346,386,383,367,354,363,370,361,354,363,366,353,351,389,385,364,348,347,352,342,338,343,354,329,320,353,345,324,310,314,313,310,301,294,296,274,269,292,287,271,256,260,265,263,256,246,245,220,224,240,238,222,203,209,214,216,214,206,196,169,177,193,183,164,142,141,137,140,146,136,124,105,114,135,123,100,74,64,57,62,64) > 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 349 358 363 343 294 246 206 136 NA [2,] 355 350 348 367 366 354 296 245 196 124 NA [3,] 354 343 342 357 353 329 274 220 169 105 NA [4,] 352 346 342 346 351 320 269 224 177 114 NA [5,] 372 373 379 386 389 353 292 240 193 135 NA [6,] 371 363 375 383 385 345 287 238 183 123 NA [7,] 356 349 363 367 364 324 271 222 164 100 NA [8,] 346 350 361 354 348 310 256 203 142 74 NA [9,] 347 353 363 363 347 314 260 209 141 64 NA [10,] 347 356 373 370 352 313 265 214 137 57 NA [11,] 348 355 367 361 342 310 263 216 140 62 NA [12,] 350 346 360 354 338 301 256 214 146 64 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/1taah1281447962.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/2taah1281447962.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/3mkrk1281447962.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/4mkrk1281447962.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,] 136 124 105.0 114 135.0 123 100.0 74 64.0 57 62 64.0 [2,] 246 245 220.0 224 240.0 238 222.0 203 209.0 214 216 214.0 [3,] 346 349 335.5 331 362.5 354 336.5 328 330.5 330 326 319.5 [4,] 356 355 353.0 346 379.0 375 363.0 350 353.0 356 355 350.0 [5,] 363 367 357.0 352 389.0 385 367.0 361 363.0 373 367 360.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 291.0396 294.0396 269.0479 270.0439 293.0501 285.5493 266.0508 254.5529 [2,] 400.9604 403.9604 401.9521 391.9561 431.9499 422.4507 406.9492 401.4471 [,9] [,10] [,11] [,12] [1,] 258.5519 259.0511 256.5501 251.549 [2,] 402.4481 400.9489 395.4499 387.451 $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(136, 246, 346, 356, 363, 124, 245, 349, 355, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5mkrk1281447962.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 343.0 342.0 346.0 338.0 301.0 256.0 203 137.0 57.0 NA [2,] 347.5 347.5 348.5 355.5 347.5 311.5 261.5 214 141.5 64.0 NA [3,] 353.0 351.5 362.0 362.0 352.5 322.0 270.0 221 166.5 102.5 NA [4,] 356.0 355.5 370.0 368.5 365.0 344.0 289.5 239 188.0 123.5 NA [5,] 356.0 363.0 379.0 386.0 389.0 354.0 296.0 246 206.0 136.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,] 349.1231 347.8511 352.1937 356.0706 344.5181 307.1765 257.229 209.5973 [2,] 356.8769 355.1489 371.8063 367.9294 360.4819 336.8235 282.771 232.4027 [,9] [,10] [,11] [1,] 145.2910 75.36165 NA [2,] 187.7090 129.63835 NA $out [1] 372 371 373 $group [1] 1 1 2 $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, 343, 347.5, 351.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wtrn1281447962.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,] 79.02911 227.0 97.000 [2,] 87.82780 247.5 113.875 [3,] 94.91430 264.5 124.500 [4,] 104.06846 297.5 127.625 [5,] 109.55486 316.0 133.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 87.50683 241.6947 118.2285 [2,] 102.32178 287.3053 130.7715 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(79.0291085613396, 87.827799583077, 94.9143048534644, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1taah1281447962.ps tmp/1taah1281447962.png",intern=TRUE)) character(0) > try(system("convert tmp/2taah1281447962.ps tmp/2taah1281447962.png",intern=TRUE)) character(0) > try(system("convert tmp/3mkrk1281447962.ps tmp/3mkrk1281447962.png",intern=TRUE)) character(0) > try(system("convert tmp/4mkrk1281447962.ps tmp/4mkrk1281447962.png",intern=TRUE)) character(0) > try(system("convert tmp/5mkrk1281447962.ps tmp/5mkrk1281447962.png",intern=TRUE)) character(0) > try(system("convert tmp/6wtrn1281447962.ps tmp/6wtrn1281447962.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.047 0.815 1.880