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(3030.29,2803.47,2767.63,2882.6,2863.36,2897.06,3012.61,3142.95,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,2091.48,2120.88,2174.56,2196.72,2350.44,2440.25,2408.64,2472.81,2407.6,2452.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,1862.83,1905.41) > 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] 109 > (np <- floor(n / par1)) [1] 9 > 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] 10 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 3030.29 2987.10 2720.25 1946.81 2350.44 2981.85 3667.03 4443.91 3844.49 [2,] 2803.47 2995.55 2745.88 1765.90 2440.25 3080.58 3813.06 4502.64 3720.98 [3,] 2767.63 2833.18 2735.70 1635.25 2408.64 3106.22 3917.96 4356.98 3674.40 [4,] 2882.60 2848.96 2811.70 1833.42 2472.81 3119.31 3895.51 4591.27 3857.62 [5,] 2863.36 2794.83 2799.43 1910.43 2407.60 3061.26 3801.06 4696.96 3801.06 [6,] 2897.06 2845.26 2555.28 1959.67 2452.62 3097.31 3570.12 4621.40 3504.37 [7,] 3012.61 2915.02 2304.98 1969.60 2448.05 3161.69 3701.61 4562.84 3032.60 [8,] 3142.95 2892.63 2214.95 2061.41 2497.84 3257.16 3862.27 4202.52 3047.03 [9,] 3032.93 2604.42 2065.81 2091.48 2645.64 3277.01 3970.10 4296.49 2962.34 [10,] 3045.78 2641.65 1940.49 2120.88 2756.76 3295.32 4138.52 4435.23 2197.82 [11,] 3110.52 2659.81 2042.00 2174.56 2849.27 3363.99 4199.75 4105.18 2014.45 [12,] 3013.24 2638.53 1995.37 2196.72 2921.44 3494.17 4290.89 4116.68 1862.83 [,10] [1,] 1905.41 [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -226.82 8.45 25.63 -180.91 89.81 98.73 146.03 58.73 -123.51 [2,] -35.84 -162.37 -10.18 -130.65 -31.61 25.64 104.90 -145.66 -46.58 [3,] 114.97 15.78 76.00 198.17 64.17 13.09 -22.45 234.29 183.22 [4,] -19.24 -54.13 -12.27 77.01 -65.21 -58.05 -94.45 105.69 -56.56 [5,] 33.70 50.43 -244.15 49.24 45.02 36.05 -230.94 -75.56 -296.69 [6,] 115.55 69.76 -250.30 9.93 -4.57 64.38 131.49 -58.56 -471.77 [7,] 130.34 -22.39 -90.03 91.81 49.79 95.47 160.66 -360.32 14.43 [8,] -110.02 -288.21 -149.14 30.07 147.80 19.85 107.83 93.97 -84.69 [9,] 12.85 37.23 -125.32 29.40 111.12 18.31 168.42 138.74 -764.52 [10,] 64.74 18.16 101.51 53.68 92.51 68.67 61.23 -330.05 -183.37 [11,] -97.28 -21.28 -46.63 22.16 72.17 130.18 91.14 11.50 -151.62 [12,] -26.14 81.72 -48.56 153.72 60.41 172.86 153.02 -272.19 42.58 [,10] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] 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/freestat/rcomp/tmp/1uh4a1241115042.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/freestat/rcomp/tmp/2ws3j1241115042.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/freestat/rcomp/tmp/3zhl51241115042.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/freestat/rcomp/tmp/4at711241115042.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] [1,] 1905.410 1765.90 1635.25 1833.42 1910.43 1959.67 1969.60 2061.41 2065.81 [2,] 2350.440 2745.88 2735.70 2811.70 2794.83 2555.28 2448.05 2497.84 2604.42 [3,] 2984.475 2995.55 2833.18 2882.60 2863.36 2897.06 3012.61 3047.03 2962.34 [4,] 3667.030 3720.98 3674.40 3857.62 3801.06 3504.37 3161.69 3257.16 3277.01 [5,] 4443.910 4502.64 4356.98 4591.27 4696.96 4621.40 3701.61 4202.52 3970.10 [,10] [,11] [,12] [1,] 1940.49 2014.45 1862.83 [2,] 2197.82 2174.56 2196.72 [3,] 2756.76 2849.27 2921.44 [4,] 3295.32 3363.99 3494.17 [5,] 4435.23 4199.75 4290.89 $n [1] 10 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2326.654 2481.997 2338.798 2331.749 2333.412 2397.206 2636.760 2647.121 [2,] 3642.296 3509.103 3327.562 3433.451 3393.308 3396.914 3388.460 3446.939 [,9] [,10] [,11] [,12] [1,] 2608.109 2178.743 2222.837 2238.116 [2,] 3316.571 3334.777 3475.703 3604.764 $out [1] 4562.84 4296.49 $group [1] 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1905.41, 2350.44, 2984.475, 3667.03, 4443.91, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5ad9t1241115042.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,] -226.82 -162.37 -22.45 -94.45 -296.69 -250.30 -90.03 -288.21 -125.32 [2,] -123.51 -130.65 15.78 -58.05 -230.94 -58.56 -22.39 -110.02 12.85 [3,] 25.63 -35.84 76.00 -54.13 33.70 9.93 49.79 19.85 29.40 [4,] 89.81 -10.18 183.22 -12.27 45.02 69.76 95.47 93.97 111.12 [5,] 146.03 104.90 234.29 -12.27 50.43 131.49 160.66 147.80 168.42 [,10] [,11] [,12] [1,] 18.16 -151.62 -272.19 [2,] 18.16 -46.63 -26.14 [3,] 61.23 11.50 60.41 [4,] 68.67 72.17 153.02 [5,] 101.51 130.18 172.86 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -86.71853 -99.28753 -12.18507 -78.2408 -111.6389 -57.65187 -12.28293 [2,] 137.97853 27.60753 164.18507 -30.0192 179.0389 77.51187 111.86293 [,8] [,9] [,10] [,11] [,12] [1,] -87.58473 -22.35553 34.62807 -51.068 -33.9476 [2,] 127.28473 81.15553 87.83193 74.068 154.7676 $out [1] 77.01 105.69 -471.77 -360.32 -764.52 -330.05 -183.37 $group [1] 4 4 6 7 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-226.82, -123.510000000000, 25.6300000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6ozkd1241115042.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,] 2767.630 2604.420 1940.490 1635.250 2350.440 2981.850 3570.120 4105.180 [2,] 2872.980 2650.730 2053.905 1871.925 2424.445 3088.945 3751.335 4249.505 [3,] 3012.925 2839.220 2430.130 1964.635 2462.715 3140.500 3878.890 4439.570 [4,] 3039.355 2903.825 2740.790 2106.180 2701.200 3286.165 4054.310 4577.055 [5,] 3142.950 2995.550 2811.700 2196.720 2921.440 3494.170 4290.890 4696.960 [,9] [,10] [1,] 1862.83 1905.41 [2,] 2580.08 1905.41 [3,] 3275.70 1905.41 [4,] 3761.02 1905.41 [5,] 3857.62 1905.41 $n [1] 12 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2937.04 2723.782 2116.837 1857.790 2336.485 3050.547 3740.701 4290.172 [2,] 3088.81 2954.658 2743.423 2071.480 2588.945 3230.453 4017.079 4588.968 [,9] [,10] [1,] 2737.065 1905.41 [2,] 3814.335 1905.41 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(2767.63, 2872.98, 3012.925, 3039.355, 3142.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7iuen1241115042.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 2756.760 2746.570 [2,] 2970.126 2856.315 2825.157 [3,] 3015.987 2909.250 2958.042 [4,] 3076.189 2990.012 3219.240 [5,] 3145.911 3047.030 3334.660 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2967.611 2848.270 2778.298 [2,] 3064.363 2970.230 3137.786 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2946.61444444444, 2970.12622222222, 3015.98666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1uh4a1241115042.ps tmp/1uh4a1241115042.png") > system("convert tmp/2ws3j1241115042.ps tmp/2ws3j1241115042.png") > system("convert tmp/3zhl51241115042.ps tmp/3zhl51241115042.png") > system("convert tmp/4at711241115042.ps tmp/4at711241115042.png") > system("convert tmp/5ad9t1241115042.ps tmp/5ad9t1241115042.png") > system("convert tmp/6ozkd1241115042.ps tmp/6ozkd1241115042.png") > system("convert tmp/7iuen1241115042.ps tmp/7iuen1241115042.png") > > > proc.time() user system elapsed 1.871 1.478 2.228