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(109.7,99.1,86.7,111.4,78.4,76.7,114.2,99.7,94.2,173.5,83.1,88.9,132.0,122.1,105.1,133.7,63.6,112.7,120.5,112.0,126.2,209.2,91.0,116.7,137.6,108.1,136.6,152.3,114.3,120.7,131.8,129.4,187.5,189.5,109.2,158.1,176.2,125.5,155.0,170.3,99.4,139.2,169.6,136.1,168.2,318.6,154.1,161.4,183.4,166.3,203,174.6,124.3,154.4,170.5,169.4,171.1,289.2,145.6,134.4,168.2) > 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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 109.7 132.0 137.6 176.2 183.4 168.2 [2,] 99.1 122.1 108.1 125.5 166.3 NA [3,] 86.7 105.1 136.6 155.0 203.0 NA [4,] 111.4 133.7 152.3 170.3 174.6 NA [5,] 78.4 63.6 114.3 99.4 124.3 NA [6,] 76.7 112.7 120.7 139.2 154.4 NA [7,] 114.2 120.5 131.8 169.6 170.5 NA [8,] 99.7 112.0 129.4 136.1 169.4 NA [9,] 94.2 126.2 187.5 168.2 171.1 NA [10,] 173.5 209.2 189.5 318.6 289.2 NA [11,] 83.1 91.0 109.2 154.1 145.6 NA [12,] 88.9 116.7 158.1 161.4 134.4 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/1iuq91257455364.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/2iyix1257455364.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/3khmn1257455364.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/4egt71257455364.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,] 109.7 99.1 86.7 111.4 63.6 76.7 114.2 99.7 94.2 173.5 83.1 88.9 [2,] 132.0 108.1 105.1 133.7 78.4 112.7 120.5 112.0 126.2 189.5 91.0 116.7 [3,] 152.9 122.1 136.6 152.3 99.4 120.7 131.8 129.4 168.2 209.2 109.2 134.4 [4,] 176.2 125.5 155.0 170.3 114.3 139.2 169.6 136.1 171.1 289.2 145.6 158.1 [5,] 183.4 125.5 203.0 174.6 124.3 154.4 170.5 169.4 187.5 318.6 154.1 161.4 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 124.3896 109.8052 101.3408 126.4385 74.03315 101.9752 97.10606 112.371 [2,] 181.4104 134.3948 171.8592 178.1615 124.76685 139.4248 166.49394 146.429 [,9] [,10] [,11] [,12] [1,] 136.4738 138.7522 70.61978 105.1469 [2,] 199.9262 279.6478 147.78022 163.6531 $out [1] 166.3 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(109.7, 132, 152.9, 176.2, 183.4, 99.1, 108.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rkgi1257455364.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,] 76.70 91.00 108.1 99.40 124.30 168.2 [2,] 84.90 108.55 117.5 137.65 150.00 168.2 [3,] 96.65 118.60 134.2 158.20 169.95 168.2 [4,] 110.55 129.10 155.2 169.95 179.00 168.2 [5,] 114.20 133.70 189.5 176.20 203.00 168.2 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 84.95086 109.227 117.0048 143.4678 156.7229 168.2 [2,] 108.34914 127.973 151.3952 172.9322 183.1771 168.2 $out [1] 173.5 63.6 209.2 318.6 289.2 $group [1] 1 2 2 4 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(76.7, 84.9, 96.65, 110.55, 114.2, 91, 108.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6z3v51257455364.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,] 25.03428 56.30 17.4 [2,] 26.44773 65.20 31.2 [3,] 29.28084 71.75 41.1 [4,] 35.10761 85.50 49.5 [5,] 45.35270 93.30 54.6 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 25.33101 62.49103 32.75325 [2,] 33.23067 81.00897 49.44675 $out [1] 64.10877 116.30000 145.10000 99.70000 $group [1] 1 2 2 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(25.0342765024276, 26.4477327916496, 29.2808441524729, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1iuq91257455364.ps tmp/1iuq91257455364.png") > system("convert tmp/2iyix1257455364.ps tmp/2iyix1257455364.png") > system("convert tmp/3khmn1257455364.ps tmp/3khmn1257455364.png") > system("convert tmp/4egt71257455364.ps tmp/4egt71257455364.png") > system("convert tmp/5rkgi1257455364.ps tmp/5rkgi1257455364.png") > system("convert tmp/6z3v51257455364.ps tmp/6z3v51257455364.png") > > > proc.time() user system elapsed 1.035 0.849 1.922