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(1.74,1.75,1.83,2.09,2.12,2.29,2.4,2.82,3.18,4,4.8,5.28,5.37,5.27,5.33,5.23,5.08,5.11,5.1,4.97,5,5.2,4.9,4.82,5.04,4.82,4.77,4.79,4.58,4.59,4.57,4.35,4.27,4.39,3.97,3.84,3.73,3.58,3.45,3.44,3.25,3.25,3.02,2.87,2.92,2.95,2.75,2.7,2.75,2.72,2.71,2.76,2.68,2.78,2.86,2.75,2.87,2.91,2.79,2.77) > 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,] 1.74 5.37 5.04 3.73 2.75 NA [2,] 1.75 5.27 4.82 3.58 2.72 NA [3,] 1.83 5.33 4.77 3.45 2.71 NA [4,] 2.09 5.23 4.79 3.44 2.76 NA [5,] 2.12 5.08 4.58 3.25 2.68 NA [6,] 2.29 5.11 4.59 3.25 2.78 NA [7,] 2.40 5.10 4.57 3.02 2.86 NA [8,] 2.82 4.97 4.35 2.87 2.75 NA [9,] 3.18 5.00 4.27 2.92 2.87 NA [10,] 4.00 5.20 4.39 2.95 2.91 NA [11,] 4.80 4.90 3.97 2.75 2.79 NA [12,] 5.28 4.82 3.84 2.70 2.77 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/1e1rj1258125001.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/2qjkd1258125001.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/315i01258125001.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/4gttw1258125001.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.74 1.75 1.83 2.09 2.12 2.29 2.40 2.75 2.87 2.91 2.75 2.70 [2,] 2.75 2.72 2.71 2.76 2.68 2.78 2.86 2.82 2.92 2.95 2.79 2.77 [3,] 3.73 3.58 3.45 3.44 3.25 3.25 3.02 2.87 3.18 4.00 3.97 3.84 [4,] 5.04 4.82 4.77 4.79 4.58 4.59 4.57 4.35 4.27 4.39 4.80 4.82 [5,] 5.37 5.27 5.33 5.23 5.08 5.11 5.10 4.97 5.00 5.20 4.90 5.28 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.111892 2.096145 1.994409 2.005607 1.907465 1.971059 1.811718 1.788906 [2,] 5.348108 5.063855 4.905591 4.874393 4.592535 4.528941 4.228282 3.951094 [,9] [,10] [,11] [,12] [1,] 2.226093 2.982500 2.549739 2.391475 [2,] 4.133907 5.017500 5.390261 5.288525 $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(1.74, 2.75, 3.73, 5.04, 5.37, 1.75, 2.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5mf8u1258125001.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,] 1.740 4.820 3.840 2.700 2.680 NA [2,] 1.960 4.985 4.310 2.895 2.735 NA [3,] 2.345 5.105 4.575 3.135 2.765 NA [4,] 3.590 5.250 4.780 3.445 2.825 NA [5,] 5.280 5.370 5.040 3.730 2.910 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.601546 4.984132 4.36063 2.884141 2.723950 NA [2,] 3.088454 5.225868 4.78937 3.385859 2.806050 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1.74, 1.96, 2.345, 3.59, 5.28, 4.82, 4.985, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6dvda1258125001.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.9446004 2.130 1.350 [2,] 1.0394862 2.255 1.620 [3,] 1.1876479 2.760 1.955 [4,] 1.3850816 3.320 2.055 [5,] 1.5269348 3.630 2.290 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.030019 2.274246 1.756594 [2,] 1.345276 3.245754 2.153406 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.944600444632544, 1.03948619430113, 1.18764787824279, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/1e1rj1258125001.ps tmp/1e1rj1258125001.png") > system("convert tmp/2qjkd1258125001.ps tmp/2qjkd1258125001.png") > system("convert tmp/315i01258125001.ps tmp/315i01258125001.png") > system("convert tmp/4gttw1258125001.ps tmp/4gttw1258125001.png") > system("convert tmp/5mf8u1258125001.ps tmp/5mf8u1258125001.png") > system("convert tmp/6dvda1258125001.ps tmp/6dvda1258125001.png") > > > proc.time() user system elapsed 1.131 0.875 1.735