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.1591,1.1203,1.0886,1.0701,1.0630,1.0377,1.0370,1.0605,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.8707,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.0797,1.0862,1.1556,1.1674,1.1365,1.1155,1.1267,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,1.3123,1.3013,1.3185,1.2943,1.2697,1.2155,1.2041,1.2295,1.2234,1.2022,1.1789,1.1861,1.2126,1.1940,1.2028,1.2273,1.2767,1.2661,1.2681,1.2810,1.2722,1.2617,1.2888,1.3205,1.2993,1.3080,1.3246,1.3513,1.3518,1.3421,1.3726,1.3626,1.3910,1.4233,1.4683,1.4559,1.4728,1.4759,1.5520,1.5754,1.5554,1.5562,1.5759,1.4955,1.4342,1.3266,1.2744,1.3511,1.3244,1.2797,1.3050,1.3199,1.3646,1.4014,1.4092,1.4266,1.4575,1.4821,1.4908,1.4579) > 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] 132 > (np <- floor(n / par1)) [1] 11 > 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 11 11 11 11 11 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 1.1591 1.0131 0.9376 0.8832 1.0622 1.2638 1.3123 1.2126 1.2993 1.4728 [2,] 1.1203 0.9834 0.9205 0.8707 1.0785 1.2640 1.3013 1.1940 1.3080 1.4759 [3,] 1.0886 0.9643 0.9083 0.8766 1.0797 1.2261 1.3185 1.2028 1.3246 1.5520 [4,] 1.0701 0.9449 0.8925 0.8860 1.0862 1.1989 1.2943 1.2273 1.3513 1.5754 [5,] 1.0630 0.9059 0.8753 0.9170 1.1556 1.2000 1.2697 1.2767 1.3518 1.5554 [6,] 1.0377 0.9505 0.8530 0.9561 1.1674 1.2146 1.2155 1.2661 1.3421 1.5562 [7,] 1.0370 0.9386 0.8615 0.9935 1.1365 1.2266 1.2041 1.2681 1.3726 1.5759 [8,] 1.0605 0.9045 0.9014 0.9781 1.1155 1.2191 1.2295 1.2810 1.3626 1.4955 [9,] 1.0497 0.8695 0.9114 0.9806 1.1267 1.2224 1.2234 1.2722 1.3910 1.4342 [10,] 1.0706 0.8525 0.9050 0.9812 1.1714 1.2507 1.2022 1.2617 1.4233 1.3266 [11,] 1.0328 0.8552 0.8883 1.0013 1.1710 1.2997 1.1789 1.2888 1.4683 1.2744 [12,] 1.0110 0.8983 0.8912 1.0194 1.2298 1.3406 1.1861 1.3205 1.4559 1.3511 [,11] [,12] [1,] 1.3244 NA [2,] 1.2797 NA [3,] 1.3050 NA [4,] 1.3199 NA [5,] 1.3646 NA [6,] 1.4014 NA [7,] 1.4092 NA [8,] 1.4266 NA [9,] 1.4575 NA [10,] 1.4821 NA [11,] 1.4908 NA [12,] 1.4579 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/1rl9l1274106609.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/2kuq51274106609.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/3kuq51274106609.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/4dl881274106609.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.88320 0.87070 0.87660 0.8860 0.87530 0.8530 0.86150 0.9014 0.86950 [2,] 1.03765 1.03095 1.02200 1.0075 0.99000 0.9969 1.01525 1.0193 1.01515 [3,] 1.21260 1.19400 1.20280 1.1989 1.20000 1.2146 1.20410 1.2191 1.22240 [4,] 1.30580 1.29050 1.31175 1.3071 1.31425 1.3041 1.32035 1.3218 1.33160 [5,] 1.47280 1.47590 1.55200 1.5754 1.55540 1.5562 1.57590 1.4955 1.45750 [,10] [,11] [,12] [1,] 0.85250 0.85520 0.89120 [2,] 1.02590 1.01705 1.01520 [3,] 1.20220 1.17890 1.22980 [4,] 1.29415 1.29425 1.34585 [5,] 1.48210 1.49080 1.45790 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.084857 1.070354 1.064767 1.056174 1.045531 1.068254 1.058754 1.074993 [2,] 1.340343 1.317646 1.340833 1.341626 1.354469 1.360946 1.349446 1.363207 [,9] [,10] [,11] [,12] [1,] 1.071647 1.074409 1.046845 1.072282 [2,] 1.373153 1.329991 1.310955 1.387318 $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, 1.03765, 1.2126, 1.3058, 1.4728, 0.8707, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5dl881274106609.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.85250 0.85300 0.87070 1.06220 1.19890 1.17890 1.19400 1.29930 [2,] 1.03735 0.88390 0.88180 0.88460 1.08295 1.21685 1.20315 1.21995 1.33335 [3,] 1.06175 0.92225 0.89695 0.96710 1.13160 1.22635 1.22645 1.26710 1.35720 [4,] 1.07960 0.95740 0.90985 0.98735 1.16920 1.26390 1.29780 1.27885 1.40715 [5,] 1.12030 1.01310 0.93760 1.01940 1.22980 1.29970 1.31850 1.32050 1.46830 [,10] [,11] [,12] [1,] 1.27440 1.27970 NA [2,] 1.39265 1.32215 NA [3,] 1.48570 1.40530 NA [4,] 1.55580 1.45770 NA [5,] 1.57590 1.49080 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.042479 0.8887262 0.8841562 0.920235 1.092261 1.204890 1.183279 1.240235 [2,] 1.081021 0.9557738 0.9097438 1.013965 1.170939 1.247810 1.269621 1.293965 [,9] [,10] [,11] [,12] [1,] 1.323539 1.411286 1.343475 NA [2,] 1.390861 1.560114 1.467125 NA $out [1] 1.1591 1.3406 $group [1] 1 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(1.011, 1.03735, 1.06175, 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/rcomp/tmp/6dl881274106609.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.2045262 0.56670 0.259550 [2,] 0.2048050 0.59185 0.272725 [3,] 0.2086854 0.63260 0.301050 [4,] 0.2148847 0.68475 0.311825 [5,] 0.2176136 0.71440 0.330650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.2040880 0.5902277 0.2832162 [2,] 0.2132828 0.6749723 0.3188838 $out [1] 0.1831062 0.1866289 $group [1] 1 1 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(0.204526186365196, 0.204805035377443, 0.208685423619375, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1rl9l1274106609.ps tmp/1rl9l1274106609.png",intern=TRUE)) character(0) > try(system("convert tmp/2kuq51274106609.ps tmp/2kuq51274106609.png",intern=TRUE)) character(0) > try(system("convert tmp/3kuq51274106609.ps tmp/3kuq51274106609.png",intern=TRUE)) character(0) > try(system("convert tmp/4dl881274106609.ps tmp/4dl881274106609.png",intern=TRUE)) character(0) > try(system("convert tmp/5dl881274106609.ps tmp/5dl881274106609.png",intern=TRUE)) character(0) > try(system("convert tmp/6dl881274106609.ps tmp/6dl881274106609.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.045 0.794 2.829