R version 2.7.0 (2008-04-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(0.9383,0.9217,0.9095,0.892,0.8742,0.8532,0.8607,0.9005,0.9111,0.9059,0.8883,0.8924,0.8833,0.87,0.8758,0.8858,0.917,0.9554,0.9922,0.9778,0.9808,0.9811,1.0014,1.0183,1.0622,1.0773,1.0807,1.0848,1.1582,1.1663,1.1372,1.1139,1.1222,1.1692,1.1702,1.2286,1.2613,1.2646,1.2262,1.1985,1.2007,1.2138,1.2266,1.2176,1.2218,1.249,1.2991,1.3408,1.3119,1.3014,1.3201,1.2938,1.2694,1.2165,1.2037,1.2292,1.2256,1.2015,1.1786,1.1856,1.2103,1.1938,1.202,1.2271,1.277,1.265,1.2684,1.2811,1.2727,1.2611,1.2881,1.3213,1.2999,1.3074,1.3242,1.3516,1.3511,1.3419,1.3716,1.3622,1.3896,1.4227,1.4684,1.457) > 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,] 0.9383 0.8833 1.0622 1.2613 1.3119 1.2103 1.2999 NA [2,] 0.9217 0.8700 1.0773 1.2646 1.3014 1.1938 1.3074 NA [3,] 0.9095 0.8758 1.0807 1.2262 1.3201 1.2020 1.3242 NA [4,] 0.8920 0.8858 1.0848 1.1985 1.2938 1.2271 1.3516 NA [5,] 0.8742 0.9170 1.1582 1.2007 1.2694 1.2770 1.3511 NA [6,] 0.8532 0.9554 1.1663 1.2138 1.2165 1.2650 1.3419 NA [7,] 0.8607 0.9922 1.1372 1.2266 1.2037 1.2684 1.3716 NA [8,] 0.9005 0.9778 1.1139 1.2176 1.2292 1.2811 1.3622 NA [9,] 0.9111 0.9808 1.1222 1.2218 1.2256 1.2727 1.3896 NA [10,] 0.9059 0.9811 1.1692 1.2490 1.2015 1.2611 1.4227 NA [11,] 0.8883 1.0014 1.1702 1.2991 1.1786 1.2881 1.4684 NA [12,] 0.8924 1.0183 1.2286 1.3408 1.1856 1.3213 1.4570 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/15lis1212176026.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/2y17v1212176026.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/3c5kg1212176026.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/407pj1212176026.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] [1,] 0.88330 0.8700 0.87580 0.88580 0.8742 0.85320 0.8607 0.90050 0.91110 [2,] 1.00025 0.9995 0.99510 0.98840 1.0376 1.06085 1.0647 1.04585 1.05150 [3,] 1.21030 1.1938 1.20200 1.19850 1.2007 1.21380 1.2037 1.21760 1.22180 [4,] 1.28060 1.2830 1.27315 1.26045 1.2732 1.24075 1.2475 1.25515 1.24915 [5,] 1.31190 1.3074 1.32420 1.35160 1.3511 1.34190 1.3716 1.36220 1.38960 [,10] [,11] [,12] [1,] 0.90590 0.8883 0.89240 [2,] 1.07515 1.0858 1.10195 [3,] 1.20150 1.1786 1.22860 [4,] 1.25505 1.2936 1.33105 [5,] 1.42270 1.4684 1.45700 $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.042880 1.024498 1.035953 1.036036 1.060003 1.106367 1.094535 1.092609 [2,] 1.377720 1.363102 1.368047 1.360964 1.341397 1.321233 1.312865 1.342591 [,9] [,10] [,11] [,12] [1,] 1.103767 1.094067 1.054505 1.091785 [2,] 1.339833 1.308933 1.302695 1.365415 $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.8833, 1.00025, 1.2103, 1.2806, 1.3119, 0.87, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5847o1212176026.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,] 0.85320 0.87000 1.06220 1.19850 1.1786 1.19380 1.29990 NA [2,] 0.88125 0.88455 1.08275 1.21570 1.2026 1.21870 1.33305 NA [3,] 0.89645 0.96660 1.12970 1.22640 1.2274 1.26670 1.35690 NA [4,] 0.91030 0.98665 1.16775 1.26295 1.2976 1.27905 1.40615 NA [5,] 0.93830 1.01830 1.22860 1.29910 1.3201 1.32130 1.46840 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.8832001 0.9200315 1.090931 1.204849 1.184070 1.239174 1.323559 NA [2,] 0.9096999 1.0131685 1.168469 1.247951 1.270730 1.294226 1.390241 NA $out [1] 1.3408 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(0.8532, 0.88125, 0.89645, 0.9103, 0.9383, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6rg5v1212176026.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.1663910 0.42860 0.179900 [2,] 0.1744450 0.45505 0.190225 [3,] 0.1788921 0.47770 0.219200 [4,] 0.1853216 0.51385 0.275050 [5,] 0.1953496 0.58010 0.283500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1739312 0.4508809 0.1805107 [2,] 0.1838530 0.5045191 0.2578893 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.166390959575848, 0.174444984841552, 0.178892066663007, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15lis1212176026.ps tmp/15lis1212176026.png") > system("convert tmp/2y17v1212176026.ps tmp/2y17v1212176026.png") > system("convert tmp/3c5kg1212176026.ps tmp/3c5kg1212176026.png") > system("convert tmp/407pj1212176026.ps tmp/407pj1212176026.png") > system("convert tmp/5847o1212176026.ps tmp/5847o1212176026.png") > system("convert tmp/6rg5v1212176026.ps tmp/6rg5v1212176026.png") > > > proc.time() user system elapsed 1.818 1.160 1.968