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(2465,1932,1993,2243,1758,1806,2063,1823,2137,2428,2139,2265,2615,2070,2794,2190,2434,2520,2063,2068,2537,1898,2139,2408,2725,2201,2311,2548,2276,2351,2280,2057,2479,2379,2295,2456,2546,2844,2260,2981,2678,3440,2842,2450,2669,2570,2540,2318,2930,2946,2799,2695,2498,2260,2160,2058,2533,2150,2172,2155,3016) > 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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2465 2615 2725 2546 2930 3016 [2,] 1932 2070 2201 2844 2946 NA [3,] 1993 2794 2311 2260 2799 NA [4,] 2243 2190 2548 2981 2695 NA [5,] 1758 2434 2276 2678 2498 NA [6,] 1806 2520 2351 3440 2260 NA [7,] 2063 2063 2280 2842 2160 NA [8,] 1823 2068 2057 2450 2058 NA [9,] 2137 2537 2479 2669 2533 NA [10,] 2428 1898 2379 2570 2150 NA [11,] 2139 2139 2295 2540 2172 NA [12,] 2265 2408 2456 2318 2155 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/1qz2k1258053465.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/2e3nm1258053465.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/3ol811258053465.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/4iez91258053465.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] [,11] [,12] [1,] 2465 1932 1993 2190 2276 2260 2063 2057 2479 1898 2139 2155 [2,] 2546 2070 2260 2243 2276 2260 2063 2057 2479 2150 2139 2265 [3,] 2670 2201 2311 2548 2434 2351 2160 2058 2533 2379 2172 2318 [4,] 2930 2844 2794 2695 2498 2520 2280 2068 2537 2428 2295 2408 [5,] 3016 2946 2799 2981 2678 2520 2280 2068 2537 2570 2295 2456 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2422.308 1654.094 1933.677 2228.618 2277.135 2167.285 2006.668 2050.227 [2,] 2917.692 2747.906 2688.323 2867.382 2590.865 2534.715 2313.332 2065.773 [,9] [,10] [,11] [,12] [1,] 2492.017 2182.566 2061.771 2216.957 [2,] 2573.983 2575.434 2282.229 2419.043 $out [1] 1758 1806 3440 2842 1823 2450 2137 2669 2540 $group [1] 5 6 6 7 8 8 9 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2465, 2546, 2670, 2930, 3016, 1932, 2070, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5zwu51258053465.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,] 1758.0 1898.0 2057.0 2260.0 2058.0 3016 [2,] 1877.5 2069.0 2278.0 2495.0 2157.5 3016 [3,] 2100.0 2299.0 2331.0 2619.5 2379.0 3016 [4,] 2254.0 2528.5 2467.5 2843.0 2747.0 3016 [5,] 2465.0 2794.0 2725.0 2981.0 2946.0 3016 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1928.276 2089.419 2244.568 2460.775 2110.125 3016 [2,] 2271.724 2508.581 2417.432 2778.225 2647.875 3016 $out [1] 3440 $group [1] 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1758, 1877.5, 2100, 2254, 2465, 1898, 2069, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60uop1258053465.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,] 118.8415 301.0 11.00 [2,] 208.7768 541.5 149.50 [3,] 294.8004 725.5 241.00 [4,] 352.2916 863.0 383.75 [5,] 464.4263 1014.0 534.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 229.3424 578.8617 134.157 [2,] 360.2585 872.1383 347.843 $out [1] 600.5021 1634.0000 774.0000 $group [1] 1 2 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(118.84149107109, 208.776803626556, 294.800435474036, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/1qz2k1258053465.ps tmp/1qz2k1258053465.png") > system("convert tmp/2e3nm1258053465.ps tmp/2e3nm1258053465.png") > system("convert tmp/3ol811258053465.ps tmp/3ol811258053465.png") > system("convert tmp/4iez91258053465.ps tmp/4iez91258053465.png") > system("convert tmp/5zwu51258053465.ps tmp/5zwu51258053465.png") > system("convert tmp/60uop1258053465.ps tmp/60uop1258053465.png") > > > proc.time() user system elapsed 1.061 0.801 6.232