R version 2.12.2 (2011-02-25) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-redhat-linux-gnu (64-bit) 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(41,39,50,40,43,38,44,35,39,35,29,49,50,59,63,32,39,47,53,60,57,52,70,90,74,62,55,84,94,70,108,139,120,97,126,149,158,124,140,109,114,77,120,133,110,92,97,78,99,107,112,90,98,125,155,190,236,189,174,178,136,161,171,149,184,155,276,224,213,279,268,287,238,213,257,293,212,246,353,339,308,247,257,322,298,273,312,249,286,279,309,401,309,328,353,354,327,324,285,243,241,287,355,460,364,487,452,391,500,451,375,372,302,316,398,394,431,431) > 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] 118 > (np <- floor(n / par1)) [1] 9 > 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 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 41 50 74 158 99 136 238 298 327 500 [2,] 39 59 62 124 107 161 213 273 324 451 [3,] 50 63 55 140 112 171 257 312 285 375 [4,] 40 32 84 109 90 149 293 249 243 372 [5,] 43 39 94 114 98 184 212 286 241 302 [6,] 38 47 70 77 125 155 246 279 287 316 [7,] 44 53 108 120 155 276 353 309 355 398 [8,] 35 60 139 133 190 224 339 401 460 394 [9,] 39 57 120 110 236 213 308 309 364 431 [10,] 35 52 97 92 189 279 247 328 487 431 [11,] 29 70 126 97 174 268 257 353 452 NA [12,] 49 90 149 78 178 287 322 354 391 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/wessaorg/rcomp/tmp/1jxqw1304600915.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2933r1304600915.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3l2ou1304600915.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4wyvw1304600915.ps",horizontal=F,onefile=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,] 41 39.0 50.0 32 39 38 44.0 35 39.0 35 29 49 [2,] 74 62.0 63.0 84 94 70 108.0 133 110.0 92 97 90 [3,] 147 142.5 155.5 129 149 140 215.5 207 224.5 218 174 178 [4,] 298 273.0 285.0 249 241 279 353.0 394 309.0 328 268 322 [5,] 500 451.0 375.0 372 302 316 398.0 460 431.0 487 452 391 $n [1] 10 10 10 10 10 10 10 10 10 10 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 35.08067 37.07599 44.57995 46.55942 75.55294 35.57527 93.08823 [2,] 258.91933 247.92401 266.42005 211.44058 222.44706 244.42473 337.91177 [,8] [,9] [,10] [,11] [,12] [1,] 76.594 125.0717 100.085 83.94 55.81333 [2,] 337.406 323.9283 335.915 264.06 300.18667 $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(41, 74, 147, 298, 500, 39, 62, 142.5, 273, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/5hahd1304600915.ps",horizontal=F,onefile=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] [1,] 29.0 32.0 55.0 77.0 90.0 136.0 212 249.0 241.0 302 [2,] 36.5 48.5 72.0 94.5 103.0 158.0 242 282.5 286.0 372 [3,] 39.5 55.0 95.5 112.0 140.0 198.5 257 309.0 341.0 396 [4,] 43.5 61.5 123.0 128.5 183.5 272.0 315 340.5 421.5 431 [5,] 50.0 70.0 149.0 158.0 236.0 287.0 353 401.0 487.0 500 $n [1] 12 12 12 12 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 36.30725 49.07061 72.23856 96.49237 103.2834 146.5038 223.7042 282.5458 [2,] 42.69275 60.92939 118.76144 127.50763 176.7166 250.4962 290.2958 335.4542 [,9] [,10] [1,] 279.1975 366.5212 [2,] 402.8025 425.4788 $out [1] 90 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(29, 36.5, 39.5, 43.5, 50, 32, 48.5, 55, 61.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/60z7k1304600915.ps",horizontal=F,onefile=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,] 96.90207 263.0 138.750 [2,] 116.93339 332.5 177.875 [3,] 134.12443 373.0 200.875 [4,] 144.01867 424.0 226.750 [5,] 158.62958 459.0 245.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 121.7707 331.2662 178.5828 [2,] 146.4782 414.7338 223.1672 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(96.9020696946722, 116.933390842220, 134.124430547197, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1jxqw1304600915.ps tmp/1jxqw1304600915.png",intern=TRUE)) character(0) > try(system("convert tmp/2933r1304600915.ps tmp/2933r1304600915.png",intern=TRUE)) character(0) > try(system("convert tmp/3l2ou1304600915.ps tmp/3l2ou1304600915.png",intern=TRUE)) character(0) > try(system("convert tmp/4wyvw1304600915.ps tmp/4wyvw1304600915.png",intern=TRUE)) character(0) > try(system("convert tmp/5hahd1304600915.ps tmp/5hahd1304600915.png",intern=TRUE)) character(0) > try(system("convert tmp/60z7k1304600915.ps tmp/60z7k1304600915.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 3.86 0.44 4.39