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(154,96,73,49,36,59,95,169,210,278,298,245,200,118,90,79,78,91,167,169,289,347,375,203,223,104,107,85,75,99,135,211,335,460,488,326,346,261,224,141,148,145,223,272,445,560,612,467,518,404,300,210,196,186,247,343,464,680,711,610,613,392,273,322,189,257,324,404,677,858,895,664,628,308,324,248,272) > 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] 77 > (np <- floor(n / par1)) [1] 6 > 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] 7 7 7 7 7 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 154 200 223 346 518 613 628 [2,] 96 118 104 261 404 392 308 [3,] 73 90 107 224 300 273 324 [4,] 49 79 85 141 210 322 248 [5,] 36 78 75 148 196 189 272 [6,] 59 91 99 145 186 257 NA [7,] 95 167 135 223 247 324 NA [8,] 169 169 211 272 343 404 NA [9,] 210 289 335 445 464 677 NA [10,] 278 347 460 560 680 858 NA [11,] 298 375 488 612 711 895 NA [12,] 245 203 326 467 610 664 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/1vxyv1273753906.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/2vxyv1273753906.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/3vxyv1273753906.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/4noyy1273753906.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,] 154.0 96 73.0 49 36.0 59 95 169.0 210 278 298 203.0 [2,] 211.5 111 98.5 82 76.5 91 135 169.0 289 347 375 245.0 [3,] 346.0 261 224.0 141 148.0 122 195 241.5 390 510 550 396.5 [4,] 565.5 350 286.5 229 192.5 186 247 343.0 464 680 711 610.0 [5,] 628.0 404 324.0 322 272.0 257 324 404.0 677 858 895 664.0 $n [1] 7 7 7 7 7 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 134.5969 118.2731 111.7294 53.21397 78.72667 60.72193 122.7564 129.2644 [2,] 557.4031 403.7269 336.2706 228.78603 217.27333 183.27807 267.2436 353.7356 [,9] [,10] [,11] [,12] [1,] 277.1193 295.2042 333.2691 161.0632 [2,] 502.8807 724.7958 766.7309 631.9368 $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(154, 211.5, 346, 565.5, 628, 96, 111, 261, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5noyy1273753906.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] [1,] 36.0 78.0 75.0 141.0 186.0 189.0 248 [2,] 66.0 90.5 101.5 185.5 228.5 297.5 272 [3,] 125.0 168.0 173.0 266.5 373.5 398.0 308 [4,] 227.5 246.0 330.5 456.0 564.0 670.5 324 [5,] 298.0 375.0 488.0 612.0 711.0 895.0 324 $n [1] 12 12 12 12 12 12 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 51.33877 97.0754 68.55156 143.1231 220.4762 227.8722 271.2569 [2,] 198.66123 238.9246 277.44844 389.8769 526.5238 568.1278 344.7431 $out [1] 628 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(36, 66, 125, 227.5, 298, 78, 90.5, 168, 246, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yxfi1273753906.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,] 72.76194 198.0 82.750 [2,] 90.10707 235.5 130.875 [3,] 120.73416 290.5 173.375 [4,] 196.85843 470.5 278.875 [5,] 221.68574 597.0 354.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 72.04415 183.3149 105.8712 [2,] 169.42417 397.6851 240.8788 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(72.7619406008388, 90.107068147323, 120.734157799539, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vxyv1273753906.ps tmp/1vxyv1273753906.png",intern=TRUE)) character(0) > try(system("convert tmp/2vxyv1273753906.ps tmp/2vxyv1273753906.png",intern=TRUE)) character(0) > try(system("convert tmp/3vxyv1273753906.ps tmp/3vxyv1273753906.png",intern=TRUE)) character(0) > try(system("convert tmp/4noyy1273753906.ps tmp/4noyy1273753906.png",intern=TRUE)) character(0) > try(system("convert tmp/5noyy1273753906.ps tmp/5noyy1273753906.png",intern=TRUE)) character(0) > try(system("convert tmp/6yxfi1273753906.ps tmp/6yxfi1273753906.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.048 0.800 1.339