R version 2.7.0 (2008-04-22) 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(3032.93,3045.78,3110.52,3013.24,2987.1,2995.55,2833.18,2848.96,2794.83,2845.26,2915.02,2892.63,2604.42,2641.65,2659.81,2638.53,2720.25,2745.88,2735.7,2811.7,2799.43,2555.28,2304.98,2214.95,2065.81,1940.49,2042,1995.37,1946.81,1765.9,1635.25,1833.42,1910.43,1959.67,1969.6,2061.41,2093.48,2120.88,2174.56,2196.72,2350.44,2440.25,2408.64,2472.81,2407.6,2454.62,2448.05,2497.84,2645.64,2756.76,2849.27,2921.44,2981.85,3080.58,3106.22,3119.31,3061.26,3097.31,3161.69,3257.16,3277.01,3295.32,3363.99,3494.17,3667.03,3813.06,3917.96,3895.51,3801.06,3570.12,3701.61,3862.27,3970.1,4138.52,4199.75,4290.89,4443.91,4502.64,4356.98,4591.27,4696.96,4621.4,4562.84,4202.52,4296.49,4435.23,4105.18,4116.68,3844.49,3720.98,3674.4,3857.62,3801.06,3504.37,3032.6,3047.03,2962.34,2197.82,2014.45) > 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] 99 > (np <- floor(n / par1)) [1] 8 > 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] 9 9 9 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 3032.93 2604.42 2065.81 2093.48 2645.64 3277.01 3970.10 4296.49 2962.34 [2,] 3045.78 2641.65 1940.49 2120.88 2756.76 3295.32 4138.52 4435.23 2197.82 [3,] 3110.52 2659.81 2042.00 2174.56 2849.27 3363.99 4199.75 4105.18 2014.45 [4,] 3013.24 2638.53 1995.37 2196.72 2921.44 3494.17 4290.89 4116.68 NA [5,] 2987.10 2720.25 1946.81 2350.44 2981.85 3667.03 4443.91 3844.49 NA [6,] 2995.55 2745.88 1765.90 2440.25 3080.58 3813.06 4502.64 3720.98 NA [7,] 2833.18 2735.70 1635.25 2408.64 3106.22 3917.96 4356.98 3674.40 NA [8,] 2848.96 2811.70 1833.42 2472.81 3119.31 3895.51 4591.27 3857.62 NA [9,] 2794.83 2799.43 1910.43 2407.60 3061.26 3801.06 4696.96 3801.06 NA [10,] 2845.26 2555.28 1959.67 2454.62 3097.31 3570.12 4621.40 3504.37 NA [11,] 2915.02 2304.98 1969.60 2448.05 3161.69 3701.61 4562.84 3032.60 NA [12,] 2892.63 2214.95 2061.41 2497.84 3257.16 3862.27 4202.52 3047.03 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 12.85 37.23 -125.32 27.40 111.12 18.31 168.42 138.74 -764.52 [2,] 64.74 18.16 101.51 53.68 92.51 68.67 61.23 -330.05 -183.37 [3,] -97.28 -21.28 -46.63 22.16 72.17 130.18 91.14 11.50 NA [4,] -26.14 81.72 -48.56 153.72 60.41 172.86 153.02 -272.19 NA [5,] 8.45 25.63 -180.91 89.81 98.73 146.03 58.73 -123.51 NA [6,] -162.37 -10.18 -130.65 -31.61 25.64 104.90 -145.66 -46.58 NA [7,] 15.78 76.00 198.17 64.17 13.09 -22.45 234.29 183.22 NA [8,] -54.13 -12.27 77.01 -65.21 -58.05 -94.45 105.69 -56.56 NA [9,] 50.43 -244.15 49.24 47.02 36.05 -230.94 -75.56 -296.69 NA [10,] 69.76 -250.30 9.93 -6.57 64.38 131.49 -58.56 -471.77 NA [11,] -22.39 -90.03 91.81 49.79 95.47 160.66 -360.32 14.43 NA [12,] -288.21 -149.14 32.07 147.80 19.85 107.83 93.97 -84.69 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/147i01229091183.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/2etdf1229091183.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/36u4a1229091183.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/4bvbg1229091183.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,] 2065.81 1940.49 2014.45 1995.370 1946.810 1765.900 1635.25 1833.420 [2,] 2604.42 2197.82 2174.56 2417.625 2535.345 2593.065 2572.17 2642.255 [3,] 2962.34 2756.76 2849.27 2967.340 2984.475 3038.065 2969.70 2984.135 [4,] 3277.01 3295.32 3363.99 3805.425 3755.760 3767.020 3796.18 3876.565 [5,] 3970.10 4435.23 4199.75 4290.890 4443.910 4502.640 4356.98 4591.270 [,9] [,10] [,11] [,12] [1,] 1910.430 1959.670 1969.600 2061.410 [2,] 2601.215 2504.950 2376.515 2356.395 [3,] 2930.345 2971.285 2973.810 2969.830 [4,] 3801.060 3537.245 3431.650 3559.715 [5,] 4696.960 4621.400 4562.840 4202.520 $n [1] 9 9 9 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2608.109 2178.743 2222.837 2192.095 2302.734 2382.277 2285.950 2294.632 [2,] 3316.571 3334.777 3475.703 3742.585 3666.216 3693.853 3653.450 3673.638 [,9] [,10] [,11] [,12] [1,] 2260.094 2394.63 2384.396 2297.638 [2,] 3600.596 3547.94 3563.224 3642.022 $out [1] 4296.49 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2065.81, 2604.42, 2962.34, 3277.01, 3970.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5fkpi1229091183.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] [1,] -125.32 18.16 -97.280 -272.190 -180.91 -162.370 -22.450 -94.450 -296.690 [2,] 12.85 18.16 -33.955 -37.350 -57.53 -138.155 14.435 -61.630 -237.545 [3,] 27.40 61.23 16.830 71.065 42.18 -39.095 70.085 -55.345 -19.755 [4,] 111.12 68.67 81.655 153.370 94.27 7.730 190.695 32.370 48.130 [5,] 168.42 101.51 130.180 172.860 146.03 104.900 234.290 105.690 50.430 [,10] [,11] [,12] [1,] -471.77 -90.03 -288.210 [2,] -154.43 -56.21 -116.915 [3,] 1.68 32.11 25.960 [4,] 67.07 93.64 100.900 [5,] 131.49 160.66 147.800 $n [1] 9 9 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -24.35553 34.62807 -47.75141 -35.47393 -42.61766 -120.58846 -28.37637 [2,] 79.15553 87.83193 81.41141 177.60393 126.97766 42.39846 168.54637 [,8] [,9] [,10] [,11] [,12] [1,] -107.854750 -179.3372 -122.0531 -51.59836 -95.71459 [2,] -2.835250 139.8272 125.4131 115.81836 147.63459 $out [1] -764.52 -330.05 -183.37 -360.32 $group [1] 1 2 2 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-125.32, 12.8500000000004, 27.4000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6pwlv1229091183.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,] 2794.830 2555.28 1765.900 2093.480 2645.640 3277.010 3970.100 3032.600 [2,] 2847.110 2579.85 1871.925 2185.640 2885.355 3429.080 4201.135 3589.385 [3,] 2951.060 2650.73 1953.240 2408.120 3070.920 3684.320 4400.445 3822.775 [4,] 3023.085 2740.79 2018.685 2451.335 3112.765 3837.665 4577.055 4110.930 [5,] 3110.520 2811.70 2065.810 2497.840 3257.160 3917.960 4696.960 4435.230 [,9] [1,] 2014.450 [2,] 2106.135 [3,] 2197.820 [4,] 2580.080 [5,] 2962.340 $n [1] 12 12 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2870.797 2577.324 1886.302 2286.935 2967.197 3497.962 4228.985 3584.895 [2,] 3031.323 2724.136 2020.178 2529.305 3174.643 3870.678 4571.905 4060.655 [,9] [1,] 1765.481 [2,] 2630.159 $out [1] 2304.98 2214.95 1635.25 $group [1] 2 2 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(2794.83, 2847.11, 2951.06, 3023.085, 3110.52, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/76f201229091183.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,] 2946.614 2930.345 2746.570 [2,] 2999.361 2946.343 2886.127 [3,] 3079.692 2969.765 3057.199 [4,] 3125.420 2978.972 3200.674 [5,] 3178.825 2984.475 3297.035 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3022.196 2954.882 2913.732 [2,] 3137.188 2984.648 3200.667 $out [1] 2756.760 2849.270 3038.065 $group [1] 2 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2946.61444444444, 2999.36145833333, 3079.691875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/147i01229091183.ps tmp/147i01229091183.png") > system("convert tmp/2etdf1229091183.ps tmp/2etdf1229091183.png") > system("convert tmp/36u4a1229091183.ps tmp/36u4a1229091183.png") > system("convert tmp/4bvbg1229091183.ps tmp/4bvbg1229091183.png") > system("convert tmp/5fkpi1229091183.ps tmp/5fkpi1229091183.png") > system("convert tmp/6pwlv1229091183.ps tmp/6pwlv1229091183.png") > system("convert tmp/76f201229091183.ps tmp/76f201229091183.png") > > > proc.time() user system elapsed 2.592 1.593 2.845