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(306,303,344,254,309,310,379,294,356,318,405,545,268,243,273,273,236,222,302,285,309,322,362,471,198,253,173,186,185,105,228,214,189,270,277,378,185,182,258,179,197,168,250,211,260,234,305,347,203,217,227,242,185,175,252,319,202,254,336,431,150,280,187,279,193,227,225,205,259,254,275,394,159,230,188,195,189,220,274) > 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] 79 > (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 7 7 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 306 268 198 185 203 150 159 [2,] 303 243 253 182 217 280 230 [3,] 344 273 173 258 227 187 188 [4,] 254 273 186 179 242 279 195 [5,] 309 236 185 197 185 193 189 [6,] 310 222 105 168 175 227 220 [7,] 379 302 228 250 252 225 274 [8,] 294 285 214 211 319 205 NA [9,] 356 309 189 260 202 259 NA [10,] 318 322 270 234 254 254 NA [11,] 405 362 277 305 336 275 NA [12,] 545 471 378 347 431 394 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/1iq1y1274900688.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/2iq1y1274900688.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/33rlw1274900689.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/43rlw1274900689.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,] 150.0 182.0 173.0 179.0 185.0 105.0 225 205.0 189.0 234 275.0 347.0 [2,] 172.0 223.5 187.5 190.5 187.0 171.5 239 211.0 202.0 254 277.0 378.0 [3,] 198.0 243.0 227.0 242.0 193.0 220.0 252 249.5 259.5 262 320.5 412.5 [4,] 235.5 266.5 265.5 263.5 216.5 224.5 288 294.0 309.0 318 362.0 471.0 [5,] 306.0 303.0 344.0 279.0 236.0 227.0 302 319.0 356.0 322 405.0 545.0 $n [1] 7 7 7 7 7 7 7 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 160.0788 217.3211 180.4197 198.4056 175.3831 188.3493 222.738 195.9623 [2,] 235.9212 268.6789 273.5803 285.5944 210.6169 251.6507 281.262 303.0377 [,9] [,10] [,11] [,12] [1,] 190.4815 220.7179 265.6723 352.512 [2,] 328.5185 303.2821 375.3277 472.488 $out [1] 309 310 379 $group [1] 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(150, 172, 198, 235.5, 306, 182, 223.5, 243, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5w0lh1274900689.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,] 254.0 222.0 105.0 168.0 175.0 150.0 159.0 [2,] 304.5 255.5 185.5 183.5 202.5 199.0 188.5 [3,] 314.0 279.0 206.0 222.5 234.5 240.5 195.0 [4,] 367.5 315.5 261.5 259.0 286.5 277.0 225.0 [5,] 405.0 362.0 277.0 347.0 336.0 394.0 274.0 $n [1] 12 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 285.2653 251.6336 171.3359 188.0639 196.1870 204.9237 173.2028 [2,] 342.7347 306.3664 240.6641 256.9361 272.8130 276.0763 216.7972 $out [1] 545 471 378 431 $group [1] 1 2 3 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(254, 304.5, 314, 367.5, 405, 222, 255.5, 279, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6w0lh1274900689.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,] 36.45637 88.0 29.5 [2,] 44.00740 117.5 50.5 [3,] 52.47873 142.0 67.5 [4,] 62.07401 169.0 78.5 [5,] 71.78208 205.0 80.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 44.23842 118.5105 54.72901 [2,] 60.71903 165.4895 80.27099 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(36.45636661362, 44.0073965995406, 52.4787284407014, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1iq1y1274900688.ps tmp/1iq1y1274900688.png",intern=TRUE)) character(0) > try(system("convert tmp/2iq1y1274900688.ps tmp/2iq1y1274900688.png",intern=TRUE)) character(0) > try(system("convert tmp/33rlw1274900689.ps tmp/33rlw1274900689.png",intern=TRUE)) character(0) > try(system("convert tmp/43rlw1274900689.ps tmp/43rlw1274900689.png",intern=TRUE)) character(0) > try(system("convert tmp/5w0lh1274900689.ps tmp/5w0lh1274900689.png",intern=TRUE)) character(0) > try(system("convert tmp/6w0lh1274900689.ps tmp/6w0lh1274900689.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.019 0.765 1.496