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(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) > 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] 175 > (np <- floor(n / par1)) [1] 14 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 15 15 15 15 15 15 15 14 14 14 14 14 > 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] [1,] 2075 2265 [2,] 3264 3685 [3,] 3308 3754 [4,] 3688 3708 [5,] 3136 3210 [6,] 2824 3517 [7,] 3644 3905 [8,] 4694 NA [9,] 2914 NA [10,] 3686 NA [11,] 4358 NA [12,] 5587 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 348 362 -57 181 -45 217 -246 281 963 317 256 1049 [2,] 752 522 662 632 334 333 282 203 -315 591 688 -268 [3,] -640 -128 -345 -562 -186 7 -72 290 -325 -497 -420 -567 [4,] -188 -141 -31 247 366 872 118 -204 324 202 211 282 [5,] 499 -58 235 669 -612 -1023 -13 90 -84 -283 -360 537 [6,] -136 521 289 -599 554 172 572 456 1399 451 381 721 [7,] 881 969 155 907 1069 710 810 -359 -622 -269 98 -650 [8,] -1070 -1089 -633 -1114 -862 -847 -996 368 270 472 186 18 [9,] 780 25 272 219 16 276 118 473 -153 88 -109 250 [10,] 829 766 706 1020 884 506 787 341 872 842 668 438 [11,] -85 180 107 -253 302 530 397 20 -53 947 719 883 [12,] -1852 -1472 -1618 -1229 -1856 -1654 -2071 -1922 -1901 -2847 -2671 -2652 [,13] [,14] [,15] [1,] 700 1189 1420 [2,] 621 44 69 [3,] -525 380 -46 [4,] 11 -552 -498 [5,] -328 -312 307 [6,] 832 820 388 [7,] -471 1050 NA [8,] 386 -1780 NA [9,] 0 772 NA [10,] 830 672 NA [11,] 721 1229 NA [12,] -2954 -3322 NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/html/rcomp/tmp/1stv01272114656.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2stv01272114656.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/3l2ul1272114656.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4l2ul1272114656.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.0 2226.0 2521 2589.0 2895.0 2400.0 2851 3576 [2,] 2156.5 2426.5 2863 2495.0 2707.5 2728 3012.0 3315.0 2804.0 3055 3821 [3,] 2265.0 2570.0 3054 2828.0 2822.0 2798 3282.0 3492.5 3018.5 3329 4015 [4,] 2420.5 3045.0 3383 3004.5 3149.5 2966 3603.5 3869.0 3478.0 3622 4308 [5,] 2564.0 3685.0 3754 3708.0 3782.0 3244 4137.0 4694.0 3785.0 3736 4504 [,12] [1,] 3618 [2,] 4001 [3,] 4209 [4,] 4904 [5,] 5587 $n [1] 15 15 15 15 15 15 15 14 14 14 14 14 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2157.3 2317.680 2841.864 2620.147 2641.684 2700.907 3040.695 3258.561 [2,] 2372.7 2822.320 3266.136 3035.853 3002.316 2895.093 3523.305 3726.439 [,9] [,10] [,11] [,12] [1,] 2733.888 3089.571 3809.353 3827.688 [2,] 3303.112 3568.429 4220.647 4590.312 $out [1] 3438 2246 3517 $group [1] 6 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1954, 2156.5, 2265, 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/rcomp/tmp/5vbb61272114656.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -246.0 -315.0 -640 -552.0 -1023 172.0 -650.0 -1780 -153.0 438.0 -253.0 [2,] 199.0 136.0 -511 -164.5 -320 335.0 -359.0 -1070 16.0 668.0 20.0 [3,] 317.0 334.0 -325 118.0 -58 456.0 432.5 -740 168.5 776.5 349.5 [4,] 831.5 626.5 -59 264.5 271 646.5 907.0 270 276.0 842.0 721.0 [5,] 1420.0 752.0 380 872.0 669 832.0 1069.0 472 473.0 1020.0 1229.0 [,12] [1,] -3322.0 [2,] -2671.0 [3,] -1911.5 [4,] -1654.0 [5,] -1229.0 $n [1] 15 15 15 15 15 15 14 14 14 14 14 14 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 58.96894 133.8984 -509.3953 -57.01237 -299.1010 328.9223 -102.0973 [2,] 575.03106 534.1016 -140.6047 293.01237 183.1010 583.0777 967.0973 [,8] [,9] [,10] [,11] [,12] [1,] -1305.8455 58.70908 703.0245 53.48679 -2340.951 [2,] -174.1545 278.29092 849.9755 645.51321 -1482.049 $out [1] -136 -599 1399 780 772 341 $group [1] 6 6 6 9 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-246, 199, 317, 831.5, 1420, -315, 136, 334, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vbb61272114656.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] [1,] 2211.0 2252 2075 3210.0 [2,] 2849.5 3000 3025 3363.5 [3,] 3287.5 3285 3476 3685.0 [4,] 3774.0 3568 4023 3731.0 [5,] 4904.0 4308 4694 3905.0 $n [1] 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] [1,] 2787.838 2947.11 3121.562 2865.829 3025.931 3020.806 3465.535 [2,] 3865.162 3546.89 3616.438 3709.171 3544.069 3931.194 3904.465 $out [1] 5411 4882 5029 5587 2265 $group [1] 10 11 13 14 15 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" 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/rcomp/tmp/7vbb61272114656.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 2283.333 2265.00 2288.500 [2,] 2856.033 2810.00 2798.375 [3,] 3097.536 3036.25 3129.375 [4,] 3453.143 3410.75 3462.500 [5,] 4048.071 4209.00 4052.625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2825.190 2762.244 2826.463 [2,] 3369.881 3310.256 3432.287 $out [1] 4451.214 4461.750 $group [1] 1 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2283.33333333333, 2856.03333333333, 3097.53571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1stv01272114656.ps tmp/1stv01272114656.png",intern=TRUE)) character(0) > try(system("convert tmp/2stv01272114656.ps tmp/2stv01272114656.png",intern=TRUE)) character(0) > try(system("convert tmp/3l2ul1272114656.ps tmp/3l2ul1272114656.png",intern=TRUE)) character(0) > try(system("convert tmp/4l2ul1272114656.ps tmp/4l2ul1272114656.png",intern=TRUE)) character(0) > try(system("convert tmp/5vbb61272114656.ps tmp/5vbb61272114656.png",intern=TRUE)) character(0) > try(system("convert tmp/6vbb61272114656.ps tmp/6vbb61272114656.png",intern=TRUE)) character(0) > try(system("convert tmp/7vbb61272114656.ps tmp/7vbb61272114656.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.187 0.931 1.721