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(5560,3922,3759,4138,4634,3996,4308,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,] 5560 4163 4619 4300 3914 NA [2,] 3922 4962 4731 4578 3793 NA [3,] 3759 5208 5011 3809 4405 NA [4,] 4138 4755 5299 5526 4022 NA [5,] 4634 4491 4146 4247 4100 NA [6,] 3996 5732 4625 3830 4788 NA [7,] 4308 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/1tguo1260735289.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/207ea1260735289.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/3du791260735289.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/45ngd1260735289.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 3793 3759 4022 4100 3830 4308 3585 3903 4178 3863 4187 [2,] 4163 3922 3809 4138 4146 3996 4308 4219 4409 4205 4106 4794 [3,] 4300 4578 4405 4755 4247 4625 4394 4429 5116 4569 4121 5103 [4,] 4619 4731 5011 5299 4491 4788 4736 4826 5219 4904 5369 5578 [5,] 4619 4962 5208 5526 4634 5732 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,] 3977.792 4006.363 3555.67 3934.64 4003.224 4065.375 4091.576 4000.095 [2,] 4622.208 5149.637 5254.33 5575.36 4490.776 5184.625 4696.424 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] 5560 5731 3163 $group [1] 1 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3914, 4163, 4300, 4619, 4619, 3793, 3922, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lh5g1260735289.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,] 4531.5 5124.0 4678 4401.5 3968.0 NA [4,] 5389.5 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,] 3928.299 4747.712 4292.59 4169.114 3806.31 NA [2,] 5134.701 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, 4531.5, 5389.5, 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/61pbe1260735290.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,] 230.0963 534.0 345.0 [2,] 540.2679 1287.0 531.5 [3,] 653.0275 1479.5 788.0 [4,] 796.5896 1897.0 985.5 [5,] 922.1010 2568.0 1263.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 536.1175 1201.275 580.9276 [2,] 769.9375 1757.725 995.0724 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(230.096284194248, 540.267914536677, 653.027506903957, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1tguo1260735289.ps tmp/1tguo1260735289.png",intern=TRUE)) character(0) > try(system("convert tmp/207ea1260735289.ps tmp/207ea1260735289.png",intern=TRUE)) character(0) > try(system("convert tmp/3du791260735289.ps tmp/3du791260735289.png",intern=TRUE)) character(0) > try(system("convert tmp/45ngd1260735289.ps tmp/45ngd1260735289.png",intern=TRUE)) character(0) > try(system("convert tmp/5lh5g1260735289.ps tmp/5lh5g1260735289.png",intern=TRUE)) character(0) > try(system("convert tmp/61pbe1260735290.ps tmp/61pbe1260735290.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.052 0.799 1.517