R version 2.7.2 (2008-08-25) 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(2752,2373,1415,2466,2318,2346,1644,1421,1423,1930,2694,4938,1727,1899,1364,1992,2051,2082,1746,1271,1363,1664,2179,2305,2098,2231,1407,1966,2293,2045,1532,1333,1583,1712,2641,2267,2126,2231,1517,2010,2628,2115,1829,1636,1787,2122,2620,2555,2337,2524,1801,2417,2389,2267,2135,1760,1905,2176,2344,2673,2766,2785,2003,2588,2739,2703,2464,1974,2164,2385,2936,2700,2855,2764,1808,2588,2600,2526,2259,1738,1902,2137,2460,2495,2525,2465,1828,2273,2377,2344,2071,1611,1671,2256,1983,1921,2027) > par1 = '36' > #'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] 97 > (np <- floor(n / par1)) [1] 2 > 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] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 > arr [,1] [,2] [,3] [1,] 2752 2126 2855 [2,] 2373 2231 2764 [3,] 1415 1517 1808 [4,] 2466 2010 2588 [5,] 2318 2628 2600 [6,] 2346 2115 2526 [7,] 1644 1829 2259 [8,] 1421 1636 1738 [9,] 1423 1787 1902 [10,] 1930 2122 2137 [11,] 2694 2620 2460 [12,] 4938 2555 2495 [13,] 1727 2337 2525 [14,] 1899 2524 2465 [15,] 1364 1801 1828 [16,] 1992 2417 2273 [17,] 2051 2389 2377 [18,] 2082 2267 2344 [19,] 1746 2135 2071 [20,] 1271 1760 1611 [21,] 1363 1905 1671 [22,] 1664 2176 2256 [23,] 2179 2344 1983 [24,] 2305 2673 1921 [25,] 2098 2766 2027 [26,] 2231 2785 NA [27,] 1407 2003 NA [28,] 1966 2588 NA [29,] 2293 2739 NA [30,] 2045 2703 NA [31,] 1532 2464 NA [32,] 1333 1974 NA [33,] 1583 2164 NA [34,] 1712 2385 NA [35,] 2641 2936 NA [36,] 2267 2700 NA > darr [,1] [,2] [,3] [1,] -379 105 -91 [2,] -958 -714 -956 [3,] 1051 493 780 [4,] -148 618 12 [5,] 28 -513 -74 [6,] -702 -286 -267 [7,] -223 -193 -521 [8,] 2 151 164 [9,] 507 335 235 [10,] 764 498 323 [11,] 2244 -65 35 [12,] -3211 -218 30 [13,] 172 187 -60 [14,] -535 -723 -637 [15,] 628 616 445 [16,] 59 -28 104 [17,] 31 -122 -33 [18,] -336 -132 -273 [19,] -475 -375 -460 [20,] 92 145 60 [21,] 301 271 585 [22,] 515 168 -273 [23,] 126 329 -62 [24,] -207 93 106 [25,] 133 19 NA [26,] -824 -782 NA [27,] 559 585 NA [28,] 327 151 NA [29,] -248 -36 NA [30,] -513 -239 NA [31,] -199 -490 NA [32,] 250 190 NA [33,] 129 221 NA [34,] 929 551 NA [35,] -374 -236 NA [36,] -141 155 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/116kr1225756626.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/2wrbo1225756626.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/33jhz1225756626.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/41ed91225756626.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,] 2126.0 2231.0 1415.0 2010 2318 2115.0 1644.0 1421.0 1423.0 1930.0 2460 [2,] 2439.0 2302.0 1466.0 2238 2459 2230.5 1736.5 1528.5 1605.0 2026.0 2540 [3,] 2752.0 2373.0 1517.0 2466 2600 2346.0 1829.0 1636.0 1787.0 2122.0 2620 [4,] 2803.5 2568.5 1662.5 2527 2614 2436.0 2044.0 1687.0 1844.5 2129.5 2657 [5,] 2855.0 2764.0 1808.0 2588 2628 2526.0 2259.0 1738.0 1902.0 2137.0 2694 [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [1,] 2495.0 1727 1899.0 1364.0 1992.0 2051 2082.0 1746.0 1271.0 1363 1664 [2,] 2525.0 2032 2182.0 1582.5 2132.5 2214 2174.5 1908.5 1441.0 1517 1920 [3,] 2555.0 2337 2465.0 1801.0 2273.0 2377 2267.0 2071.0 1611.0 1671 2176 [4,] 3746.5 2431 2494.5 1814.5 2345.0 2383 2305.5 2103.0 1685.5 1788 2216 [5,] 4938.0 2525 2524.0 1828.0 2417.0 2389 2344.0 2135.0 1760.0 1905 2256 [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [1,] 1983.0 1921 2027.0 2231 1407 1966 2293 2045 1532 1333.0 1583.0 [2,] 2081.0 2113 2062.5 2231 1407 1966 2293 2045 1532 1333.0 1583.0 [3,] 2179.0 2305 2098.0 2508 1705 2277 2516 2374 1998 1653.5 1873.5 [4,] 2261.5 2489 2432.0 2785 2003 2588 2739 2703 2464 1974.0 2164.0 [5,] 2344.0 2673 2766.0 2785 2003 2588 2739 2703 2464 1974.0 2164.0 [,34] [,35] [,36] [1,] 1712.0 2641.0 2267.0 [2,] 1712.0 2641.0 2267.0 [3,] 2048.5 2788.5 2483.5 [4,] 2385.0 2936.0 2700.0 [5,] 2385.0 2936.0 2700.0 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2419.498 2129.895 1337.75 2202.370 2458.607 2158.54 1548.494 1491.414 [2,] 3084.502 2616.105 1696.25 2729.630 2741.393 2533.46 2109.506 1780.586 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 1568.525 2027.586 2513.271 1440.731 1973.027 2179.933 1589.366 2079.155 [2,] 2005.475 2216.414 2726.729 3669.269 2700.973 2750.067 2012.634 2466.845 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 2222.836 2147.5 1893.574 1387.964 1423.790 1905.985 2014.345 1962.008 [2,] 2531.164 2386.5 2248.426 1834.036 1918.210 2446.015 2343.655 2647.992 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [1,] 1760.937 1889.055 1039.132 1582.084 2017.716 1638.864 956.7428 937.3564 [2,] 2435.063 3126.945 2370.868 2971.916 3014.284 3109.136 3039.2572 2369.6436 [,33] [,34] [,35] [,36] [1,] 1224.39 1296.605 2458.918 1999.74 [2,] 2522.61 2800.395 3118.082 2967.26 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" Warning message: In bxp(list(stats = c(2126, 2439, 2752, 2803.5, 2855, 2231, 2302, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56u6z1225756626.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] [,12] [1,] -379 -958 493.0 -148 -513.0 -702.0 -521 2.0 235 323.0 -65.0 -3211.0 [2,] -235 -957 636.5 -68 -293.5 -494.0 -372 76.5 285 410.5 -15.0 -1714.5 [3,] -91 -956 780.0 12 -74.0 -286.0 -223 151.0 335 498.0 35.0 -218.0 [4,] 7 -835 915.5 315 -23.0 -276.5 -208 157.5 421 631.0 1139.5 -94.0 [5,] 105 -714 1051.0 618 28.0 -267.0 -193 164.0 507 764.0 2244.0 30.0 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [1,] -60.0 -723 445.0 -28.0 -122.0 -336.0 -475.0 60.0 271 -273.0 -62.0 [2,] 56.0 -680 530.5 15.5 -77.5 -304.5 -467.5 76.0 286 -52.5 32.0 [3,] 172.0 -637 616.0 59.0 -33.0 -273.0 -460.0 92.0 301 168.0 126.0 [4,] 179.5 -586 622.0 81.5 -1.0 -202.5 -417.5 118.5 443 341.5 227.5 [5,] 187.0 -535 628.0 104.0 31.0 -132.0 -375.0 145.0 585 515.0 329.0 [,24] [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [1,] -207.0 19 -824 559 151 -248 -513 -490.0 190 129 551 -374 [2,] -57.0 19 -824 559 151 -248 -513 -490.0 190 129 551 -374 [3,] 93.0 76 -803 572 239 -142 -376 -344.5 220 175 740 -305 [4,] 99.5 133 -782 585 327 -36 -239 -199.0 250 221 929 -236 [5,] 106.0 133 -782 585 327 -36 -239 -199.0 250 221 929 -236 [,36] [1,] -141 [2,] -141 [3,] 7 [4,] 155 [5,] 155 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -311.7556 -1067.29 525.4925 -337.3777 -320.7537 -484.40642 -372.603 [2,] 129.7556 -844.71 1034.5075 361.3777 172.7537 -87.59358 -73.397 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 77.11071 210.9390 296.8569 -1018.150 -1696.242 59.34164 -722.7481 [2,] 224.88929 459.0610 699.1431 1088.150 1260.242 284.65836 -551.2519 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] 532.5325 -1.206086 -102.78433 -366.0458 -505.6107 53.23093 157.7825 [2,] 699.4675 119.206086 36.78433 -179.9542 -414.3893 130.76907 444.2175 [,22] [,23] [,24] [,25] [,26] [,27] [,28] [1,] -191.4121 -52.33772 -49.7614 -51.36407 -849.9236 542.952 42.36775 [2,] 527.4121 304.33772 235.7614 203.36407 -756.0764 601.048 435.63225 [,29] [,30] [,31] [,32] [,33] [,34] [,35] [1,] -378.85249 -682.12067 -669.61356 152.9663 72.21496 317.6875 -459.1776 [2,] 94.85249 -69.87933 -19.38644 287.0337 277.78504 1162.3125 -150.8224 [,36] [1,] -323.6997 [2,] 337.6997 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" Warning message: In bxp(list(stats = c(-379, -235, -91, 7, 105, -958, -957, -956, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6pyb81225756626.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] [1,] 1271.0 1517.0 1611 [2,] 1557.5 2006.5 1921 [3,] 1979.0 2302.0 2259 [4,] 2299.0 2604.0 2495 [5,] 2752.0 2936.0 2855 $n [1] 36 36 25 $conf [,1] [,2] [,3] [1,] 1783.738 2144.658 2077.616 [2,] 2174.262 2459.342 2440.384 $out [1] 4938 $group [1] 1 $names [1] "1" "2" NA > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7onf31225756626.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,] 1547.333 1517.00 1563.250 [2,] 1892.083 1851.25 1881.875 [3,] 2229.167 2270.00 2239.375 [4,] 2415.000 2465.50 2408.875 [5,] 2788.500 2788.50 3135.750 $n [1] 36 36 36 $conf [,1] [,2] [,3] [1,] 2091.465 2108.247 2100.598 [2,] 2366.868 2431.753 2378.152 $out [1] 3329.333 $group [1] 1 $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/116kr1225756626.ps tmp/116kr1225756626.png") > system("convert tmp/2wrbo1225756626.ps tmp/2wrbo1225756626.png") > system("convert tmp/33jhz1225756626.ps tmp/33jhz1225756626.png") > system("convert tmp/41ed91225756626.ps tmp/41ed91225756626.png") > system("convert tmp/56u6z1225756626.ps tmp/56u6z1225756626.png") > system("convert tmp/6pyb81225756626.ps tmp/6pyb81225756626.png") > system("convert tmp/7onf31225756626.ps tmp/7onf31225756626.png") > > > proc.time() user system elapsed 1.525 0.985 1.858