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(94.3,99.4,115.7,116.8,99.8,96,115.9,109.1,117.3,109.8,112.8,110.7,100,113.3,122.4,112.5,104.2,92.5,117.2,109.3,106.1,118.8,105.3,106,102,112.9,116.5,114.8,100.5,85.4,114.6,109.9,100.7,115.5,100.7,99,102.3,108.8,105.9,113.2,95.7,80.9,113.9,98.1,102.8,104.7,95.9,94.6,101.6,103.9,110.3,114.1,96.8,87.4,111.4,97.4,102.9,112.7,97,95.1) > 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,] 94.3 100.0 102.0 102.3 101.6 NA [2,] 99.4 113.3 112.9 108.8 103.9 NA [3,] 115.7 122.4 116.5 105.9 110.3 NA [4,] 116.8 112.5 114.8 113.2 114.1 NA [5,] 99.8 104.2 100.5 95.7 96.8 NA [6,] 96.0 92.5 85.4 80.9 87.4 NA [7,] 115.9 117.2 114.6 113.9 111.4 NA [8,] 109.1 109.3 109.9 98.1 97.4 NA [9,] 117.3 106.1 100.7 102.8 102.9 NA [10,] 109.8 118.8 115.5 104.7 112.7 NA [11,] 112.8 105.3 100.7 95.9 97.0 NA [12,] 110.7 106.0 99.0 94.6 95.1 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/1a7a71257793173.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/2by0e1257793173.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/3mjh91257793173.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/4tgab1257793173.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,] 100.0 99.4 105.9 112.5 95.7 80.9 111.4 97.4 100.7 104.7 95.9 94.6 [2,] 100.0 103.9 110.3 113.2 96.8 85.4 113.9 98.1 102.8 109.8 97.0 95.1 [3,] 101.6 108.8 115.7 114.1 99.8 87.4 114.6 109.1 102.9 112.7 100.7 99.0 [4,] 102.0 112.9 116.5 114.8 100.5 92.5 115.9 109.3 106.1 115.5 105.3 106.0 [5,] 102.3 113.3 122.4 116.8 104.2 96.0 117.2 109.9 106.1 118.8 112.8 110.7 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.1868 102.4406 111.3191 112.9694 97.18559 82.38316 113.1868 101.1861 [2,] 103.0132 115.1594 120.0809 115.2306 102.41441 92.41684 116.0132 117.0139 [,9] [,10] [,11] [,12] [1,] 100.5682 108.6724 94.83524 91.29809 [2,] 105.2318 116.7276 106.56476 106.70191 $out [1] 94.3 117.3 $group [1] 1 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(100, 100, 101.6, 102, 102.3, 99.4, 103.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56z1v1257793173.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,] 94.30 92.50 85.40 80.90 87.40 NA [2,] 99.60 104.75 100.60 95.80 96.90 NA [3,] 110.25 107.70 105.95 102.55 102.25 NA [4,] 115.80 115.25 114.70 107.35 110.85 NA [5,] 117.30 122.40 116.50 113.90 114.10 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 102.8611 102.9109 99.5189 97.28197 95.88731 NA [2,] 117.6389 112.4891 112.3811 107.81803 108.61269 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(94.3, 99.6, 110.25, 115.8, 117.3, 92.5, 104.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6h8dy1257793173.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,] 1.657408 4.30 1.60 [2,] 3.338997 8.25 2.65 [3,] 5.955460 14.00 5.95 [4,] 6.518542 16.30 8.65 [5,] 7.050319 16.90 11.20 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.505249 10.32834 3.21336 [2,] 7.405672 17.67166 8.68664 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.65740761431821, 3.33899720308696, 5.95546010016451, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1a7a71257793173.ps tmp/1a7a71257793173.png") > system("convert tmp/2by0e1257793173.ps tmp/2by0e1257793173.png") > system("convert tmp/3mjh91257793173.ps tmp/3mjh91257793173.png") > system("convert tmp/4tgab1257793173.ps tmp/4tgab1257793173.png") > system("convert tmp/56z1v1257793173.ps tmp/56z1v1257793173.png") > system("convert tmp/6h8dy1257793173.ps tmp/6h8dy1257793173.png") > > > proc.time() user system elapsed 1.089 0.857 1.518