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.1608,1.1208,1.0883,1.0704,1.0628,1.0378,1.0353,1.0604,1.0501,1.0706,1.0338,1.0110,1.0137,0.9834,0.9643,0.9470,0.9060,0.9492,0.9397,0.9041,0.8721,0.8552,0.8564,0.8973,0.9383,0.9217,0.9095,0.8920,0.8742,0.8532,0.8607,0.9005,0.9111,0.9059,0.8883,0.8924,0.8833,0.8700,0.8758,0.8858,0.9170,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.2490,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.2020,1.2271,1.2770,1.2650,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.4570,1.4718,1.4748,1.5527,1.5750,1.5557,1.5553,1.5770,1.4975,1.4369,1.3322,1.2732,1.3449,1.3239) > 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] 121 > (np <- floor(n / par1)) [1] 10 > 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] 11 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 1.1608 1.0137 0.9383 0.8833 1.0622 1.2613 1.3119 1.2103 1.2999 1.4718 [2,] 1.1208 0.9834 0.9217 0.8700 1.0773 1.2646 1.3014 1.1938 1.3074 1.4748 [3,] 1.0883 0.9643 0.9095 0.8758 1.0807 1.2262 1.3201 1.2020 1.3242 1.5527 [4,] 1.0704 0.9470 0.8920 0.8858 1.0848 1.1985 1.2938 1.2271 1.3516 1.5750 [5,] 1.0628 0.9060 0.8742 0.9170 1.1582 1.2007 1.2694 1.2770 1.3511 1.5557 [6,] 1.0378 0.9492 0.8532 0.9554 1.1663 1.2138 1.2165 1.2650 1.3419 1.5553 [7,] 1.0353 0.9397 0.8607 0.9922 1.1372 1.2266 1.2037 1.2684 1.3716 1.5770 [8,] 1.0604 0.9041 0.9005 0.9778 1.1139 1.2176 1.2292 1.2811 1.3622 1.4975 [9,] 1.0501 0.8721 0.9111 0.9808 1.1222 1.2218 1.2256 1.2727 1.3896 1.4369 [10,] 1.0706 0.8552 0.9059 0.9811 1.1692 1.2490 1.2015 1.2611 1.4227 1.3322 [11,] 1.0338 0.8564 0.8883 1.0014 1.1702 1.2991 1.1786 1.2881 1.4684 1.2732 [12,] 1.0110 0.8973 0.8924 1.0183 1.2286 1.3408 1.1856 1.3213 1.4570 1.3449 [,11] [1,] 1.3239 [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] 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/161va1243450702.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/2l47k1243450702.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/3l3ot1243450702.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/4luro1243450702.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.87420 0.85320 0.86070 0.90050 0.8721 [2,] 1.03795 0.9834 0.96430 0.94700 0.91700 0.95540 0.99220 0.97780 0.9808 [3,] 1.21030 1.1573 1.14515 1.14165 1.17945 1.19005 1.17045 1.16575 1.1720 [4,] 1.30590 1.3014 1.32010 1.29380 1.27700 1.26500 1.26840 1.28110 1.2727 [5,] 1.47180 1.4748 1.55270 1.57500 1.55570 1.55530 1.57700 1.49750 1.4369 [,10] [,11] [,12] [1,] 0.85520 0.8564 0.8924 [2,] 0.98110 1.0014 1.0110 [3,] 1.18535 1.1744 1.2071 [4,] 1.26110 1.2881 1.3408 [5,] 1.42270 1.4684 1.4570 $n [1] 11 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.082652 0.9984145 0.9673781 0.9683749 0.9995796 1.035361 1.032449 [2,] 1.337948 1.3161855 1.3229219 1.3149251 1.3593204 1.344739 1.308451 [,8] [,9] [,10] [,11] [,12] [1,] 1.014209 1.026155 1.045451 1.031153 1.042319 [2,] 1.317291 1.317845 1.325249 1.317647 1.371881 $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.03795, 1.2103, 1.3059, 1.4718, 0.87, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5h6fr1243450702.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] [,9] [1,] 1.01100 0.85520 0.85320 0.87000 1.06220 1.19850 1.1786 1.19380 1.29990 [2,] 1.03655 0.88470 0.88125 0.88455 1.08275 1.21570 1.2026 1.21870 1.33305 [3,] 1.06160 0.92285 0.89645 0.96660 1.12970 1.22640 1.2274 1.26670 1.35690 [4,] 1.07945 0.95675 0.91030 0.98665 1.16775 1.26295 1.2976 1.27905 1.40615 [5,] 1.12080 1.01370 0.93830 1.01830 1.22860 1.29910 1.3201 1.32130 1.46840 [,10] [,11] [1,] 1.27320 1.3239 [2,] 1.39090 1.3239 [3,] 1.48615 1.3239 [4,] 1.55550 1.3239 [5,] 1.57700 1.3239 $n [1] 12 12 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.042033 0.8899875 0.8832001 0.9200315 1.090931 1.204849 1.184070 1.239174 [2,] 1.081167 0.9557125 0.9096999 1.0131685 1.168469 1.247951 1.270730 1.294226 [,9] [,10] [,11] [1,] 1.323559 1.411075 1.3239 [2,] 1.390241 1.561225 1.3239 $out [1] 1.1608 1.3408 $group [1] 1 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(1.011, 1.03655, 1.0616, 1.07945, 1.1208, 0.8552, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65ftt1243450702.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.1825765 0.56460 0.254600 [2,] 0.1932065 0.57800 0.265375 [3,] 0.2005106 0.60840 0.275875 [4,] 0.2140763 0.68535 0.301250 [5,] 0.2206901 0.71630 0.323100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1909918 0.559437 0.2595122 [2,] 0.2100295 0.657363 0.2922378 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.182576510487571, 0.193206515501414, 0.200510631941882, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/161va1243450702.ps tmp/161va1243450702.png") > system("convert tmp/2l47k1243450702.ps tmp/2l47k1243450702.png") > system("convert tmp/3l3ot1243450702.ps tmp/3l3ot1243450702.png") > system("convert tmp/4luro1243450702.ps tmp/4luro1243450702.png") > system("convert tmp/5h6fr1243450702.ps tmp/5h6fr1243450702.png") > system("convert tmp/65ftt1243450702.ps tmp/65ftt1243450702.png") > > > proc.time() user system elapsed 1.091 0.840 1.767