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(71.42,71.47,71.55,71.6,71.62,71.64,71.65,71.65,71.65,71.7,71.73,71.83,71.83,71.87,71.91,71.99,72.1,72.12,72.12,72.12,72.25,72.59,72.72,72.76,72.76,72.91,73,73.11,73.11,73.16,73.16,73.33,73.51,73.65,73.65,73.65,73.65,73.66,73.71,73.73,73.77,73.77,73.78,73.85,73.88,74.3,74.53,74.53,74.53,74.53,74.65,74.65,74.65,74.71,74.71,74.78,74.85,74.9,74.96,74.96,74.96,74.98,75.19,75.22,75.33,75.33,75.37,75.44,75.54,75.58,75.59,75.61) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 71.42 71.83 72.76 73.65 74.53 74.96 NA [2,] 71.47 71.87 72.91 73.66 74.53 74.98 NA [3,] 71.55 71.91 73.00 73.71 74.65 75.19 NA [4,] 71.60 71.99 73.11 73.73 74.65 75.22 NA [5,] 71.62 72.10 73.11 73.77 74.65 75.33 NA [6,] 71.64 72.12 73.16 73.77 74.71 75.33 NA [7,] 71.65 72.12 73.16 73.78 74.71 75.37 NA [8,] 71.65 72.12 73.33 73.85 74.78 75.44 NA [9,] 71.65 72.25 73.51 73.88 74.85 75.54 NA [10,] 71.70 72.59 73.65 74.30 74.90 75.58 NA [11,] 71.73 72.72 73.65 74.53 74.96 75.59 NA [12,] 71.83 72.76 73.65 74.53 74.96 75.61 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/1vs691304970820.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/25par1304970820.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/3oxpq1304970820.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/4f1w81304970820.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,] 71.420 71.470 71.550 71.60 71.62 71.640 71.65 71.65 71.650 71.700 71.73 [2,] 71.830 71.870 71.910 71.99 72.10 72.120 72.12 72.12 72.250 72.590 72.72 [3,] 73.205 73.285 73.355 73.42 73.44 73.465 73.47 73.59 73.695 73.975 74.09 [4,] 74.530 74.530 74.650 74.65 74.65 74.710 74.71 74.78 74.850 74.900 74.96 [5,] 74.960 74.980 75.190 75.22 75.33 75.330 75.37 75.44 75.540 75.580 75.59 [,12] [1,] 71.83 [2,] 72.76 [3,] 74.09 [4,] 74.96 [5,] 75.61 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 71.46341 71.56921 71.58761 71.70421 71.79517 71.79437 71.79937 71.87421 [2,] 74.94659 75.00079 75.12239 75.13579 75.08483 75.13563 75.14063 75.30579 [,9] [,10] [,11] [,12] [1,] 72.01792 72.48498 72.64513 72.67093 [2,] 75.37208 75.46502 75.53487 75.50907 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(71.42, 71.83, 73.205, 74.53, 74.96, 71.47, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5ah8a1304970820.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] [1,] 71.470 71.83 72.760 73.650 74.530 74.960 NA [2,] 71.575 71.95 73.055 73.720 74.650 75.205 NA [3,] 71.645 72.12 73.160 73.775 74.710 75.350 NA [4,] 71.675 72.42 73.580 74.090 74.875 75.560 NA [5,] 71.730 72.76 73.650 74.530 74.960 75.610 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 71.59939 71.90563 72.92054 73.60624 74.60738 75.18808 NA [2,] 71.69061 72.33437 73.39946 73.94376 74.81262 75.51192 NA $out [1] 71.42 71.83 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(71.47, 71.575, 71.645, 71.675, 71.73, 71.83, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6i5fy1304970820.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,] 1.413275 3.510 1.87000 [2,] 1.435333 3.630 1.97125 [3,] 1.443461 3.715 2.09625 [4,] 1.455065 3.825 2.16625 [5,] 1.474821 3.890 2.24750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.434461 3.626059 2.007309 [2,] 1.452461 3.803941 2.185191 $out [1] 1.485701 $group [1] 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.41327515603532, 1.43533322153002, 1.44346099299883, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vs691304970820.ps tmp/1vs691304970820.png",intern=TRUE)) character(0) > try(system("convert tmp/25par1304970820.ps tmp/25par1304970820.png",intern=TRUE)) character(0) > try(system("convert tmp/3oxpq1304970820.ps tmp/3oxpq1304970820.png",intern=TRUE)) character(0) > try(system("convert tmp/4f1w81304970820.ps tmp/4f1w81304970820.png",intern=TRUE)) character(0) > try(system("convert tmp/5ah8a1304970820.ps tmp/5ah8a1304970820.png",intern=TRUE)) character(0) > try(system("convert tmp/6i5fy1304970820.ps tmp/6i5fy1304970820.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.380 0.950 2.316