R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(98.6,100.1,98.8,98.3,102.8,103.6,105.2,100.1,98.2,98.4,97.4,98.4,100.3,101.1,104.1,107.3,110.1,112.6,114.3,115.3,109.9,108.2,103.2,101.8,105.6,108.2,109.8,114.6,117.2,116.5,116.1,112.1,106.8,106.9,104.5,103,105.9,107.7,107.1,112.5,114.5,114.6,113.1,112.8,111.9,112,112.4,110,112.3,109.6,111.9,110.8,110.4,110.8,114,108.4,110.5,105.1,102.3,104.3,103.4,102.4,104.5,107.3,110.1,111.8,111.8,105.7,106,106.4,107.1,111.5,109.6,109.9,109.3,111.4,112.9,115.5,118.4,116.2,113.3,113.8,114.1,117.1,115.5,115.2,114.2,115.3,118.8,118,118.1,111.8,112,114.3,115,118.5,117.6,119.1,120.6,123.6,122.7,123.8,123.1,124.5,120.7,118.7,119,122.3,118.6,118.1,118.2,120.8,119.7,119.7,117.1,114.5,116.5,116.4,114.9,115.5) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 98.6 100.3 105.6 105.9 112.3 103.4 109.6 115.5 117.6 118.6 NA [2,] 100.1 101.1 108.2 107.7 109.6 102.4 109.9 115.2 119.1 118.1 NA [3,] 98.8 104.1 109.8 107.1 111.9 104.5 109.3 114.2 120.6 118.2 NA [4,] 98.3 107.3 114.6 112.5 110.8 107.3 111.4 115.3 123.6 120.8 NA [5,] 102.8 110.1 117.2 114.5 110.4 110.1 112.9 118.8 122.7 119.7 NA [6,] 103.6 112.6 116.5 114.6 110.8 111.8 115.5 118.0 123.8 119.7 NA [7,] 105.2 114.3 116.1 113.1 114.0 111.8 118.4 118.1 123.1 117.1 NA [8,] 100.1 115.3 112.1 112.8 108.4 105.7 116.2 111.8 124.5 114.5 NA [9,] 98.2 109.9 106.8 111.9 110.5 106.0 113.3 112.0 120.7 116.5 NA [10,] 98.4 108.2 106.9 112.0 105.1 106.4 113.8 114.3 118.7 116.4 NA [11,] 97.4 103.2 104.5 112.4 102.3 107.1 114.1 115.0 119.0 114.9 NA [12,] 98.4 101.8 103.0 110.0 104.3 111.5 117.1 118.5 122.3 115.5 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/rcomp/tmp/11ju21323175245.ps",horizontal=F,onefile=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/rcomp/tmp/2oktk1323175245.ps",horizontal=F,onefile=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/rcomp/tmp/3j1aq1323175245.ps",horizontal=F,onefile=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/rcomp/tmp/4c39p1323175245.ps",horizontal=F,onefile=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] [1,] 98.60 100.1 98.80 98.30 102.8 103.60 111.8 100.10 98.2 98.4 97.40 [2,] 103.40 102.4 104.50 107.30 110.1 111.80 113.1 108.40 106.8 106.4 103.20 [3,] 107.75 108.9 109.55 111.95 113.7 115.05 115.2 112.45 111.2 110.1 109.75 [4,] 115.50 115.2 114.20 115.30 118.8 118.00 118.1 115.30 113.3 114.3 114.90 [5,] 118.60 119.1 120.60 123.60 122.7 123.80 123.1 124.50 120.7 118.7 119.00 [,12] [1,] 98.40 [2,] 103.00 [3,] 110.75 [4,] 117.10 [5,] 122.30 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.7044 102.5046 104.7035 107.9529 109.3531 111.9522 112.7018 109.0025 [2,] 113.7956 115.2954 114.3965 115.9471 118.0469 118.1478 117.6982 115.8975 [,9] [,10] [,11] [,12] [1,] 107.9523 106.1528 103.9042 103.7051 [2,] 114.4477 114.0472 115.5958 117.7949 $out [1] 105.2 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(98.6, 103.4, 107.75, 115.5, 118.6, 100.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5h2oo1323175245.ps",horizontal=F,onefile=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] [,7] [,8] [,9] [,10] [1,] 97.40 100.30 103.00 105.90 102.30 102.40 109.30 111.80 117.60 114.50 [2,] 98.35 102.50 106.20 108.85 106.75 105.10 110.65 114.25 119.05 115.95 [3,] 98.70 107.75 109.00 112.20 110.45 106.75 113.55 115.25 121.50 117.60 [4,] 101.45 111.35 115.35 112.95 111.35 110.80 115.85 118.05 123.35 119.15 [5,] 105.20 115.30 117.20 114.60 114.00 111.80 118.40 118.80 124.50 120.80 [,11] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 97.28607 103.7135 104.8266 110.3300 108.3519 104.1502 111.1782 113.5168 [2,] 100.11393 111.7865 113.1734 114.0700 112.5481 109.3498 115.9218 116.9832 [,9] [,10] [,11] [1,] 119.5387 116.1405 NA [2,] 123.4613 119.0595 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(97.4, 98.35, 98.7, 101.45, 105.2, 100.3, 102.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/68q2o1323175245.ps",horizontal=F,onefile=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,] 4.756703 17.90 4.5250 [2,] 6.004780 19.95 5.7375 [3,] 6.607168 20.95 7.9375 [4,] 7.073524 23.20 10.4500 [5,] 8.090900 25.30 13.3750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.119707 19.46765 5.788097 [2,] 7.094630 22.43235 10.086903 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4.75670287302268, 6.00477963769149, 6.60716830231341, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/11ju21323175245.ps tmp/11ju21323175245.png",intern=TRUE)) character(0) > try(system("convert tmp/2oktk1323175245.ps tmp/2oktk1323175245.png",intern=TRUE)) character(0) > try(system("convert tmp/3j1aq1323175245.ps tmp/3j1aq1323175245.png",intern=TRUE)) character(0) > try(system("convert tmp/4c39p1323175245.ps tmp/4c39p1323175245.png",intern=TRUE)) character(0) > try(system("convert tmp/5h2oo1323175245.ps tmp/5h2oo1323175245.png",intern=TRUE)) character(0) > try(system("convert tmp/68q2o1323175245.ps tmp/68q2o1323175245.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.308 0.552 3.357