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(3922,3759,4138,4634,3996,4308,4143,4429,5219,4929,5755,5592,4163,4962,5208,4755,4491,5732,5731,5040,6102,4904,5369,5578,4619,4731,5011,5299,4146,4625,4736,4219,5116,4205,4121,5103,4300,4578,3809,5526,4247,3830,4394,4826,4409,4569,4106,4794,3914,3793,4405,4022,4100,4788,3163,3585,3903,4178,3863,4187) > 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,] 3922 4163 4619 4300 3914 NA [2,] 3759 4962 4731 4578 3793 NA [3,] 4138 5208 5011 3809 4405 NA [4,] 4634 4755 5299 5526 4022 NA [5,] 3996 4491 4146 4247 4100 NA [6,] 4308 5732 4625 3830 4788 NA [7,] 4143 5731 4736 4394 3163 NA [8,] 4429 5040 4219 4826 3585 NA [9,] 5219 6102 5116 4409 3903 NA [10,] 4929 4904 4205 4569 4178 NA [11,] 5755 5369 4121 4106 3863 NA [12,] 5592 5578 5103 4794 4187 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/1u5rm1257596943.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/22yr61257596943.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/3txpr1257596943.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/45rf11257596943.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,] 3914 3759 3809 4022 3996 3830 4143 3585 3903 4178 3863 4187 [2,] 3922 3793 4138 4634 4100 4308 4143 4219 4409 4205 4106 4794 [3,] 4163 4578 4405 4755 4146 4625 4394 4429 5116 4569 4121 5103 [4,] 4300 4731 5011 5299 4247 4788 4736 4826 5219 4904 5369 5578 [5,] 4619 4962 5208 5526 4247 4788 4736 5040 6102 4929 5755 5592 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3895.906 3915.212 3788.140 4285.113 4042.13 4285.833 3974.988 4000.095 [2,] 4430.094 5240.788 5021.860 5224.887 4249.87 4964.167 4813.012 4857.905 [,9] [,10] [,11] [,12] [1,] 4543.656 4075.088 3228.567 4549.028 [2,] 5688.344 5062.912 5013.433 5656.972 $out [1] 4491 5732 5731 3163 $group [1] 5 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3914, 3922, 4163, 4300, 4619, 3759, 3793, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ju001257596943.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,] 3759.0 4163.0 4121 3809.0 3585.0 NA [2,] 4067.0 4829.5 4212 4176.5 3828.0 NA [3,] 4368.5 5124.0 4678 4401.5 3968.0 NA [4,] 5074.0 5654.5 5057 4686.0 4182.5 NA [5,] 5755.0 6102.0 5299 4826.0 4405.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3909.201 4747.712 4292.59 4169.114 3806.31 NA [2,] 4827.799 5500.288 5063.41 4633.886 4129.69 NA $out [1] 5526 4788 3163 $group [1] 4 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(3759, 4067, 4368.5, 5074, 5755, 4163, 4829.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66a5k1257596943.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,] 187.9774 495 147.0 [2,] 458.6784 977 536.5 [3,] 587.8543 1430 682.0 [4,] 771.2571 1897 841.5 [5,] 932.0855 2568 1263.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 445.2850 1010.382 542.8875 [2,] 730.4236 1849.618 821.1125 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(187.977392257686, 458.678377537959, 587.85430824168, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1u5rm1257596943.ps tmp/1u5rm1257596943.png") > system("convert tmp/22yr61257596943.ps tmp/22yr61257596943.png") > system("convert tmp/3txpr1257596943.ps tmp/3txpr1257596943.png") > system("convert tmp/45rf11257596943.ps tmp/45rf11257596943.png") > system("convert tmp/5ju001257596943.ps tmp/5ju001257596943.png") > system("convert tmp/66a5k1257596943.ps tmp/66a5k1257596943.png") > > > proc.time() user system elapsed 1.057 0.799 1.411