R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(17823.2,17872,17420.4,16704.4,15991.2,15583.6,19123.5,17838.7,17209.4,18586.5,16258.1,15141.6,19202.1,17746.5,19090.1,18040.3,17515.5,17751.8,21072.4,17170,19439.5,19795.4,17574.9,16165.4,19464.6,19932.1,19961.2,17343.4,18924.2,18574.1,21350.6,18594.6,19832.1,20844.4,19640.2,17735.4,19813.6,22160,20664.3,17877.4,20906.5,21164.1,21374.4,22952.3,21343.5,23899.3,22392.9,18274.1,22786.7,22321.5,17842.2,16373.5,15933.8,16446.1,17729,16643,16196.7,18252.1,17570.4,15836.8) > 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,] 17823.2 19202.1 19464.6 19813.6 22786.7 NA [2,] 17872.0 17746.5 19932.1 22160.0 22321.5 NA [3,] 17420.4 19090.1 19961.2 20664.3 17842.2 NA [4,] 16704.4 18040.3 17343.4 17877.4 16373.5 NA [5,] 15991.2 17515.5 18924.2 20906.5 15933.8 NA [6,] 15583.6 17751.8 18574.1 21164.1 16446.1 NA [7,] 19123.5 21072.4 21350.6 21374.4 17729.0 NA [8,] 17838.7 17170.0 18594.6 22952.3 16643.0 NA [9,] 17209.4 19439.5 19832.1 21343.5 16196.7 NA [10,] 18586.5 19795.4 20844.4 23899.3 18252.1 NA [11,] 16258.1 17574.9 19640.2 22392.9 17570.4 NA [12,] 15141.6 16165.4 17735.4 18274.1 15836.8 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/freestat/rcomp/tmp/1cftk1257959614.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/freestat/rcomp/tmp/28s191257959614.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/freestat/rcomp/tmp/36uxz1257959614.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/freestat/rcomp/tmp/4i3uu1257959614.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] [1,] 19202.1 17746.5 17420.4 16373.5 15933.8 15583.6 17729.0 16643.0 16196.7 [2,] 19202.1 17872.0 17842.2 16704.4 15991.2 16446.1 19123.5 17170.0 17209.4 [3,] 19464.6 19932.1 19090.1 17343.4 17515.5 17751.8 21072.4 17838.7 19439.5 [4,] 19813.6 22160.0 19961.2 17877.4 18924.2 18574.1 21350.6 18594.6 19832.1 [5,] 19813.6 22321.5 20664.3 18040.3 20906.5 21164.1 21374.4 18594.6 21343.5 [,10] [,11] [,12] [1,] 18252.1 16258.1 15141.6 [2,] 18586.5 17570.4 15836.8 [3,] 19795.4 17574.9 16165.4 [4,] 20844.4 19640.2 17735.4 [5,] 23899.3 22392.9 18274.1 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 19032.52 16902.21 17592.82 16514.56 15443.05 16248.16 19498.74 16832.08 [2,] 19896.68 22961.99 20587.38 18172.24 19587.95 19255.44 22646.06 18845.32 [,9] [,10] [,11] [,12] [1,] 17586.31 18199.97 16112.38 14823.85 [2,] 21292.69 21390.83 19037.42 17506.95 $out [1] 17823.2 22786.7 22952.3 $group [1] 1 1 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(19202.1, 19202.1, 19464.6, 19813.6, 19813.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5oo6r1257959614.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,] 15141.60 16165.40 17343.40 17877.40 15836.80 NA [2,] 16124.65 17545.20 18584.35 20238.95 16285.10 NA [3,] 17314.90 17896.05 19552.40 21253.80 17106.70 NA [4,] 17855.35 19320.80 19946.65 22276.45 18047.15 NA [5,] 19123.50 21072.40 21350.60 23899.30 18252.10 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 16525.52 17086.19 18931.05 20324.48 16303.02 NA [2,] 18104.28 18705.91 20173.75 22183.12 17910.38 NA $out [1] 22786.7 22321.5 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15141.6, 16124.65, 17314.9, 17855.35, 19123.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6jbwl1257959614.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,] 723.0622 1666.80 611.5 [2,] 1504.2987 3444.65 1661.6 [3,] 2091.1676 4968.10 2123.5 [4,] 2244.2468 5613.85 2440.3 [5,] 2519.3741 6309.30 2933.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1753.672 3978.713 1768.330 [2,] 2428.663 5957.487 2478.670 $out [1] 4288 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(723.062206867431, 1504.29870062317, 2091.16758919289, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1cftk1257959614.ps tmp/1cftk1257959614.png") > system("convert tmp/28s191257959614.ps tmp/28s191257959614.png") > system("convert tmp/36uxz1257959614.ps tmp/36uxz1257959614.png") > system("convert tmp/4i3uu1257959614.ps tmp/4i3uu1257959614.png") > system("convert tmp/5oo6r1257959614.ps tmp/5oo6r1257959614.png") > system("convert tmp/6jbwl1257959614.ps tmp/6jbwl1257959614.png") > > > proc.time() user system elapsed 1.692 1.312 1.986