R version 2.12.0 (2010-10-15) 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(120.9,119.6,125.9,116.1,107.5,116.7,112.5,113,126.4,114.1,112.5,112.4,113.1,116.3,111.7,118.8,116.5,125.1,113.1,119.6,114.4,114,117.8,117,120.9,115,117.3,119.4,114.9,125.8,117.6,117.6,114.9,121.9,117,106.4,110.5,113.6,114.2,125.4,124.6,120.2,120.8,111.4,124.1,120.2,125.5,116,117,105.7,102,106.4,96.9,107.6,98.8,101.1,105.7,104.6,103.2,101.6) > 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,] 120.9 113.1 120.9 110.5 117.0 NA [2,] 119.6 116.3 115.0 113.6 105.7 NA [3,] 125.9 111.7 117.3 114.2 102.0 NA [4,] 116.1 118.8 119.4 125.4 106.4 NA [5,] 107.5 116.5 114.9 124.6 96.9 NA [6,] 116.7 125.1 125.8 120.2 107.6 NA [7,] 112.5 113.1 117.6 120.8 98.8 NA [8,] 113.0 119.6 117.6 111.4 101.1 NA [9,] 126.4 114.4 114.9 124.1 105.7 NA [10,] 114.1 114.0 121.9 120.2 104.6 NA [11,] 112.5 117.8 117.0 125.5 103.2 NA [12,] 112.4 117.0 106.4 116.0 101.6 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/1gbdt1293386839.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/29kue1293386839.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/39kue1293386839.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/4jcuz1293386839.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] [,12] [1,] 110.5 113.6 111.7 116.1 96.9 107.6 112.5 111.4 105.7 114.0 112.5 101.6 [2,] 113.1 113.6 111.7 116.1 107.5 116.7 112.5 111.4 114.4 114.0 112.5 106.4 [3,] 117.0 115.0 114.2 118.8 114.9 120.2 113.1 113.0 114.9 114.1 117.0 112.4 [4,] 120.9 116.3 117.3 119.4 116.5 125.1 117.6 117.6 124.1 120.2 117.8 116.0 [5,] 120.9 119.6 117.3 119.4 124.6 125.8 120.8 119.6 126.4 121.9 125.5 117.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 111.4885 113.0922 110.2431 116.4682 108.5406 114.2646 109.4964 108.6191 [2,] 122.5115 116.9078 118.1569 121.1318 121.2594 126.1354 116.7036 117.3809 [,9] [,10] [,11] [,12] [1,] 108.046 109.7191 113.2550 105.6167 [2,] 121.754 118.4809 120.7450 119.1833 $out [1] 105.7 125.9 102.0 125.4 106.4 98.8 101.1 104.6 103.2 $group [1] 2 3 3 4 4 7 8 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(110.5, 113.1, 117, 120.9, 120.9, 113.6, 113.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5jcuz1293386839.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] [1,] 107.50 111.70 114.90 110.50 96.90 NA [2,] 112.50 113.55 114.95 113.90 101.35 NA [3,] 115.10 116.40 117.45 120.20 103.90 NA [4,] 120.25 118.30 120.15 124.35 106.05 NA [5,] 126.40 125.10 125.80 125.50 107.60 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 111.5652 114.2335 115.0782 115.4337 101.7563 NA [2,] 118.6348 118.5665 119.8218 124.9663 106.0437 NA $out [1] 106.4 117.0 $group [1] 3 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(107.5, 112.5, 115.1, 120.25, 126.4, 111.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6c3t21293386839.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.651021 10.40 2.7 [2,] 6.675214 16.35 5.2 [3,] 7.313104 18.75 6.2 [4,] 8.370329 22.15 8.7 [5,] 10.436091 27.70 9.7 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.539951 16.10458 4.603627 [2,] 8.086257 21.39542 7.796373 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4.65102139319957, 6.67521421549574, 7.31310419499924, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > try(system("convert tmp/1gbdt1293386839.ps tmp/1gbdt1293386839.png",intern=TRUE)) character(0) > try(system("convert tmp/29kue1293386839.ps tmp/29kue1293386839.png",intern=TRUE)) character(0) > try(system("convert tmp/39kue1293386839.ps tmp/39kue1293386839.png",intern=TRUE)) character(0) > try(system("convert tmp/4jcuz1293386839.ps tmp/4jcuz1293386839.png",intern=TRUE)) character(0) > try(system("convert tmp/5jcuz1293386839.ps tmp/5jcuz1293386839.png",intern=TRUE)) character(0) > try(system("convert tmp/6c3t21293386839.ps tmp/6c3t21293386839.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.370 0.520 1.846