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(591000,589000,584000,573000,567000,569000,621000,629000,628000,612000,595000,597000,593000,590000,580000,574000,573000,573000,620000,626000,620000,588000,566000,557000,561000,549000,532000,526000,511000,499000,555000,565000,542000,527000,510000,514000,517000,508000,493000,490000,469000,478000,528000,534000,518000,506000,502000,516000,528000,533000,536000,537000,524000,536000,587000,597000,581000,564000,558000,575000) > 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,] 591000 593000 561000 517000 528000 NA [2,] 589000 590000 549000 508000 533000 NA [3,] 584000 580000 532000 493000 536000 NA [4,] 573000 574000 526000 490000 537000 NA [5,] 567000 573000 511000 469000 524000 NA [6,] 569000 573000 499000 478000 536000 NA [7,] 621000 620000 555000 528000 587000 NA [8,] 629000 626000 565000 534000 597000 NA [9,] 628000 620000 542000 518000 581000 NA [10,] 612000 588000 527000 506000 564000 NA [11,] 595000 566000 510000 502000 558000 NA [12,] 597000 557000 514000 516000 575000 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/1hjf91291655873.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/html/rcomp/tmp/2sbxc1291655873.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/html/rcomp/tmp/3sbxc1291655873.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/html/rcomp/tmp/422wf1291655873.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] [1,] 517000 508000 493000 490000 469000 478000 528000 534000 518000 506000 [2,] 528000 533000 532000 526000 511000 499000 555000 565000 542000 527000 [3,] 561000 549000 536000 537000 524000 536000 587000 597000 581000 564000 [4,] 591000 589000 580000 573000 567000 569000 620000 626000 620000 588000 [5,] 593000 590000 584000 574000 573000 573000 621000 629000 628000 612000 [,11] [,12] [1,] 502000 514000 [2,] 510000 516000 [3,] 558000 557000 [4,] 566000 575000 [5,] 595000 597000 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 516484.4 509430.5 502083.3 503789.9 484430.5 486538.2 541071.2 553897.6 [2,] 605515.6 588569.5 569916.7 570210.1 563569.5 585461.8 632928.8 640102.4 [,9] [,10] [,11] [,12] [1,] 525885.4 520897.6 518430.5 515310.7 [2,] 636114.6 607102.4 597569.5 598689.3 $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(517000, 528000, 561000, 591000, 593000, 508000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/522wf1291655873.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] [1,] 567000 557000 499000 469000 524000 NA [2,] 578500 573000 512500 491500 534500 NA [3,] 593000 584000 529500 507000 547500 NA [4,] 616500 606500 552000 517500 578000 NA [5,] 629000 626000 565000 534000 597000 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 575668 568720.4 511483.8 495141.2 527659.4 NA [2,] 610332 599279.6 547516.2 518858.8 567340.6 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(567000, 578500, 593000, 616500, 629000, 557000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vbv01291655873.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,] 35014.28 76000 47000 [2,] 36091.00 83500 56000 [3,] 39999.45 93000 60000 [4,] 42416.98 99500 64000 [5,] 47876.93 110000 70000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 37114.12 85702.3 56351.15 [2,] 42884.77 100297.7 63648.85 $out [1] 78000 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(35014.2828000232, 36090.9972601156, 39999.445015091, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1hjf91291655873.ps tmp/1hjf91291655873.png",intern=TRUE)) character(0) > try(system("convert tmp/2sbxc1291655873.ps tmp/2sbxc1291655873.png",intern=TRUE)) character(0) > try(system("convert tmp/3sbxc1291655873.ps tmp/3sbxc1291655873.png",intern=TRUE)) character(0) > try(system("convert tmp/422wf1291655873.ps tmp/422wf1291655873.png",intern=TRUE)) character(0) > try(system("convert tmp/522wf1291655873.ps tmp/522wf1291655873.png",intern=TRUE)) character(0) > try(system("convert tmp/6vbv01291655873.ps tmp/6vbv01291655873.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.062 0.823 2.892