R version 2.10.1 (2009-12-14) 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(40801,49081,52431,59650,75428,78705,68870,70641,80074,76464,69976,92917,92559,73981,71107,96942,86270,69610,57768,80077,71454,70382,69881,84530,79322,80181,82137,88439,91575,82909,73282,94089,108112,95653,85273,105093,102275,99308,79687,93263,114918,103374,65124,104045,101183,95492,85035,90692,107486,98179,82551,106804,110898,89950,65184,95357,98280,92146,77874,100039,104777,102341,71316,88838,85457,70784,70522,88629,88452,98886,79601,108135,113835,101617,68698,79182,86003,84165,68550,90385,100368,99081,81288,103491,111695,82504,62237,78249,92341,84412,75102,90461,106451,98379,72615,98367,116949,95832,68060,83923,87653,78054,57566,78784,88916,84662,63442,77773,88102,87972,61790,95276,104418,95420,82141,104064,96287,78426,59111,76837,76615,65860,57703,68656,77955,65856,60947,69885,80550,73694,67538,76326,84727) > 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] 133 > (np <- floor(n / par1)) [1] 11 > 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] 12 11 11 11 11 11 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 40801 92559 79322 102275 107486 104777 113835 111695 116949 88102 76615 [2,] 49081 73981 80181 99308 98179 102341 101617 82504 95832 87972 65860 [3,] 52431 71107 82137 79687 82551 71316 68698 62237 68060 61790 57703 [4,] 59650 96942 88439 93263 106804 88838 79182 78249 83923 95276 68656 [5,] 75428 86270 91575 114918 110898 85457 86003 92341 87653 104418 77955 [6,] 78705 69610 82909 103374 89950 70784 84165 84412 78054 95420 65856 [7,] 68870 57768 73282 65124 65184 70522 68550 75102 57566 82141 60947 [8,] 70641 80077 94089 104045 95357 88629 90385 90461 78784 104064 69885 [9,] 80074 71454 108112 101183 98280 88452 100368 106451 88916 96287 80550 [10,] 76464 70382 95653 95492 92146 98886 99081 98379 84662 78426 73694 [11,] 69976 69881 85273 85035 77874 79601 81288 72615 63442 59111 67538 [12,] 92917 84530 105093 90692 100039 108135 103491 98367 77773 76837 76326 [,12] [1,] 84727 [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] 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/rcomp/tmp/1cpd91273754353.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/rcomp/tmp/2cpd91273754353.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/rcomp/tmp/3cpd91273754353.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/rcomp/tmp/4nhuu1273754353.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] [1,] 40801.0 49081.0 52431.0 59650.0 75428.0 65856 57566.0 69885.0 [2,] 82024.5 77081.0 62013.5 78715.5 85730.0 74419 63035.5 79430.5 [3,] 97417.0 87972.0 68698.0 88439.0 87653.0 82909 68550.0 90385.0 [4,] 109590.5 98743.5 75501.5 94269.5 98379.5 87181 71902.0 94723.0 [5,] 116949.0 102341.0 82551.0 106804.0 114918.0 103374 82141.0 104064.0 [,9] [,10] [,11] [,12] [1,] 71454.0 70382 59111.0 76326.0 [2,] 84501.0 77445 68709.5 81151.5 [3,] 96287.0 92146 72615.0 92917.0 [4,] 100775.5 97016 80444.5 101765.0 [5,] 108112.0 99081 85273.0 108135.0 $n [1] 12 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 84843.96 77652.25 62272.48 81029.26 81626.93 76829.34 64326.11 83099.84 [2,] 109990.04 98291.75 75123.52 95848.74 93679.07 88988.66 72773.89 97670.16 [,9] [,10] [,11] [,12] [1,] 88534.02 82822.61 67024.59 83096.98 [2,] 104039.98 101469.39 78205.41 102737.02 $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(40801, 82024.5, 97417, 109590.5, 116949, 49081, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5nhuu1273754353.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] [,7] [,8] [1,] 40801.0 57768.0 73282 79687.0 65184.0 70522.0 68550.0 62237.0 [2,] 56040.5 70131.5 81159 87863.5 86250.5 75458.5 80235.0 76675.5 [3,] 70308.5 72717.5 86856 97400.0 96768.0 88540.5 88194.0 87436.5 [4,] 77584.5 85400.0 94871 102824.5 103421.5 100613.5 100992.5 98373.0 [5,] 92917.0 96942.0 108112 114918.0 110898.0 108135.0 113835.0 111695.0 [,9] [,10] [,11] [,12] [1,] 57566.0 59111.0 57703.0 84727 [2,] 72916.5 77631.5 65858.0 84727 [3,] 81353.5 88037.0 69270.5 84727 [4,] 88284.5 95853.5 76470.5 84727 [5,] 95832.0 104418.0 80550.0 84727 $n [1] 12 12 12 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 60482.14 65753.43 80601.86 90576.19 88936.2 77067.14 78726.36 77540.12 [2,] 80134.86 79681.57 93110.14 104223.81 104599.8 100013.86 97661.64 97332.88 [,9] [,10] [,11] [,12] [1,] 74344.05 79725.82 64430.07 84727 [2,] 88362.95 96348.18 74110.93 84727 $out [1] 65124 116949 $group [1] 4 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(40801, 56040.5, 70308.5, 77584.5, 92917, 57768, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6gqtx1273754353.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,] 7512.962 24575.0 8866.50 [2,] 10496.918 29409.5 12705.75 [3,] 11806.702 35418.5 15423.25 [4,] 13123.101 43322.0 20092.25 [5,] 16995.520 53260.0 25162.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10608.88 29072.92 12054.22 [2,] 13004.52 41764.08 18792.28 $out [1] 21455.7 76148.0 $group [1] 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(7512.96208259735, 10496.9175359179, 11806.7020665983, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1cpd91273754353.ps tmp/1cpd91273754353.png",intern=TRUE)) character(0) > try(system("convert tmp/2cpd91273754353.ps tmp/2cpd91273754353.png",intern=TRUE)) character(0) > try(system("convert tmp/3cpd91273754353.ps tmp/3cpd91273754353.png",intern=TRUE)) character(0) > try(system("convert tmp/4nhuu1273754353.ps tmp/4nhuu1273754353.png",intern=TRUE)) character(0) > try(system("convert tmp/5nhuu1273754353.ps tmp/5nhuu1273754353.png",intern=TRUE)) character(0) > try(system("convert tmp/6gqtx1273754353.ps tmp/6gqtx1273754353.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.400 1.240 2.406