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(91.46,90.24,93.90,96.34,93.90,86.59,75.61,70.73,74.39,84.15,89.02,87.80,74.39,70.73,74.39,78.05,82.93,82.93,79.27,75.61,76.83,78.05,80.49,81.71,78.05,82.93,85.37,84.15,86.59,87.80,86.59,85.37,84.15,81.71,80.49,84.15,89.02,96.34,100.00,100.00,100.00,98.78,96.34,93.90,93.90,92.68,91.46,91.46,86.59,91.46,91.46,95.12,95.12,95.12,92.68,91.46,93.90,98.78,97.56,92.68,80.49,79.27,82.93,91.46,97.56,100.00,98.78,96.34,96.34,92.68,91.46,92.68,89.02,91.46,92.68,91.46,92.68,95.12,96.34,95.12,91.46,80.49,76.83,76.83,73.17,76.83,78.05,76.83,76.83,78.05,81.71,81.71,82.93,75.61,70.73,68.29,65.85,69.51,70.73,67.07,65.85,65.85,65.85,67.07,68.29,69.51,70.73,65.85,59.76,63.41,67.07,71.95,76.83,79.27,78.05,78.05,80.49,82.93,87.80) > 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] 119 > (np <- floor(n / par1)) [1] 9 > 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 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 91.46 74.39 78.05 89.02 86.59 80.49 89.02 73.17 65.85 59.76 [2,] 90.24 70.73 82.93 96.34 91.46 79.27 91.46 76.83 69.51 63.41 [3,] 93.90 74.39 85.37 100.00 91.46 82.93 92.68 78.05 70.73 67.07 [4,] 96.34 78.05 84.15 100.00 95.12 91.46 91.46 76.83 67.07 71.95 [5,] 93.90 82.93 86.59 100.00 95.12 97.56 92.68 76.83 65.85 76.83 [6,] 86.59 82.93 87.80 98.78 95.12 100.00 95.12 78.05 65.85 79.27 [7,] 75.61 79.27 86.59 96.34 92.68 98.78 96.34 81.71 65.85 78.05 [8,] 70.73 75.61 85.37 93.90 91.46 96.34 95.12 81.71 67.07 78.05 [9,] 74.39 76.83 84.15 93.90 93.90 96.34 91.46 82.93 68.29 80.49 [10,] 84.15 78.05 81.71 92.68 98.78 92.68 80.49 75.61 69.51 82.93 [11,] 89.02 80.49 80.49 91.46 97.56 91.46 76.83 70.73 70.73 87.80 [12,] 87.80 81.71 84.15 91.46 92.68 92.68 76.83 68.29 65.85 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/1k9qm1258138913.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/2256i1258138913.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/3sy9u1258138913.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/4ajz91258138913.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] [1,] 59.76 63.41 67.07 67.070 65.850 65.850 65.85 67.07 68.29 69.51 70.730 [2,] 73.17 70.73 74.39 76.830 76.830 79.270 78.05 75.61 76.83 78.05 76.830 [3,] 79.27 81.10 84.15 87.805 89.635 87.195 84.15 83.54 83.54 82.32 84.145 [4,] 89.02 91.46 92.68 95.120 95.120 95.120 96.34 93.90 93.90 92.68 91.460 [5,] 91.46 96.34 100.00 100.000 100.000 100.000 98.78 96.34 96.34 98.78 97.560 [,12] [1,] 65.85 [2,] 76.83 [3,] 84.15 [4,] 91.46 [5,] 92.68 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 71.35071 70.74247 75.01159 78.66659 80.49659 79.27571 75.01159 74.40159 [2,] 87.18929 91.45753 93.28841 96.94341 98.77341 95.11429 93.28841 92.67841 [,9] [,10] [,11] [,12] [1,] 75.01115 75.01027 76.83527 76.44487 [2,] 92.06885 89.62973 91.45473 91.85513 $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(59.76, 73.17, 79.27, 89.02, 91.46, 63.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5kxdw1258138913.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] [,7] [,8] [,9] [,10] [1,] 70.73 70.73 78.05 89.02 86.59 79.270 76.830 68.29 65.85 59.76 [2,] 79.88 75.00 82.32 92.07 91.46 87.195 84.755 74.39 65.85 69.51 [3,] 88.41 78.05 84.15 95.12 93.29 92.680 91.460 76.83 67.07 78.05 [4,] 92.68 81.10 85.98 99.39 95.12 96.950 93.900 79.88 69.51 79.88 [5,] 96.34 82.93 87.80 100.00 98.78 100.000 96.340 82.93 70.73 87.80 $n [1] 12 12 12 12 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 82.57183 75.26775 82.48065 91.7813 91.62065 88.23068 87.2889 74.32597 [2,] 94.24817 80.83225 85.81935 98.4587 94.95935 97.12932 95.6311 79.33403 [,9] [,10] [1,] 65.40065 73.10986 [2,] 68.73935 82.99014 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(70.73, 79.88, 88.41, 92.68, 96.34, 70.73, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6euap1258138913.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,] 8.834633 26.830 11.8875 [2,] 9.828816 28.660 14.7825 [3,] 10.694491 32.315 16.0025 [4,] 10.990465 32.930 17.0700 [5,] 11.286393 34.150 18.9000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.16466 30.36742 14.95916 [2,] 11.22433 34.26258 17.04584 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(8.8346331748032, 9.82881589659035, 10.6944908951871, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1k9qm1258138913.ps tmp/1k9qm1258138913.png") > system("convert tmp/2256i1258138913.ps tmp/2256i1258138913.png") > system("convert tmp/3sy9u1258138913.ps tmp/3sy9u1258138913.png") > system("convert tmp/4ajz91258138913.ps tmp/4ajz91258138913.png") > system("convert tmp/5kxdw1258138913.ps tmp/5kxdw1258138913.png") > system("convert tmp/6euap1258138913.ps tmp/6euap1258138913.png") > > > proc.time() user system elapsed 1.042 0.804 1.297