R version 2.8.1 (2008-12-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(95.05,96.84,96.92,97.44,97.78,97.69,96.67,98.29,98.2,98.71,98.54,98.2,96.92,99.06,99.65,99.82,99.99,100.33,99.31,101.1,101.1,100.93,100.85,100.93,99.6,101.88,101.81,102.38,102.74,102.82,101.72,103.47,102.98,102.68,102.9,103.03,101.29,103.69,103.68,104.2,104.08,104.16,103.05,104.66,104.46,104.95,105.85,106.23,104.86,107.44,108.23,108.45,109.39,110.15,109.13,110.28,110.17,109.99,109.26,109.11) > 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,] 95.05 96.92 99.60 101.29 104.86 NA [2,] 96.84 99.06 101.88 103.69 107.44 NA [3,] 96.92 99.65 101.81 103.68 108.23 NA [4,] 97.44 99.82 102.38 104.20 108.45 NA [5,] 97.78 99.99 102.74 104.08 109.39 NA [6,] 97.69 100.33 102.82 104.16 110.15 NA [7,] 96.67 99.31 101.72 103.05 109.13 NA [8,] 98.29 101.10 103.47 104.66 110.28 NA [9,] 98.20 101.10 102.98 104.46 110.17 NA [10,] 98.71 100.93 102.68 104.95 109.99 NA [11,] 98.54 100.85 102.90 105.85 109.26 NA [12,] 98.20 100.93 103.03 106.23 109.11 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/rcomp/tmp/1mbad1258023569.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/rcomp/tmp/2g9ic1258023569.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/rcomp/tmp/3l6id1258023569.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/rcomp/tmp/4fbnx1258023569.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,] 95.05 96.84 96.92 97.44 97.78 97.69 96.67 98.29 98.20 98.71 [2,] 96.92 99.06 99.65 99.82 99.99 100.33 99.31 101.10 101.10 100.93 [3,] 99.60 101.88 101.81 102.38 102.74 102.82 101.72 103.47 102.98 102.68 [4,] 101.29 103.69 103.68 104.20 104.08 104.16 103.05 104.66 104.46 104.95 [5,] 104.86 107.44 108.23 108.45 109.39 104.16 103.05 104.66 104.46 109.99 [,11] [,12] [1,] 98.54 98.20 [2,] 100.85 100.93 [3,] 102.90 103.03 [4,] 105.85 106.23 [5,] 109.26 109.11 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.51217 98.60845 98.96241 99.2851 99.85002 100.1137 99.07733 [2,] 102.68783 105.15155 104.65759 105.4749 105.62998 105.5263 104.36267 [,8] [,9] [,10] [,11] [,12] [1,] 100.9545 100.6058 99.83948 99.36701 99.28503 [2,] 105.9855 105.3542 105.52052 106.43299 106.77497 $out [1] 110.15 109.13 110.28 110.17 $group [1] 6 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(95.05, 96.92, 99.6, 101.29, 104.86, 96.84, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5n81t1258023569.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,] 95.050 99.06 101.720 103.050 107.440 NA [2,] 96.880 99.48 101.845 103.685 108.340 NA [3,] 97.735 100.16 102.710 104.180 109.195 NA [4,] 98.245 100.93 102.940 104.805 110.070 NA [5,] 98.710 101.10 103.470 106.230 110.280 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 97.11241 99.49865 102.2106 103.6692 108.4059 NA [2,] 98.35759 100.82135 103.2094 104.6908 109.9841 NA $out [1] 96.92 99.60 101.29 104.86 $group [1] 2 3 4 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(95.05, 96.88, 97.735, 98.245, 98.71, 99.06, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/62gkx1258023569.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,] 4.107788 9.810 3.360 [2,] 4.209602 10.815 3.785 [3,] 4.305123 11.295 4.060 [4,] 4.467402 11.980 4.505 [5,] 4.685643 12.460 5.300 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 4.187539 10.76364 3.731603 [2,] 4.422707 11.82636 4.388397 $out [1] 3.820763 $group [1] 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(4.10778772577162, 4.20960204749806, 4.30512325211781, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1mbad1258023569.ps tmp/1mbad1258023569.png") > system("convert tmp/2g9ic1258023569.ps tmp/2g9ic1258023569.png") > system("convert tmp/3l6id1258023569.ps tmp/3l6id1258023569.png") > system("convert tmp/4fbnx1258023569.ps tmp/4fbnx1258023569.png") > system("convert tmp/5n81t1258023569.ps tmp/5n81t1258023569.png") > system("convert tmp/62gkx1258023569.ps tmp/62gkx1258023569.png") > > > proc.time() user system elapsed 1.370 1.290 2.426