R version 2.8.0 (2008-10-20) 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(1.82,1.76,1.79,1.74,1.78,1.80,1.80,1.80,1.79,1.82,1.82,1.83,1.77,1.77,1.77,1.77,1.74,1.78,1.78,1.78,1.78,1.81,1.84,1.80,1.78,1.76,1.74,1.72,1.73,1.77,1.81,1.83,1.87,1.89,1.82,1.79,1.79,1.82,1.82,1.81,1.81,1.78,1.80,1.79,1.83,1.82,1.80,1.82,1.84,1.82,1.81,1.79,1.87,1.89,1.92,1.9,1.91,1.95,2.04,1.99,1.94,1.93,1.89,1.87,1.89,1.9,1.93,1.94,1.88,1.89,1.92,1.91,1.89,1.89,1.98,2.02,2.02,1.99,1.97,1.96,1.95,1.98,2.00,2.00) > 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,] 1.82 1.77 1.78 1.79 1.84 1.94 1.89 NA [2,] 1.76 1.77 1.76 1.82 1.82 1.93 1.89 NA [3,] 1.79 1.77 1.74 1.82 1.81 1.89 1.98 NA [4,] 1.74 1.77 1.72 1.81 1.79 1.87 2.02 NA [5,] 1.78 1.74 1.73 1.81 1.87 1.89 2.02 NA [6,] 1.80 1.78 1.77 1.78 1.89 1.90 1.99 NA [7,] 1.80 1.78 1.81 1.80 1.92 1.93 1.97 NA [8,] 1.80 1.78 1.83 1.79 1.90 1.94 1.96 NA [9,] 1.79 1.78 1.87 1.83 1.91 1.88 1.95 NA [10,] 1.82 1.81 1.89 1.82 1.95 1.89 1.98 NA [11,] 1.82 1.84 1.82 1.80 2.04 1.92 2.00 NA [12,] 1.83 1.80 1.79 1.82 1.99 1.91 2.00 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/1bslw1231363122.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/280291231363122.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/3unsm1231363122.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/44b0t1231363122.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,] 1.770 1.760 1.740 1.720 1.73 1.770 1.780 1.780 1.780 1.81 1.80 1.79 [2,] 1.785 1.765 1.780 1.755 1.76 1.780 1.800 1.795 1.810 1.82 1.82 1.81 [3,] 1.820 1.820 1.810 1.790 1.81 1.800 1.810 1.830 1.870 1.89 1.84 1.83 [4,] 1.865 1.855 1.855 1.840 1.88 1.895 1.925 1.920 1.895 1.92 1.96 1.95 [5,] 1.940 1.930 1.890 1.870 2.02 1.990 1.970 1.960 1.950 1.98 2.04 2.00 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.772225 1.766253 1.765211 1.739239 1.738338 1.731324 1.735352 1.755352 [2,] 1.867775 1.873747 1.854789 1.840761 1.881662 1.868676 1.884648 1.904648 [,9] [,10] [,11] [,12] [1,] 1.819239 1.830282 1.756394 1.746394 [2,] 1.920761 1.949718 1.923606 1.913606 $out [1] 1.98 2.02 $group [1] 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.77, 1.785, 1.82, 1.865, 1.94, 1.76, 1.765, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5w7tq1231363122.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] [1,] 1.740 1.74 1.720 1.780 1.790 1.870 1.890 NA [2,] 1.785 1.77 1.750 1.795 1.830 1.890 1.955 NA [3,] 1.800 1.78 1.785 1.810 1.895 1.905 1.980 NA [4,] 1.820 1.79 1.825 1.820 1.935 1.930 2.000 NA [5,] 1.830 1.81 1.890 1.830 2.040 1.940 2.020 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.784036 1.770878 1.750792 1.798597 1.847109 1.886756 1.959475 NA [2,] 1.815964 1.789122 1.819208 1.821403 1.942891 1.923244 2.000525 NA $out [1] 1.84 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1.74, 1.785, 1.8, 1.82, 1.83, 1.74, 1.77, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6s5et1231363122.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.06229729 0.17 0.0750 [2,] 0.06701025 0.17 0.0850 [3,] 0.07986342 0.20 0.1075 [4,] 0.09295001 0.24 0.1250 [5,] 0.10193369 0.30 0.1400 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.06803212 0.1680725 0.08925573 [2,] 0.09169471 0.2319275 0.12574427 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.0622972903178973, 0.0670102524313535, 0.0798634152398676, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1bslw1231363122.ps tmp/1bslw1231363122.png") > system("convert tmp/280291231363122.ps tmp/280291231363122.png") > system("convert tmp/3unsm1231363122.ps tmp/3unsm1231363122.png") > system("convert tmp/44b0t1231363122.ps tmp/44b0t1231363122.png") > system("convert tmp/5w7tq1231363122.ps tmp/5w7tq1231363122.png") > system("convert tmp/6s5et1231363122.ps tmp/6s5et1231363122.png") > > > proc.time() user system elapsed 1.048 0.838 2.020