R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(34671,34355,34035,33373,39924,39577,34671,31409,31724,31724,32075,32706,34671,34035,35017,36631,45813,45813,43853,41888,43502,45466,45813,46795,49742,47777,47777,50724,58893,59555,57911,53982,56928,56928,57244,58893,60191,60853,60853,62817,70355,72315,72630,67724,70355,69373,67408,71653,72630,70986,71333,73613,82133,86372,86372,84412,87355,84412,82764,89004,89981,87670,93559,95870,102741,107301,106670,106319,108950,108630,104706,110594,112559,110594,118763,122692,131839,135448,134470,132505,134150,136114,129559,134785,138079,136750,145265,148207,160652,162932,159990,161634,162616,163598,157358,163247,166509,163247,172749,175692,188451,190416,191047,194340,194340,195638,189749,192696,194656,191047,201527,203491,216567,218878,222140,225087,225402,225749,219860,225749) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 34671 34671 49742 60191 72630 89981 112559 138079 166509 194656 NA [2,] 34355 34035 47777 60853 70986 87670 110594 136750 163247 191047 NA [3,] 34035 35017 47777 60853 71333 93559 118763 145265 172749 201527 NA [4,] 33373 36631 50724 62817 73613 95870 122692 148207 175692 203491 NA [5,] 39924 45813 58893 70355 82133 102741 131839 160652 188451 216567 NA [6,] 39577 45813 59555 72315 86372 107301 135448 162932 190416 218878 NA [7,] 34671 43853 57911 72630 86372 106670 134470 159990 191047 222140 NA [8,] 31409 41888 53982 67724 84412 106319 132505 161634 194340 225087 NA [9,] 31724 43502 56928 70355 87355 108950 134150 162616 194340 225402 NA [10,] 31724 45466 56928 69373 84412 108630 136114 163598 195638 225749 NA [11,] 32075 45813 57244 67408 82764 104706 129559 157358 189749 219860 NA [12,] 32706 46795 58893 71653 89004 110594 134785 163247 192696 225749 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/wessaorg/rcomp/tmp/17sn31312280424.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/wessaorg/rcomp/tmp/2capv1312280424.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/wessaorg/rcomp/tmp/3wanj1312280424.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/wessaorg/rcomp/tmp/4ccfb1312280424.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] [1,] 34671.0 34035 34035 33373.0 39924 39577.0 34671 31409.0 31724.0 [2,] 49742.0 47777 47777 50724.0 58893 59555.0 57911 53982.0 56928.0 [3,] 81305.5 79328 82446 84741.5 92437 96836.5 96521 95365.5 98152.5 [4,] 138079.0 136750 145265 148207.0 160652 162932.0 159990 161634.0 162616.0 [5,] 194656.0 191047 201527 203491.0 216567 218878.0 222140 225087.0 225402.0 [,10] [,11] [,12] [1,] 31724 32075 32706 [2,] 56928 57244 58893 [3,] 96521 93735 99799 [4,] 163598 157358 163247 [5,] 225749 219860 225749 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 37168.81 34873.54 33737.11 36035.11 41594.15 45185.23 45518.26 [2,] 125442.19 123782.46 131154.89 133447.89 143279.85 148487.77 147523.74 [,8] [,9] [,10] [,11] [,12] [1,] 41578.27 45346.56 43224.42 43714.05 47659.58 [2,] 149152.73 150958.44 149817.58 143755.95 151938.42 $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(34671, 49742, 81305.5, 138079, 194656, 34035, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/53vf51312280424.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] [,7] [,8] [,9] [1,] 31409.0 34035.0 47777 60191.0 70986.0 87670.0 110594.0 136750 163247.0 [2,] 31899.5 35824.0 50233 61835.0 73121.5 94714.5 120727.5 146736 174220.5 [3,] 33704.0 43677.5 56928 68548.5 83588.0 105512.5 132172.0 160321 190082.5 [4,] 34671.0 45813.0 58402 71004.0 86372.0 107965.5 134627.5 162774 193518.0 [5,] 34671.0 46795.0 59555 72630.0 89004.0 110594.0 136114.0 163598 195638.0 [,10] [,11] [1,] 191047.0 NA [2,] 202509.0 NA [3,] 219369.0 NA [4,] 225244.5 NA [5,] 225749.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 32439.9 39121.45 53202.06 64366.46 77544.36 99468.63 125832.1 153006 [2,] 34968.1 48233.55 60653.94 72730.54 89631.64 111556.37 138511.9 167636 [,9] [,10] [,11] [1,] 181280.8 208999.2 NA [2,] 198884.2 229738.8 NA $out [1] 39924 39577 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(31409, 31899.5, 33704, 34671, 34671, 34035, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6wv9q1312280424.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,] 55049.27 157012.0 79165.00 [2,] 59589.67 168805.0 87837.25 [3,] 63217.44 183385.0 91854.75 [4,] 65539.26 193360.5 94631.62 [5,] 66616.74 194025.0 96934.25 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 60503.79 172185.1 88755.79 [2,] 65931.09 194584.9 94953.71 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(55049.2696272066, 59589.6679087027, 63217.4366581571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/17sn31312280424.ps tmp/17sn31312280424.png",intern=TRUE)) character(0) > try(system("convert tmp/2capv1312280424.ps tmp/2capv1312280424.png",intern=TRUE)) character(0) > try(system("convert tmp/3wanj1312280424.ps tmp/3wanj1312280424.png",intern=TRUE)) character(0) > try(system("convert tmp/4ccfb1312280424.ps tmp/4ccfb1312280424.png",intern=TRUE)) character(0) > try(system("convert tmp/53vf51312280424.ps tmp/53vf51312280424.png",intern=TRUE)) character(0) > try(system("convert tmp/6wv9q1312280424.ps tmp/6wv9q1312280424.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.386 0.348 1.735