R version 2.8.0 (2008-10-20) 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(1954,2302,3054,2414,2226,2725,2589,3470,2400,3180,4009,3924,2072,2434,2956,2828,2687,2629,3150,4119,3030,3055,3821,4001,2529,2472,3134,2789,2758,2993,3282,3437,2804,3076,3782,3889,2271,2452,3084,2522,2769,3438,2839,3746,2632,2851,3871,3618,2389,2344,2678,2492,2858,2246,2800,3869,3007,3023,3907,4209,2353,2570,2903,2910,3782,2759,2931,3641,2794,3070,3576,4106,2452,2206,2488,2416,2534,2521,3093,3903,2907,3025,3812,4209,2138,2419,2622,2912,2708,2798,3254,2895,3263,3736,4077,4097,2175,3138,2823,2498,2822,2738,4137,3515,3785,3632,4504,4451,2550,2867,3458,2961,3163,2880,3331,3062,3534,3622,4464,5411,2564,2820,3508,3088,3299,2939,3320,3418,3604,3495,4163,4882,2211,3260,2992,2425,2707,3244,3965,3315,3333,3583,4021,4904,2252,2952,3573,3048,3059,2731,3563,3092,3478,3478,4308,5029,2075,3264,3308,3688,3136,2824,3644,4694,2914,3686,4358,5587,2265,3685,3754,3708,3210,3517,3905,3670,4221,4404,5086,5725,2367,3819,4067,4022,3937,4365,4290) > 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] 187 > (np <- floor(n / par1)) [1] 15 > 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] 16 16 16 16 16 16 16 15 15 15 15 15 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 1954 2072 2529 2271 2389 2353 2452 2138 2175 2550 2564 2211 2252 [2,] 2302 2434 2472 2452 2344 2570 2206 2419 3138 2867 2820 3260 2952 [3,] 3054 2956 3134 3084 2678 2903 2488 2622 2823 3458 3508 2992 3573 [4,] 2414 2828 2789 2522 2492 2910 2416 2912 2498 2961 3088 2425 3048 [5,] 2226 2687 2758 2769 2858 3782 2534 2708 2822 3163 3299 2707 3059 [6,] 2725 2629 2993 3438 2246 2759 2521 2798 2738 2880 2939 3244 2731 [7,] 2589 3150 3282 2839 2800 2931 3093 3254 4137 3331 3320 3965 3563 [8,] 3470 4119 3437 3746 3869 3641 3903 2895 3515 3062 3418 3315 3092 [9,] 2400 3030 2804 2632 3007 2794 2907 3263 3785 3534 3604 3333 3478 [10,] 3180 3055 3076 2851 3023 3070 3025 3736 3632 3622 3495 3583 3478 [11,] 4009 3821 3782 3871 3907 3576 3812 4077 4504 4464 4163 4021 4308 [12,] 3924 4001 3889 3618 4209 4106 4209 4097 4451 5411 4882 4904 5029 [,14] [,15] [,16] [1,] 2075 2265 2367 [2,] 3264 3685 3819 [3,] 3308 3754 4067 [4,] 3688 3708 4022 [5,] 3136 3210 3937 [6,] 2824 3517 4365 [7,] 3644 3905 4290 [8,] 4694 3670 NA [9,] 2914 4221 NA [10,] 3686 4404 NA [11,] 4358 5086 NA [12,] 5587 5725 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/1rk5n1275814084.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/2kun81275814084.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/3kun81275814084.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/4clmb1275814084.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,] 1954.0 2206.0 2488 2414 2226.0 2246.0 2589.0 2895.0 2400.0 2851.0 3576 [2,] 2156.5 2426.5 2863 2495 2707.5 2728.0 3012.0 3366.5 2855.5 3062.5 3846 [3,] 2268.0 2695.0 3069 2869 2840.0 2811.0 3301.0 3515.0 3030.0 3478.0 4021 [4,] 2420.5 3199.0 3483 3068 3186.5 3118.5 3774.5 3807.5 3506.0 3627.0 4333 [5,] 2564.0 3819.0 4067 3708 3782.0 3517.0 4290.0 4119.0 4221.0 4404.0 4504 [,12] [1,] 3618.0 [2,] 4049.0 [3,] 4209.0 [4,] 4966.5 [5,] 5725.0 $n [1] 16 16 16 16 16 16 16 15 15 15 15 15 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2163.72 2389.863 2824.1 2642.665 2650.795 2656.753 2999.812 3335.092 [2,] 2372.28 3000.137 3313.9 3095.335 3029.205 2965.247 3602.188 3694.908 [,9] [,10] [,11] [,12] [1,] 2764.626 3247.71 3822.326 3834.702 [2,] 3295.374 3708.29 4219.674 4583.298 $out [1] 4022 3937 4365 4694 5086 $group [1] 4 5 6 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1954, 2156.5, 2268, 2420.5, 2564, 2206, 2426.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5clmb1275814084.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] [,10] [,11] [1,] 1954 2072.0 2472.0 2271 2246.0 2353.0 2206.0 2138.0 2175.0 2550.0 2564.0 [2,] 2351 2658.0 2773.5 2577 2440.5 2776.5 2470.0 2665.0 2780.0 2920.5 3013.5 [3,] 2657 2993.0 3034.5 2845 2829.0 2920.5 2720.5 2903.5 3326.5 3247.0 3369.0 [4,] 3325 3485.5 3359.5 3528 3446.0 3608.5 3452.5 3499.5 3961.0 3578.0 3556.0 [5,] 4009 4119.0 3889.0 3871 4209.0 4106.0 4209.0 4097.0 4504.0 4464.0 4163.0 [,12] [,13] [,14] [,15] [,16] [1,] 2211.0 2252 2075 3210.0 3819.0 [2,] 2849.5 3000 3025 3593.5 3878.0 [3,] 3287.5 3285 3476 3731.0 4022.0 [4,] 3774.0 3568 4023 4312.5 4178.5 [5,] 4904.0 4308 4694 5086.0 4365.0 $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2212.752 2615.572 2767.221 2411.243 2370.385 2541.019 2272.375 2522.879 [2,] 3101.248 3370.428 3301.779 3278.757 3287.615 3299.981 3168.625 3284.121 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 2787.838 2947.11 3121.562 2865.829 3025.931 3020.806 3403.059 3842.546 [2,] 3865.162 3546.89 3616.438 3709.171 3544.069 3931.194 4058.941 4201.454 $out [1] 5411 4882 5029 5587 2265 5725 2367 $group [1] 10 11 13 14 15 15 16 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] NA Warning message: In bxp(list(stats = c(1954, 2351, 2657, 3325, 4009, 2072, 2658, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6clmb1275814084.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,] 379.7047 1510 239.000 [2,] 420.1857 1566 454.000 [3,] 467.9086 1657 563.000 [4,] 500.0960 1810 653.625 [5,] 501.4645 2119 917.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 431.4610 1545.71 471.9497 [2,] 504.3562 1768.29 654.0503 $out [1] 182.0901 670.9770 610.0000 $group [1] 1 1 2 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(379.704672206227, 420.185697787056, 467.908578410533, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1rk5n1275814084.ps tmp/1rk5n1275814084.png",intern=TRUE)) character(0) > try(system("convert tmp/2kun81275814084.ps tmp/2kun81275814084.png",intern=TRUE)) character(0) > try(system("convert tmp/3kun81275814084.ps tmp/3kun81275814084.png",intern=TRUE)) character(0) > try(system("convert tmp/4clmb1275814084.ps tmp/4clmb1275814084.png",intern=TRUE)) character(0) > try(system("convert tmp/5clmb1275814084.ps tmp/5clmb1275814084.png",intern=TRUE)) character(0) > try(system("convert tmp/6clmb1275814084.ps tmp/6clmb1275814084.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.625 1.243 1.806