R version 2.6.2 (2008-02-08) 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(48.04,48.06,48.04,48.09,48.12,48.16,48.16,48.16,48.08,48.13,48.16,48.15,48.15,48.15,48.27,48.47,48.51,48.53,48.53,48.53,48.68,48.64,48.67,48.66,48.66,48.67,48.71,48.96,49.01,49.04,49.04,49.04,49.06,49.13,49.19,49.26,49.26,49.26,49.29,49.43,49.43,49.45,49.45,49.46,49.57,49.68,49.71,49.7,49.7,49.8,49.84,50.09,50.2,50.16,50.16,50.29,50.36,51.02,51.03,51.04) > 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,] 48.04 48.15 48.66 49.26 49.70 NA [2,] 48.06 48.15 48.67 49.26 49.80 NA [3,] 48.04 48.27 48.71 49.29 49.84 NA [4,] 48.09 48.47 48.96 49.43 50.09 NA [5,] 48.12 48.51 49.01 49.43 50.20 NA [6,] 48.16 48.53 49.04 49.45 50.16 NA [7,] 48.16 48.53 49.04 49.45 50.16 NA [8,] 48.16 48.53 49.04 49.46 50.29 NA [9,] 48.08 48.68 49.06 49.57 50.36 NA [10,] 48.13 48.64 49.13 49.68 51.02 NA [11,] 48.16 48.67 49.19 49.71 51.03 NA [12,] 48.15 48.66 49.26 49.70 51.04 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/1pnnn1211141070.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/2d9cu1211141070.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/3sfej1211141070.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/4ataq1211141070.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,] 48.04 48.06 48.04 48.09 48.12 48.16 48.16 48.16 48.08 48.13 48.16 48.15 [2,] 48.15 48.15 48.27 48.47 48.51 48.53 48.53 48.53 48.68 48.64 48.67 48.66 [3,] 48.66 48.67 48.71 48.96 49.01 49.04 49.04 49.04 49.06 49.13 49.19 49.26 [4,] 49.26 49.26 49.29 49.43 49.43 49.45 49.45 49.46 49.57 49.68 49.71 49.70 [5,] 49.70 49.80 49.84 50.09 50.20 50.16 50.16 50.29 50.36 51.02 51.03 51.04 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 47.87568 47.88568 47.98927 48.28167 48.35993 48.38993 48.38993 48.38286 [2,] 49.44432 49.45432 49.43073 49.63833 49.66007 49.69007 49.69007 49.69714 [,9] [,10] [,11] [,12] [1,] 48.43113 48.39514 48.45514 48.52514 [2,] 49.68887 49.86486 49.92486 49.99486 $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(48.04, 48.15, 48.66, 49.26, 49.7, 48.06, 48.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/54vl51211141070.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,] 48.040 48.15 48.660 49.260 49.700 NA [2,] 48.070 48.37 48.835 49.360 49.965 NA [3,] 48.125 48.53 49.040 49.450 50.180 NA [4,] 48.160 48.65 49.095 49.625 50.690 NA [5,] 48.160 48.68 49.260 49.710 51.040 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 48.08395 48.40229 48.92141 49.32913 49.84932 NA [2,] 48.16605 48.65771 49.15859 49.57087 50.51068 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(48.04, 48.07, 48.125, 48.16, 48.16, 48.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6yh3a1211141071.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,] 0.7131059 1.660 0.89 [2,] 0.7621890 1.900 0.92 [3,] 0.7990008 2.040 0.99 [4,] 0.9849636 2.575 1.04 [5,] 1.1106530 2.890 1.11 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.6973918 1.732128 0.9352672 [2,] 0.9006098 2.347872 1.0447328 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.713105882741127, 0.762189004613424, 0.799000779403734, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1pnnn1211141070.ps tmp/1pnnn1211141070.png") > system("convert tmp/2d9cu1211141070.ps tmp/2d9cu1211141070.png") > system("convert tmp/3sfej1211141070.ps tmp/3sfej1211141070.png") > system("convert tmp/4ataq1211141070.ps tmp/4ataq1211141070.png") > system("convert tmp/54vl51211141070.ps tmp/54vl51211141070.png") > system("convert tmp/6yh3a1211141071.ps tmp/6yh3a1211141071.png") > > > proc.time() user system elapsed 1.800 1.174 1.937