R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(14.14,14.16,14.21,14.26,14.29,14.32,14.33,14.39,14.48,14.44,14.46,14.48,14.53,14.58,14.62,14.62,14.61,14.65,14.68,14.7,14.78,14.84,14.89,14.89,15.13,15.25,15.33,15.36,15.4,15.4,15.41,15.47,15.54,15.55,15.59,15.65,15.75,15.86,15.89,15.94,15.93,15.95,15.99,15.99,16.06,16.08,16.07,16.11,16.15,16.18,16.3,16.42,16.49,16.5,16.58,16.64,16.66,16.81,16.91,16.92,16.95,17.11,17.16,17.16,17.27,17.34,17.39,17.43,17.45,17.5,17.56,17.65,17.62,17.7,17.72,17.71,17.74,17.75,17.78,17.8,17.86,17.88,17.89,17.94) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14.14 14.53 15.13 15.75 16.15 16.95 17.62 NA [2,] 14.16 14.58 15.25 15.86 16.18 17.11 17.70 NA [3,] 14.21 14.62 15.33 15.89 16.30 17.16 17.72 NA [4,] 14.26 14.62 15.36 15.94 16.42 17.16 17.71 NA [5,] 14.29 14.61 15.40 15.93 16.49 17.27 17.74 NA [6,] 14.32 14.65 15.40 15.95 16.50 17.34 17.75 NA [7,] 14.33 14.68 15.41 15.99 16.58 17.39 17.78 NA [8,] 14.39 14.70 15.47 15.99 16.64 17.43 17.80 NA [9,] 14.48 14.78 15.54 16.06 16.66 17.45 17.86 NA [10,] 14.44 14.84 15.55 16.08 16.81 17.50 17.88 NA [11,] 14.46 14.89 15.59 16.07 16.91 17.56 17.89 NA [12,] 14.48 14.89 15.65 16.11 16.92 17.65 17.94 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/wessaorg/rcomp/tmp/13hor1326701655.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/wessaorg/rcomp/tmp/2gilw1326701655.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/wessaorg/rcomp/tmp/3f0du1326701655.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/wessaorg/rcomp/tmp/4vdfo1326701655.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,] 14.14 14.160 14.210 14.26 14.290 14.320 14.330 14.390 14.480 14.440 14.460 [2,] 14.83 14.915 14.975 14.99 15.005 15.025 15.045 15.085 15.160 15.195 15.240 [3,] 15.75 15.860 15.890 15.94 15.930 15.950 15.990 15.990 16.060 16.080 16.070 [4,] 16.55 16.645 16.730 16.79 16.880 16.920 16.985 17.035 17.055 17.155 17.235 [5,] 17.62 17.700 17.720 17.71 17.740 17.750 17.780 17.800 17.860 17.880 17.890 [,12] [1,] 14.480 [2,] 15.270 [3,] 16.110 [4,] 17.285 [5,] 17.940 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14.72284 14.82687 14.84194 14.86507 14.81028 14.81834 14.83146 14.82549 [2,] 16.77716 16.89313 16.93806 17.01493 17.04972 17.08166 17.14854 17.15451 [,9] [,10] [,11] [,12] [1,] 14.92834 14.90952 14.87862 14.90667 [2,] 17.19166 17.25048 17.26138 17.31333 $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(14.14, 14.83, 15.75, 16.55, 17.62, 14.16, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5qo501326701655.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] [,8] [1,] 14.140 14.530 15.130 15.750 16.150 16.950 17.620 NA [2,] 14.235 14.615 15.345 15.910 16.360 17.160 17.715 NA [3,] 14.325 14.665 15.405 15.970 16.540 17.365 17.765 NA [4,] 14.450 14.810 15.545 16.065 16.735 17.475 17.870 NA [5,] 14.480 14.890 15.650 16.110 16.920 17.650 17.940 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14.22694 14.57606 15.31378 15.8993 16.36896 17.22133 17.6943 NA [2,] 14.42306 14.75394 15.49622 16.0407 16.71104 17.50867 17.8357 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(14.14, 14.235, 14.325, 14.45, 14.48, 14.53, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6h1aq1326701655.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.262388 3.38 1.7200 [2,] 1.284266 3.43 1.7775 [3,] 1.297614 3.45 1.8950 [4,] 1.309212 3.47 1.9550 [5,] 1.330750 3.51 2.0150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.286236 3.431756 1.814041 [2,] 1.308992 3.468244 1.975959 $out [1] 3.54 $group [1] 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1.26238813742993, 1.28426602554092, 1.29761389974244, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/13hor1326701655.ps tmp/13hor1326701655.png",intern=TRUE)) character(0) > try(system("convert tmp/2gilw1326701655.ps tmp/2gilw1326701655.png",intern=TRUE)) character(0) > try(system("convert tmp/3f0du1326701655.ps tmp/3f0du1326701655.png",intern=TRUE)) character(0) > try(system("convert tmp/4vdfo1326701655.ps tmp/4vdfo1326701655.png",intern=TRUE)) character(0) > try(system("convert tmp/5qo501326701655.ps tmp/5qo501326701655.png",intern=TRUE)) character(0) > try(system("convert tmp/6h1aq1326701655.ps tmp/6h1aq1326701655.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.353 0.353 1.710