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(412,602,613,482,241,277,252,383,506,366,473,581,688,792,761,592,251,162,183,164,223,237,567,778,888,1118,1275,419,324,197,172,220,98,122,303,750,745,293,534,318,72,67,256,82,337,596,1152,1028,1011,823,1545,1211,593,348,341,340,589,1095,788,432) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 412 688 888 745 1011 NA [2,] 602 792 1118 293 823 NA [3,] 613 761 1275 534 1545 NA [4,] 482 592 419 318 1211 NA [5,] 241 251 324 72 593 NA [6,] 277 162 197 67 348 NA [7,] 252 183 172 256 341 NA [8,] 383 164 220 82 340 NA [9,] 506 223 98 337 589 NA [10,] 366 237 122 596 1095 NA [11,] 473 567 303 1152 788 NA [12,] 581 778 750 1028 432 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/1l7sd1258111253.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/2wp7b1258111253.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/3m0m41258111253.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/4j1701258111253.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,] 412 293 534 318 241 67 172 82 98 122 303 432 [2,] 688 602 613 419 241 162 183 164 223 237 473 581 [3,] 745 792 761 482 251 197 252 220 337 366 567 750 [4,] 888 823 1275 592 324 277 256 340 506 596 788 778 [5,] 1011 1118 1545 592 324 348 341 383 589 1095 1152 1028 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 603.6805 635.842 293.2325 359.7586 192.3524 115.7413 200.4184 95.63884 [2,] 886.3195 948.158 1228.7675 604.2414 309.6476 278.2587 303.5816 344.36116 [,9] [,10] [,11] [,12] [1,] 137.0329 112.3315 344.4218 610.8003 [2,] 536.9671 619.6685 789.5782 889.1997 $out [1] 1211 72 593 $group [1] 4 5 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(412, 688, 745, 888, 1011, 293, 602, 792, 823, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58keb1258111253.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] [1,] 241.0 162.0 98.0 67.0 340.0 NA [2,] 321.5 203.0 184.5 169.0 390.0 NA [3,] 442.5 409.0 313.5 327.5 690.5 NA [4,] 543.5 724.5 819.0 670.5 1053.0 NA [5,] 613.0 792.0 1275.0 1152.0 1545.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 341.2443 171.1403 24.10029 98.76248 388.1012 NA [2,] 543.7557 646.8597 602.89971 556.23752 992.8988 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(241, 321.5, 442.5, 543.5, 613, 162, 203, 409, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66h7w1258111253.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,] 67.95366 169.0 73.0 [2,] 156.97101 396.0 144.0 [3,] 225.40558 597.5 198.5 [4,] 340.52025 871.0 299.0 [5,] 442.12532 1011.0 359.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 141.6875 380.8493 127.8035 [2,] 309.1236 814.1507 269.1965 $out [1] 662 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(67.953660681379, 156.971013617655, 225.405582095211, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1l7sd1258111253.ps tmp/1l7sd1258111253.png") > system("convert tmp/2wp7b1258111253.ps tmp/2wp7b1258111253.png") > system("convert tmp/3m0m41258111253.ps tmp/3m0m41258111253.png") > system("convert tmp/4j1701258111253.ps tmp/4j1701258111253.png") > system("convert tmp/58keb1258111253.ps tmp/58keb1258111253.png") > system("convert tmp/66h7w1258111253.ps tmp/66h7w1258111253.png") > > > proc.time() user system elapsed 1.036 0.802 1.373