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(2430.47 + ,2516.3 + ,2633.63 + ,2799.84 + ,3001.93 + ,3229.29 + ,3173.02 + ,3322.08 + ,3417.88 + ,3486.95 + ,3016.22 + ,2709.61 + ,2914.87 + ,3203.08 + ,3320.25 + ,3446.25 + ,3456.85 + ,3566.53 + ,3763.67 + ,3607.75 + ,3747.38 + ,3623.91 + ,3699.76 + ,3629.61 + ,3911.52 + ,4281.47 + ,4742.42 + ,4522.42 + ,4879.79 + ,5059.11 + ,5093.19 + ,4941.81 + ,4832.67 + ,4876.18 + ,5018.07 + ,4780.34 + ,4953.59 + ,4622.32 + ,4557.13 + ,4560.03 + ,4105.66 + ,4004.89 + ,4277.26 + ,4245.98 + ,4057.64 + ,3931.42 + ,3637.15 + ,3339.91 + ,3465.74 + ,3571.25 + ,3706.93 + ,3584.17 + ,3552.11 + ,3695.24 + ,3510 + ,3357.7 + ,3060.91 + ,2736.98 + ,2709.45 + ,2314.96 + ,2561.29 + ,2663.49 + ,2407.87 + ,2237.74 + ,2165.44 + ,2098.89 + ,2318.54 + ,2315.49 + ,2395.47 + ,2474.07 + ,2479.57 + ,2386.92 + ,2537.84 + ,2567.13 + ,2660.37 + ,2696.28 + ,2748.5 + ,2663.32 + ,2707.69 + ,2669.36 + ,2687.68 + ,2650.24 + ,2620.03 + ,2668.47 + ,2692.06 + ,2737.67 + ,2774.77 + ,2819.19 + ,2892.56 + ,2866.08 + ,2817.41 + ,2934.75 + ,3036.54 + ,3139.5 + ,3114.31 + ,3261.3 + ,3201.79 + ,3264.53 + ,3349.1 + ,3446.17 + ,3469.48 + ,3507.13 + ,3536.2 + ,3359.05 + ,3378.85 + ,3449.15 + ,3522.89 + ,3551.04 + ,3669.15 + ,3602 + ,3697.22 + ,3760.9 + ,3665.08 + ,3708.8 + ,3858.21 + ,3933.16 + ,3946.98 + ,3794.29 + ,3765.56 + ,3820.33 + ,3885.12 + ,3752.67 + ,3683.79 + ,3240.75 + ,3188.82 + ,3017.98 + ,3237.2 + ,3182.53 + ,2906.42 + ,2881.35 + ,2915.64 + ,2635.13 + ,2331.43 + ,2159.04 + ,2065.46 + ,1983.48 + ,1770.41 + ,1815.99 + ,2026.97 + ,2124.81 + ,2098.28 + ,2291.39 + ,2401.57 + ,2453.89 + ,2409.53) > 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] 145 > (np <- floor(n / par1)) [1] 12 > 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] 13 12 12 12 12 12 12 12 12 12 12 12 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 2430.47 2914.87 3911.52 4953.59 3465.74 2561.29 2537.84 2692.06 3201.79 [2,] 2516.30 3203.08 4281.47 4622.32 3571.25 2663.49 2567.13 2737.67 3264.53 [3,] 2633.63 3320.25 4742.42 4557.13 3706.93 2407.87 2660.37 2774.77 3349.10 [4,] 2799.84 3446.25 4522.42 4560.03 3584.17 2237.74 2696.28 2819.19 3446.17 [5,] 3001.93 3456.85 4879.79 4105.66 3552.11 2165.44 2748.50 2892.56 3469.48 [6,] 3229.29 3566.53 5059.11 4004.89 3695.24 2098.89 2663.32 2866.08 3507.13 [7,] 3173.02 3763.67 5093.19 4277.26 3510.00 2318.54 2707.69 2817.41 3536.20 [8,] 3322.08 3607.75 4941.81 4245.98 3357.70 2315.49 2669.36 2934.75 3359.05 [9,] 3417.88 3747.38 4832.67 4057.64 3060.91 2395.47 2687.68 3036.54 3378.85 [10,] 3486.95 3623.91 4876.18 3931.42 2736.98 2474.07 2650.24 3139.50 3449.15 [11,] 3016.22 3699.76 5018.07 3637.15 2709.45 2479.57 2620.03 3114.31 3522.89 [12,] 2709.61 3629.61 4780.34 3339.91 2314.96 2386.92 2668.47 3261.30 3551.04 [,10] [,11] [,12] [,13] [1,] 3669.15 3885.12 2331.43 2409.53 [2,] 3602.00 3752.67 2159.04 NA [3,] 3697.22 3683.79 2065.46 NA [4,] 3760.90 3240.75 1983.48 NA [5,] 3665.08 3188.82 1770.41 NA [6,] 3708.80 3017.98 1815.99 NA [7,] 3858.21 3237.20 2026.97 NA [8,] 3933.16 3182.53 2124.81 NA [9,] 3946.98 2906.42 2098.28 NA [10,] 3794.29 2881.35 2291.39 NA [11,] 3765.56 2915.64 2401.57 NA [12,] 3820.33 2635.13 2453.89 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 85.83 288.21 369.95 -331.27 105.51 102.20 29.29 45.61 62.74 [2,] 117.33 117.17 460.95 -65.19 135.68 -255.62 93.24 37.10 84.57 [3,] 166.21 126.00 -220.00 2.90 -122.76 -170.13 35.91 44.42 97.07 [4,] 202.09 10.60 357.37 -454.37 -32.06 -72.30 52.22 73.37 23.31 [5,] 227.36 109.68 179.32 -100.77 143.13 -66.55 -85.18 -26.48 37.65 [6,] -56.27 197.14 34.08 272.37 -185.24 219.65 44.37 -48.67 29.07 [7,] 149.06 -155.92 -151.38 -31.28 -152.30 -3.05 -38.33 117.34 -177.15 [8,] 95.80 139.63 -109.14 -188.34 -296.79 79.98 18.32 101.79 19.80 [9,] 69.07 -123.47 43.51 -126.22 -323.93 78.60 -37.44 102.96 70.30 [10,] -470.73 75.85 141.89 -294.27 -27.53 5.50 -30.21 -25.19 73.74 [11,] -306.61 -70.15 -237.73 -297.24 -394.49 -92.65 48.44 146.99 28.15 [12,] 205.26 281.91 173.25 125.83 246.33 150.92 23.59 -59.51 118.11 [,10] [,11] [,12] [,13] [1,] -67.15 -132.45 -172.39 NA [2,] 95.22 -68.88 -93.58 NA [3,] 63.68 -443.04 -81.98 NA [4,] -95.82 -51.93 -213.07 NA [5,] 43.72 -170.84 45.58 NA [6,] 149.41 219.22 210.98 NA [7,] 74.95 -54.67 97.84 NA [8,] 13.82 -276.11 -26.53 NA [9,] -152.69 -25.07 193.11 NA [10,] -28.73 34.29 110.18 NA [11,] 54.77 -280.51 52.32 NA [12,] 64.79 -303.70 -44.36 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/1tyir1260966095.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/2esro1260966095.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/3nra01260966095.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/407j31260966095.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] [1,] 2331.43 2159.040 2065.460 1983.480 1770.410 1815.99 2026.97 2124.810 [2,] 2537.84 2615.310 2647.000 2748.060 2820.530 2764.70 2762.55 2802.055 [3,] 2914.87 3233.805 3334.675 3343.460 3322.835 3368.21 3373.60 3339.890 [4,] 3669.15 3677.335 3702.075 3672.535 3608.595 3702.02 3810.94 3770.455 [5,] 4953.59 4622.320 4742.420 4560.030 4105.660 5059.11 5093.19 4941.810 [,9] [,10] [,11] [,12] [1,] 2098.28 2291.390 2401.570 2314.960 [2,] 2797.05 2693.610 2664.740 2544.510 [3,] 3219.88 3294.325 3065.265 2985.455 [4,] 3847.18 3709.100 3668.455 3590.325 [5,] 4832.67 4876.180 5018.070 4780.340 $n [1] 13 12 12 12 12 12 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2419.115 2749.408 2853.448 2921.801 2963.393 2940.692 2895.422 2898.196 [2,] 3410.625 3718.202 3815.902 3765.119 3682.277 3795.728 3851.778 3781.584 [,9] [,10] [,11] [,12] [1,] 2740.909 2831.153 2607.464 2508.452 [2,] 3698.851 3757.497 3523.066 3462.458 $out [1] 4879.79 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2331.43, 2537.84, 2914.87, 3669.15, 4953.59, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55v4q1260966095.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] [1,] -331.270 -255.620 -443.040 -213.070 -170.840 -185.24 -177.150 -296.79 [2,] -99.800 -67.035 -146.445 -84.060 -75.865 -9.80 -151.840 -148.74 [3,] 54.175 88.905 19.405 -10.730 40.685 96.89 -34.805 16.07 [4,] 103.855 117.250 80.375 62.795 126.405 215.10 86.395 87.89 [5,] 369.950 135.680 166.210 202.090 227.360 272.37 149.060 139.63 [,9] [,10] [,11] [,12] [1,] -323.930 -30.210 -394.490 -303.700 [2,] -124.845 -29.470 -288.875 -10.385 [3,] 9.220 -9.845 -81.400 121.970 [4,] 74.450 74.795 50.380 189.255 [5,] 193.110 141.890 146.990 281.910 $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -38.71341 4.851374 -84.04912 -77.71155 -51.5717 -5.6884 -143.46558 [2,] 147.06341 172.958626 122.85912 56.25155 132.9417 199.4684 73.85558 [,8] [,9] [,10] [,11] [,12] [1,] -91.85853 -81.67979 -57.40097 -236.13648 30.91286 [2,] 123.99853 100.11979 37.71097 73.33648 213.02714 $out [1] 460.95 357.37 -454.37 -470.73 -294.27 $group [1] 2 4 4 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-331.270000000000, -99.8, 54.1750000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6kud71260966095.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] [1,] 2430.470 3203.080 4281.470 3339.910 2314.960 2098.890 2567.130 2692.060 [2,] 2671.620 3383.250 4632.420 3968.155 2898.945 2276.615 2635.135 2796.090 [3,] 3009.075 3587.140 4854.425 4175.820 3487.870 2391.195 2665.895 2879.320 [4,] 3275.685 3664.685 4979.940 4558.580 3577.710 2476.820 2691.980 3075.425 [5,] 3486.950 3763.670 5093.190 4953.590 3706.930 2663.490 2748.500 3261.300 [,9] [,10] [,11] [,12] [,13] [1,] 3201.790 3602.000 2635.130 1770.410 2409.53 [2,] 3354.075 3683.185 2911.030 2005.225 2409.53 [3,] 3447.660 3763.230 3185.675 2111.545 2409.53 [4,] 3515.010 3839.270 3462.270 2311.410 2409.53 [5,] 3551.040 3946.980 3885.120 2453.890 2409.53 $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2733.557 3458.776 4695.919 3906.523 3178.281 2299.88 2639.968 2751.913 [2,] 3284.593 3715.504 5012.931 4445.117 3797.459 2482.51 2691.822 3006.727 [,9] [,10] [,11] [,12] [,13] [1,] 3374.256 3692.039 2934.251 1971.892 2409.53 [2,] 3521.064 3834.421 3437.099 2251.198 2409.53 $out [1] 2914.87 3911.52 2537.84 $group [1] 2 3 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" NA Warning message: In bxp(list(stats = c(2430.47, 2671.62, 3009.075, 3275.685, 3486.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7dws81260966095.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,] 3241.386 2914.870 3080.251 [2,] 3241.535 3142.573 3154.741 [3,] 3263.770 3308.580 3196.026 [4,] 3298.568 3341.675 3267.881 [5,] 3359.947 3373.600 3324.507 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3237.756 3217.768 3144.422 [2,] 3289.783 3399.392 3247.630 $out [1] 3151.108 3129.293 $group [1] 1 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3241.38583333333, 3241.53541666667, 3263.76958333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1tyir1260966095.ps tmp/1tyir1260966095.png",intern=TRUE)) character(0) > try(system("convert tmp/2esro1260966095.ps tmp/2esro1260966095.png",intern=TRUE)) character(0) > try(system("convert tmp/3nra01260966095.ps tmp/3nra01260966095.png",intern=TRUE)) character(0) > try(system("convert tmp/407j31260966095.ps tmp/407j31260966095.png",intern=TRUE)) character(0) > try(system("convert tmp/55v4q1260966095.ps tmp/55v4q1260966095.png",intern=TRUE)) character(0) > try(system("convert tmp/6kud71260966095.ps tmp/6kud71260966095.png",intern=TRUE)) character(0) > try(system("convert tmp/7dws81260966095.ps tmp/7dws81260966095.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.220 0.946 1.567