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(90398,90269,90390,88219,87032,87175,92603,93571,94118,92159,89528,89955,89587,89488,88521,86587,85159,84915,91378,92729,92194,89664,86285,86858,87184,86629,85220,84816,84831,84957,90951,92134,91790,86625,83324,82719,83614,81640,78665,77828,75728,72187,79357,81329,77304,75576,72932,74291,74988,73302,70483,69848,66466,67610,75091,76207,73454,72008,71362,74250) > 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,] 90398 89587 87184 83614 74988 NA [2,] 90269 89488 86629 81640 73302 NA [3,] 90390 88521 85220 78665 70483 NA [4,] 88219 86587 84816 77828 69848 NA [5,] 87032 85159 84831 75728 66466 NA [6,] 87175 84915 84957 72187 67610 NA [7,] 92603 91378 90951 79357 75091 NA [8,] 93571 92729 92134 81329 76207 NA [9,] 94118 92194 91790 77304 73454 NA [10,] 92159 89664 86625 75576 72008 NA [11,] 89528 86285 83324 72932 71362 NA [12,] 89955 86858 82719 74291 74250 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/14oz01257694861.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/2lr6f1257694861.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/3plj41257694861.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/4w5wp1257694861.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,] 74988 73302 70483 69848 66466 67610 75091 76207 73454 72008 71362 74250 [2,] 83614 81640 78665 77828 75728 72187 79357 81329 77304 75576 72932 74291 [3,] 87184 86629 85220 84816 84831 84915 90951 92134 91790 86625 83324 82719 [4,] 89587 89488 88521 86587 85159 84957 91378 92729 92194 89664 86285 86858 [5,] 90398 90269 90390 88219 87032 87175 92603 93571 94118 92159 89528 89955 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 82963.5 81083.62 78255.78 78626.91 78167.08 75891.75 82456.99 84078.79 [2,] 91404.5 92174.38 92184.22 91005.09 91494.92 93938.25 99445.01 100189.21 [,9] [,10] [,11] [,12] [1,] 81268.76 76670.45 73888.8 73839.19 [2,] 102311.24 96579.55 92759.2 91598.81 $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(74988, 83614, 87184, 89587, 90398, 73302, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5snaw1257694861.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,] 87032.0 84915.0 82719.0 72187.0 66466.0 NA [2,] 88873.5 86436.0 84823.5 74933.5 70165.5 NA [3,] 90329.5 89004.5 85922.5 77566.0 72655.0 NA [4,] 92381.0 90521.0 89067.5 80343.0 74619.0 NA [5,] 94118.0 92729.0 92134.0 83614.0 76207.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 88729.7 87141.3 83986.78 75098.69 70623.73 NA [2,] 91929.3 90867.7 87858.22 80033.31 74686.27 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(87032, 88873.5, 90329.5, 92381, 94118, 84915, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63hac1257694861.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,] 6264.804 15410.0 5973.0 [2,] 7391.294 17165.5 9095.0 [3,] 8090.414 18268.5 11710.5 [4,] 8756.514 20029.0 13061.5 [5,] 9624.893 20664.0 14890.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7467.727 16962.44 9901.353 [2,] 8713.100 19574.56 13519.647 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(6264.80408312981, 7391.29355927264, 8090.41362187333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/14oz01257694861.ps tmp/14oz01257694861.png") > system("convert tmp/2lr6f1257694861.ps tmp/2lr6f1257694861.png") > system("convert tmp/3plj41257694861.ps tmp/3plj41257694861.png") > system("convert tmp/4w5wp1257694861.ps tmp/4w5wp1257694861.png") > system("convert tmp/5snaw1257694861.ps tmp/5snaw1257694861.png") > system("convert tmp/63hac1257694861.ps tmp/63hac1257694861.png") > > > proc.time() user system elapsed 1.070 0.828 1.404