R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(159,158,157,155,175,174,159,149,150,150,151,153,146,156,154,151,171,167,144,138,138,132,132,132,125,131,129,131,145,156,126,123,127,116,114,114,109,110,113,114,138,155,126,123,124,124,134,131,126,128,128,124,148,174,146,137,152,159,170,166,165,168,175,180,199,228,206,193,201,214,225,224,215,222,238,248,262,288,261,240,248,260,266,268,256,261,287,295,304,331,299,275,293,309,311,311,289,298,319,325,331,348,320,305,322,337,346,343,321,331,343,345,347,363,322,304,323,340,352,351) > 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,] 159 146 125 109 126 165 215 256 289 321 NA [2,] 158 156 131 110 128 168 222 261 298 331 NA [3,] 157 154 129 113 128 175 238 287 319 343 NA [4,] 155 151 131 114 124 180 248 295 325 345 NA [5,] 175 171 145 138 148 199 262 304 331 347 NA [6,] 174 167 156 155 174 228 288 331 348 363 NA [7,] 159 144 126 126 146 206 261 299 320 322 NA [8,] 149 138 123 123 137 193 240 275 305 304 NA [9,] 150 138 127 124 152 201 248 293 322 323 NA [10,] 150 132 116 124 159 214 260 309 337 340 NA [11,] 151 132 114 134 170 225 266 311 346 352 NA [12,] 153 132 114 131 166 224 268 311 343 351 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/rcomp/tmp/1pm2p1282230621.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/rcomp/tmp/20v1s1282230621.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/rcomp/tmp/30v1s1282230621.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/rcomp/tmp/4a4iv1282230621.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,] 109 110 113 114.0 138 155 126.0 123 124.0 116.0 114.0 114 [2,] 126 131 129 131.0 148 167 144.0 137 138.0 132.0 134.0 132 [3,] 162 163 166 167.5 187 201 182.5 171 176.5 186.5 197.5 195 [4,] 256 261 287 295.0 304 331 299.0 275 293.0 309.0 311.0 311 [5,] 321 331 343 345.0 347 363 322.0 305 323.0 340.0 352.0 351 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 97.04682 98.04682 87.0569 85.55906 109.0562 119.0591 105.0558 102.0497 [2,] 226.95318 227.95318 244.9431 249.44094 264.9438 282.9409 259.9442 239.9503 [,9] [,10] [,11] [,12] [1,] 99.05582 98.06374 109.0637 105.5645 [2,] 253.94418 274.93626 285.9363 284.4355 $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(109, 126, 162, 256, 321, 110, 131, 163, 261, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5a4iv1282230621.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,] 149.0 132 114.0 109.0 124.0 165.0 215 256 289.0 304.0 NA [2,] 150.5 135 119.5 113.5 128.0 177.5 239 281 312.0 322.5 NA [3,] 156.0 145 126.5 124.0 147.0 200.0 254 297 323.5 341.5 NA [4,] 159.0 155 131.0 132.5 162.5 219.0 264 310 340.0 349.0 NA [5,] 159.0 171 145.0 155.0 174.0 228.0 288 331 348.0 363.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,] 152.1231 135.8779 121.2548 115.3340 131.2643 181.0716 242.5973 283.7729 [2,] 159.8769 154.1221 131.7452 132.6660 162.7357 218.9284 265.4027 310.2271 [,9] [,10] [,11] [1,] 310.729 329.4132 NA [2,] 336.271 353.5868 NA $out [1] 175 174 156 $group [1] 1 1 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(149, 150.5, 156, 159, 159, 132, 135, 145, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6a4iv1282230621.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.78480 182.0 114.000 [2,] 79.28564 203.5 134.250 [3,] 83.69846 216.5 142.875 [4,] 89.42725 230.5 155.875 [5,] 92.71156 238.0 163.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 79.07280 204.1851 133.0117 [2,] 88.32412 228.8149 152.7383 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(74.7848023776667, 79.2856367165718, 83.6984577506557, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1pm2p1282230621.ps tmp/1pm2p1282230621.png",intern=TRUE)) character(0) > try(system("convert tmp/20v1s1282230621.ps tmp/20v1s1282230621.png",intern=TRUE)) character(0) > try(system("convert tmp/30v1s1282230621.ps tmp/30v1s1282230621.png",intern=TRUE)) character(0) > try(system("convert tmp/4a4iv1282230621.ps tmp/4a4iv1282230621.png",intern=TRUE)) character(0) > try(system("convert tmp/5a4iv1282230621.ps tmp/5a4iv1282230621.png",intern=TRUE)) character(0) > try(system("convert tmp/6a4iv1282230621.ps tmp/6a4iv1282230621.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.640 1.360 3.012