R version 2.7.0 (2008-04-22) Copyright (C) 2008 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(565464,547344,554788,562325,560854,555332,543599,536662,542722,593530,610763,612613,611324,594167,595454,590865,589379,584428,573100,567456,569028,620735,628884,628232,612117,595404,597141,593408,590072,579799,574205,572775,572942,619567,625809,619916,587625,565742,557274,560576,548854,531673,525919,511038,498662,555362,564591,541657,527070,509846,514258,516922,507561,492622,490243,469357,477580,528379,533590,517945) > 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,] 565464 611324 612117 587625 527070 NA [2,] 547344 594167 595404 565742 509846 NA [3,] 554788 595454 597141 557274 514258 NA [4,] 562325 590865 593408 560576 516922 NA [5,] 560854 589379 590072 548854 507561 NA [6,] 555332 584428 579799 531673 492622 NA [7,] 543599 573100 574205 525919 490243 NA [8,] 536662 567456 572775 511038 469357 NA [9,] 542722 569028 572942 498662 477580 NA [10,] 593530 620735 619567 555362 528379 NA [11,] 610763 628884 625809 564591 533590 NA [12,] 612613 628232 619916 541657 517945 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/16jf41229616456.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/2xxdz1229616456.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/3e50o1229616456.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/4v2sg1229616456.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] [1,] 527070 509846 514258 516922 507561 492622 490243 469357 477580 528379 [2,] 565464 547344 554788 560576 548854 531673 525919 511038 498662 555362 [3,] 587625 565742 557274 562325 560854 555332 543599 536662 542722 593530 [4,] 611324 594167 595454 590865 589379 579799 573100 567456 569028 619567 [5,] 612117 595404 597141 593408 590072 584428 574205 572775 572942 620735 [,11] [,12] [1,] 533590 517945 [2,] 564591 541657 [3,] 610763 612613 [4,] 625809 619916 [5,] 628884 628232 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 555220.4 532657 528539.5 540922.9 532219.1 521326.3 510261 496797.2 [2,] 620029.6 598827 586008.5 583727.1 589488.9 589337.7 576937 576526.8 [,9] [,10] [,11] [,12] [1,] 493001.6 548162.9 567506.5 557315.4 [2,] 592442.4 638897.1 654019.5 667910.6 $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(527070, 565464, 587625, 611324, 612117, 509846, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gnmy1229616456.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,] 536662.0 567456.0 572775 498662.0 469357.0 NA [2,] 545471.5 578764.0 577002 528796.0 491432.5 NA [3,] 558093.0 592516.0 594406 552108.0 512052.0 NA [4,] 579497.0 616029.5 615842 562583.5 522507.5 NA [5,] 612613.0 628884.0 625809 587625.0 533590.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 542573.7 575519 576690.8 536697.3 497878.5 NA [2,] 573612.3 609513 612121.2 567518.7 526225.5 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(536662, 545471.5, 558093, 579497, 612613, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ftg61229616456.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,] 30879.08 76486.0 30289.0 [2,] 34700.09 83422.5 43263.0 [3,] 36761.70 88682.0 47653.5 [4,] 42204.99 95328.0 62711.5 [5,] 50550.22 110287.0 78259.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 33338.67 83251.82 38782.91 [2,] 40184.73 94112.18 56524.09 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(30879.0816362793, 34700.0930748389, 36761.6991391145, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/16jf41229616456.ps tmp/16jf41229616456.png") > system("convert tmp/2xxdz1229616456.ps tmp/2xxdz1229616456.png") > system("convert tmp/3e50o1229616456.ps tmp/3e50o1229616456.png") > system("convert tmp/4v2sg1229616456.ps tmp/4v2sg1229616456.png") > system("convert tmp/5gnmy1229616456.ps tmp/5gnmy1229616456.png") > system("convert tmp/6ftg61229616456.ps tmp/6ftg61229616456.png") > > > proc.time() user system elapsed 2.314 1.342 2.517