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(111.4,87.4,96.8,114.1,110.3,103.9,101.6,94.6,95.9,104.7,102.8,98.1,113.9,80.9,95.7,113.2,105.9,108.8,102.3,99,100.7,115.5,100.7,109.9,114.6,85.4,100.5,114.8,116.5,112.9,102,106,105.3,118.8,106.1,109.3,117.2,92.5,104.2,112.5,122.4,113.3,100,110.7,112.8,109.8,117.3,109.1,115.9,96,99.8,116.8,115.7,99.4,94.3,91,93.2,103.1,94.1,91.8,102.7) > 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,] 111.4 113.9 114.6 117.2 115.9 102.7 [2,] 87.4 80.9 85.4 92.5 96.0 NA [3,] 96.8 95.7 100.5 104.2 99.8 NA [4,] 114.1 113.2 114.8 112.5 116.8 NA [5,] 110.3 105.9 116.5 122.4 115.7 NA [6,] 103.9 108.8 112.9 113.3 99.4 NA [7,] 101.6 102.3 102.0 100.0 94.3 NA [8,] 94.6 99.0 106.0 110.7 91.0 NA [9,] 95.9 100.7 105.3 112.8 93.2 NA [10,] 104.7 115.5 118.8 109.8 103.1 NA [11,] 102.8 100.7 106.1 117.3 94.1 NA [12,] 98.1 109.9 109.3 109.1 91.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/rcomp/tmp/1pb3h1258129936.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/2pz9u1258129936.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/3xrna1258129936.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/4sojh1258129936.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,] 111.40 80.9 95.7 112.5 105.9 99.4 100.0 91.0 93.2 103.1 94.1 91.8 [2,] 111.40 85.4 96.8 113.2 110.3 103.9 100.0 94.6 95.9 104.7 100.7 98.1 [3,] 114.25 87.4 99.8 114.1 115.7 108.8 101.6 99.0 100.7 109.8 102.8 109.1 [4,] 115.90 92.5 100.5 114.8 116.5 112.9 102.0 106.0 105.3 115.5 106.1 109.3 [5,] 117.20 96.0 104.2 116.8 122.4 113.3 102.3 110.7 112.8 118.8 106.1 109.9 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 111.3474 82.38316 97.18559 112.9694 111.3191 102.4406 100.1868 90.94479 [2,] 117.1526 92.41684 102.41441 115.2306 120.0809 115.1594 103.0132 107.05521 [,9] [,10] [,11] [,12] [1,] 94.05798 102.1687 98.98437 101.1861 [2,] 107.34202 117.4313 106.61563 117.0139 $out [1] 102.7 94.3 117.3 $group [1] 1 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(111.4, 111.4, 114.25, 115.9, 117.2, 80.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5kp941258129936.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,] 87.40 95.70 100.50 100.00 91.00 102.7 [2,] 96.35 99.85 103.65 106.65 93.65 102.7 [3,] 102.20 104.10 107.70 111.60 97.70 102.7 [4,] 107.50 111.55 114.70 115.25 109.40 102.7 [5,] 114.10 115.50 118.80 122.40 116.80 102.7 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 97.11441 98.76355 102.6600 107.6775 90.51632 102.7 [2,] 107.28559 109.43645 112.7400 115.5225 104.88368 102.7 $out [1] 80.9 85.4 92.5 $group [1] 2 3 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(87.4, 96.35, 102.2, 107.5, 114.1, 95.7, 99.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6q11l1258129936.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.600 [2,] 4.293489 11.20 3.625 [3,] 6.139965 15.40 6.650 [4,] 7.938305 18.85 10.100 [5,] 8.535807 23.20 11.400 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.47754 11.91078 3.696709 [2,] 7.80239 18.88922 9.603291 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.65740761431821, 4.29348901448757, 6.13996521076241, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1pb3h1258129936.ps tmp/1pb3h1258129936.png") > system("convert tmp/2pz9u1258129936.ps tmp/2pz9u1258129936.png") > system("convert tmp/3xrna1258129936.ps tmp/3xrna1258129936.png") > system("convert tmp/4sojh1258129936.ps tmp/4sojh1258129936.png") > system("convert tmp/5kp941258129936.ps tmp/5kp941258129936.png") > system("convert tmp/6q11l1258129936.ps tmp/6q11l1258129936.png") > > > proc.time() user system elapsed 1.061 0.832 1.646