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(2434,2637,1831,1851,1839,2609,2417,2394,2372,2717,2998,2538,3007,2475,2175,2465,2279,2323,2746,2601,2486,2718,2646,2551,2712,2606,2365,3533,3509,2912,3599,2719,2869,4085,2686,2545,3071,3388,2652,3190,2884,3295,3818,3226,3953,3810,2877,3515,3708,3450,3360,4098,4374,3703,4257,3487,3659,3904,2957,3320,3420,3500,2791,2919,3179,3016,3492,3034,2612,3525,2846,3212,2591) > 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] 73 > (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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2434 3007 2712 3071 3708 3420 2591 [2,] 2637 2475 2606 3388 3450 3500 NA [3,] 1831 2175 2365 2652 3360 2791 NA [4,] 1851 2465 3533 3190 4098 2919 NA [5,] 1839 2279 3509 2884 4374 3179 NA [6,] 2609 2323 2912 3295 3703 3016 NA [7,] 2417 2746 3599 3818 4257 3492 NA [8,] 2394 2601 2719 3226 3487 3034 NA [9,] 2372 2486 2869 3953 3659 2612 NA [10,] 2717 2718 4085 3810 3904 3525 NA [11,] 2998 2646 2686 2877 2957 2846 NA [12,] 2538 2551 2545 3515 3320 3212 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/1xz7k1210628994.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/22yml1210628994.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/3nxff1210628994.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/45j1m1210628994.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] [1,] 2434.0 2475.0 1831.0 1851.0 1839.0 2323 2417.0 2394.0 2372.0 2717.0 2646.0 [2,] 2651.5 2606.0 2175.0 2465.0 2279.0 2609 2746.0 2601.0 2486.0 2718.0 2686.0 [3,] 3007.0 3012.5 2508.5 3054.5 3031.5 2964 3545.5 2876.5 2740.5 3667.5 2861.5 [4,] 3245.5 3450.0 2791.0 3533.0 3509.0 3295 3818.0 3226.0 3659.0 3904.0 2957.0 [5,] 3708.0 3500.0 3360.0 4098.0 4374.0 3703 4257.0 3487.0 3953.0 4085.0 2998.0 [,12] [1,] 2538.0 [2,] 2545.0 [3,] 2881.5 [4,] 3320.0 [5,] 3515.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2652.273 2468.093 2111.16 2365.606 2238.110 2521.508 2854.025 2473.355 [2,] 3361.727 3556.907 2905.84 3743.394 3824.890 3406.492 4236.975 3279.645 [,9] [,10] [,11] [,12] [1,] 1983.877 2902.492 2686.696 2381.6 [2,] 3497.123 4432.508 3036.304 3381.4 $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(2434, 2651.5, 3007, 3245.5, 3708, 2475, 2606, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5ghj71210628994.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,] 1831.0 2175.0 2365 2652.0 2957 2612.0 2591 [2,] 2111.5 2394.0 2646 2977.5 3405 2882.5 2591 [3,] 2425.5 2518.5 2794 3260.5 3681 3106.5 2591 [4,] 2623.0 2682.0 3521 3662.5 4001 3456.0 2591 [5,] 2998.0 3007.0 4085 3953.0 4374 3525.0 2591 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2192.201 2387.141 2394.907 2948.067 3409.160 2844.923 2591 [2,] 2658.799 2649.859 3193.093 3572.933 3952.840 3368.077 2591 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1831, 2111.5, 2425.5, 2623, 2998, 2175, 2394, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6j7gz1210628994.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,] 142.3095 352.0 211.000 [2,] 454.0543 1059.0 544.000 [3,] 510.5223 1374.0 783.625 [4,] 672.0821 1710.5 906.375 [5,] 901.0586 2535.0 996.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 411.0784 1076.846 618.3433 [2,] 609.9663 1671.154 948.9067 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(142.309521817762, 454.054346185378, 510.52232155336, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xz7k1210628994.ps tmp/1xz7k1210628994.png") > system("convert tmp/22yml1210628994.ps tmp/22yml1210628994.png") > system("convert tmp/3nxff1210628994.ps tmp/3nxff1210628994.png") > system("convert tmp/45j1m1210628994.ps tmp/45j1m1210628994.png") > system("convert tmp/5ghj71210628994.ps tmp/5ghj71210628994.png") > system("convert tmp/6j7gz1210628994.ps tmp/6j7gz1210628994.png") > > > proc.time() user system elapsed 1.856 1.199 2.002