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(100,91.74,84.40,84.40,87.16,88.07,87.16,83.49,81.65,82.57,92.66,94.50,93.58,88.07,84.40,85.32,86.24,86.24,84.40,82.57,82.57,82.57,89.91,91.74,89.91,85.32,82.57,82.57,83.49,83.49,83.49,84.40,80.73,76.15,77.06,74.31,70.64,72.48,72.48,73.39,72.48,69.72,65.14,62.39,59.63,63.30,75.23,79.82,76.15,72.48,68.81,71.56,76.15,77.06,75.23,70.64,66.06,66.97,74.31,77.98) > 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,] 100.00 93.58 89.91 70.64 76.15 NA [2,] 91.74 88.07 85.32 72.48 72.48 NA [3,] 84.40 84.40 82.57 72.48 68.81 NA [4,] 84.40 85.32 82.57 73.39 71.56 NA [5,] 87.16 86.24 83.49 72.48 76.15 NA [6,] 88.07 86.24 83.49 69.72 77.06 NA [7,] 87.16 84.40 83.49 65.14 75.23 NA [8,] 83.49 82.57 84.40 62.39 70.64 NA [9,] 81.65 82.57 80.73 59.63 66.06 NA [10,] 82.57 82.57 76.15 63.30 66.97 NA [11,] 92.66 89.91 77.06 75.23 74.31 NA [12,] 94.50 91.74 74.31 79.82 77.98 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/1nwbu1257949874.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/24tra1257949874.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/3qw7u1257949874.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/4l22a1257949874.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,] 70.64 72.48 68.81 71.56 72.48 69.72 65.14 62.39 59.63 63.30 74.31 74.31 [2,] 76.15 72.48 72.48 73.39 76.15 77.06 75.23 70.64 66.06 66.97 75.23 77.98 [3,] 89.91 85.32 82.57 82.57 83.49 83.49 83.49 82.57 80.73 76.15 77.06 79.82 [4,] 93.58 88.07 84.40 84.40 86.24 86.24 84.40 83.49 81.65 82.57 89.91 91.74 [5,] 100.00 91.74 84.40 85.32 87.16 88.07 87.16 84.40 82.57 82.57 92.66 94.50 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 77.594 74.30415 74.14736 74.79036 76.36043 77.00344 77.0105 73.49022 [2,] 102.226 96.33585 90.99264 90.34964 90.61957 89.97656 89.9695 91.64978 [,9] [,10] [,11] [,12] [1,] 69.71415 65.12708 66.68715 70.09722 [2,] 91.74585 87.17292 87.43285 89.54278 $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(70.64, 76.15, 89.91, 93.58, 100, 72.48, 72.48, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/57w0x1257949874.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,] 81.650 82.570 74.310 59.630 66.060 NA [2,] 83.945 83.485 78.895 64.220 69.725 NA [3,] 87.160 85.780 83.030 71.560 73.395 NA [4,] 92.200 88.990 83.945 72.935 76.150 NA [5,] 100.000 93.580 89.910 79.820 77.980 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 83.39484 83.26913 80.72666 67.58503 70.46451 NA [2,] 90.92516 88.29087 85.33334 75.53497 76.32549 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(81.65, 83.945, 87.16, 92.2, 100, 82.57, 83.485, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zby11257949874.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,] 6.474220 13.760 9.170 [2,] 7.438317 16.970 10.550 [3,] 8.889294 19.265 13.305 [4,] 9.382009 22.015 15.590 [5,] 12.264593 29.360 17.430 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8.002763 16.96394 11.00622 [2,] 9.775825 21.56606 15.60378 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(6.47422041638991, 7.4383173373756, 8.88929422263892, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1nwbu1257949874.ps tmp/1nwbu1257949874.png") > system("convert tmp/24tra1257949874.ps tmp/24tra1257949874.png") > system("convert tmp/3qw7u1257949874.ps tmp/3qw7u1257949874.png") > system("convert tmp/4l22a1257949874.ps tmp/4l22a1257949874.png") > system("convert tmp/57w0x1257949874.ps tmp/57w0x1257949874.png") > system("convert tmp/6zby11257949874.ps tmp/6zby11257949874.png") > > > proc.time() user system elapsed 1.060 0.807 1.362