R version 2.6.2 (2008-02-08) 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.1591,1.1203,1.0886,1.0701,1.0630,1.0377,1.0370,1.0606,1.0497,1.0706,1.0328,1.0110,1.0131,0.9834,0.9643,0.9449,0.9059,0.9505,0.9386,0.9045,0.8695,0.8525,0.8552,0.8983,0.9376,0.9205,0.9083,0.8925,0.8753,0.8530,0.8615,0.9014,0.9114,0.9050,0.8883,0.8912,0.8832,0.8706,0.8766,0.8860,0.9170,0.9561,0.9935,0.9781,0.9806,0.9812,1.0013,1.0194,1.0622,1.0785,1.0805,1.0862,1.1556,1.1674,1.1365,1.1155,1.1266,1.1714,1.1710,1.2298,1.2638,1.2640,1.2261,1.1989,1.2000,1.2146,1.2266,1.2191,1.2224,1.2507,1.2997,1.3406) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.1591 1.0131 0.9376 0.8832 1.0622 1.2638 NA [2,] 1.1203 0.9834 0.9205 0.8706 1.0785 1.2640 NA [3,] 1.0886 0.9643 0.9083 0.8766 1.0805 1.2261 NA [4,] 1.0701 0.9449 0.8925 0.8860 1.0862 1.1989 NA [5,] 1.0630 0.9059 0.8753 0.9170 1.1556 1.2000 NA [6,] 1.0377 0.9505 0.8530 0.9561 1.1674 1.2146 NA [7,] 1.0370 0.9386 0.8615 0.9935 1.1365 1.2266 NA [8,] 1.0606 0.9045 0.9014 0.9781 1.1155 1.2191 NA [9,] 1.0497 0.8695 0.9114 0.9806 1.1266 1.2224 NA [10,] 1.0706 0.8525 0.9050 0.9812 1.1714 1.2507 NA [11,] 1.0328 0.8552 0.8883 1.0013 1.1710 1.2997 NA [12,] 1.0110 0.8983 0.8912 1.0194 1.2298 1.3406 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/freestat/rcomp/tmp/1ykgv1211021363.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/freestat/rcomp/tmp/2m66s1211021363.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/freestat/rcomp/tmp/3gm2k1211021363.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/freestat/rcomp/tmp/4pdwo1211021363.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,] 0.88320 0.87060 0.8766 0.8860 0.8753 0.8530 0.86150 0.90140 0.86950 0.8525 [2,] 0.93760 0.92050 0.9083 0.8925 0.9059 0.9505 0.93860 0.90450 0.91140 0.9050 [3,] 1.03765 1.03095 1.0224 1.0075 0.9900 0.9969 1.01525 1.01935 1.01515 1.0259 [4,] 1.15910 1.12030 1.0886 1.0862 1.1556 1.1674 1.13650 1.11550 1.12660 1.1714 [5,] 1.26380 1.26400 1.2261 1.1989 1.2000 1.2146 1.22660 1.21910 1.22240 1.2507 [,11] [,12] [1,] 0.85520 0.8912 [2,] 0.88830 0.8983 [3,] 1.01705 1.0152 [4,] 1.17100 1.2298 [5,] 1.29970 1.3406 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.8947753 0.9020725 0.9061007 0.8825572 0.8289354 0.8569925 0.8875981 [2,] 1.1805247 1.1598275 1.1386993 1.1324428 1.1510646 1.1368075 1.1429019 [,8] [,9] [,10] [,11] [,12] [1,] 0.8832482 0.876339 0.8540634 0.8346994 0.8013718 [2,] 1.1554518 1.153961 1.1977366 1.1994006 1.2290282 $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(0.8832, 0.9376, 1.03765, 1.1591, 1.2638, 0.8706, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5o2521211021363.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] [1,] 1.01100 0.85250 0.85300 0.87060 1.06220 1.19890 NA [2,] 1.03735 0.88390 0.88180 0.88460 1.08335 1.21685 NA [3,] 1.06180 0.92225 0.89695 0.96710 1.13155 1.22635 NA [4,] 1.07960 0.95740 0.90985 0.98735 1.16920 1.26390 NA [5,] 1.12030 1.01310 0.93760 1.01940 1.22980 1.29970 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.042529 0.8887262 0.8841562 0.920235 1.092393 1.204890 NA [2,] 1.081071 0.9557738 0.9097438 1.013965 1.170707 1.247810 NA $out [1] 1.1591 1.3406 $group [1] 1 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.011, 1.03735, 1.0618, 1.0796, 1.1203, 0.8525, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/66iyw1211021363.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.1252711 0.31290 0.159300 [2,] 0.1322781 0.33710 0.175100 [3,] 0.1390412 0.36335 0.178775 [4,] 0.1494831 0.39580 0.221025 [5,] 0.1692968 0.44940 0.250725 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1311939 0.3365765 0.1578283 [2,] 0.1468886 0.3901235 0.1997217 $out [1] 0.1822663 $group [1] 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.125271113988820, 0.132278136677577, 0.139041233939491, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ykgv1211021363.ps tmp/1ykgv1211021363.png") > system("convert tmp/2m66s1211021363.ps tmp/2m66s1211021363.png") > system("convert tmp/3gm2k1211021363.ps tmp/3gm2k1211021363.png") > system("convert tmp/4pdwo1211021363.ps tmp/4pdwo1211021363.png") > system("convert tmp/5o2521211021363.ps tmp/5o2521211021363.png") > system("convert tmp/66iyw1211021363.ps tmp/66iyw1211021363.png") > > > proc.time() user system elapsed 1.794 1.171 1.947