R version 2.7.0 (2008-04-22) Copyright (C) 2008 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(11.73,11.74,11.65,11.38,11.53,11.75,11.82,11.83,11.63,11.55,11.4,11.4,11.63,11.46,11.35,11.7,11.52,11.64,11.9,11.73,11.7,11.54,11.97,11.64,11.98,11.79,11.66,11.96,11.83,12.36,12.53,12.55,12.53,12.24,12.34,12.05,12.22,12.23,11.92,12.13,12.1,12.15,12.23,12.08,12.02,11.93,12.16,11.87,11.93,11.79,11.43,11.63,11.93,11.89,11.83,11.59,12.04,11.81,11.9,11.72,11.91,11.94,11.91,11.84,12.01,11.89,11.8,11.7,11.5,11.76,11.61,11.27,11.64,11.39,11.54,11.62,11.59,11.44,11.31,11.56,11.4,11.51,11.5,11.24,11.8,11.87,11.86,12.11,11.92,12.61,13.34,13.31,13.47,13.3,13.18,13.24) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 11.73 11.63 11.98 12.22 11.93 11.91 11.64 11.80 NA [2,] 11.74 11.46 11.79 12.23 11.79 11.94 11.39 11.87 NA [3,] 11.65 11.35 11.66 11.92 11.43 11.91 11.54 11.86 NA [4,] 11.38 11.70 11.96 12.13 11.63 11.84 11.62 12.11 NA [5,] 11.53 11.52 11.83 12.10 11.93 12.01 11.59 11.92 NA [6,] 11.75 11.64 12.36 12.15 11.89 11.89 11.44 12.61 NA [7,] 11.82 11.90 12.53 12.23 11.83 11.80 11.31 13.34 NA [8,] 11.83 11.73 12.55 12.08 11.59 11.70 11.56 13.31 NA [9,] 11.63 11.70 12.53 12.02 12.04 11.50 11.40 13.47 NA [10,] 11.55 11.54 12.24 11.93 11.81 11.76 11.51 13.30 NA [11,] 11.40 11.97 12.34 12.16 11.90 11.61 11.50 13.18 NA [12,] 11.40 11.64 12.05 11.87 11.72 11.27 11.24 13.24 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/17xoa1216200172.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/2dpni1216200172.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/3u2c91216200172.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/4wfp41216200172.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] [1,] 11.630 11.390 11.350 11.380 11.520 11.440 11.310 11.560 11.400 11.510 [2,] 11.685 11.600 11.485 11.625 11.560 11.695 11.810 11.645 11.565 11.545 [3,] 11.855 11.790 11.655 11.770 11.875 11.890 11.865 11.780 11.860 11.785 [4,] 11.955 11.905 11.885 12.035 11.970 12.255 12.380 12.315 12.285 12.085 [5,] 12.220 12.230 11.920 12.130 12.100 12.610 12.530 13.310 12.530 12.240 [,11] [,12] [1,] 11.400 11.240 [2,] 11.555 11.335 [3,] 11.935 11.680 [4,] 12.250 11.960 [5,] 13.180 12.050 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.70417 11.61962 11.43155 11.54097 11.64597 11.57718 11.54659 11.40573 [2,] 12.00583 11.96038 11.87845 11.99903 12.10403 12.20282 12.18341 12.15427 [,9] [,10] [,11] [,12] [1,] 11.45780 11.48335 11.54676 11.33087 [2,] 12.26220 12.08665 12.32324 12.02913 $out [1] 13.34 13.47 13.30 13.24 $group [1] 7 9 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11.63, 11.685, 11.855, 11.955, 12.22, 11.39, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5x0ja1216200172.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] [1,] 11.380 11.350 11.660 11.870 11.430 11.500 11.240 11.800 NA [2,] 11.465 11.530 11.895 11.975 11.675 11.655 11.395 11.895 NA [3,] 11.640 11.640 12.145 12.115 11.820 11.820 11.505 12.895 NA [4,] 11.745 11.715 12.445 12.190 11.915 11.910 11.575 13.305 NA [5,] 11.830 11.970 12.550 12.230 12.040 12.010 11.640 13.470 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.51229 11.55562 11.89414 12.01694 11.71053 11.70369 11.4229 12.25189 [2,] 11.76771 11.72438 12.39586 12.21306 11.92947 11.93631 11.5871 13.53811 [,9] [1,] NA [2,] NA $out [1] 11.27 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(11.38, 11.465, 11.64, 11.745, 11.83, 11.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6or4p1216200172.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,] 0.1974842 0.570 0.21750 [2,] 0.2445408 0.670 0.36500 [3,] 0.4801751 1.460 0.47000 [4,] 0.6098870 1.895 0.53625 [5,] 0.6834981 2.070 0.62250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.3135382 0.9012693 0.3918917 [2,] 0.6468119 2.0187307 0.5481083 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.197484176581315, 0.244540823512675, 0.480175067964811, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/17xoa1216200172.ps tmp/17xoa1216200172.png") > system("convert tmp/2dpni1216200172.ps tmp/2dpni1216200172.png") > system("convert tmp/3u2c91216200172.ps tmp/3u2c91216200172.png") > system("convert tmp/4wfp41216200172.ps tmp/4wfp41216200172.png") > system("convert tmp/5x0ja1216200172.ps tmp/5x0ja1216200172.png") > system("convert tmp/6or4p1216200172.ps tmp/6or4p1216200172.png") > > > proc.time() user system elapsed 1.253 0.812 2.371