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) > par20 = '' > par19 = '' > par18 = '' > par17 = '' > par16 = '' > par15 = '' > par14 = '' > par13 = '' > par12 = '' > par11 = '' > par10 = '' > par9 = '' > par8 = '' > par7 = '' > par6 = '' > par5 = '' > par4 = '' > par3 = '' > par2 = '' > par1 = '12' > ylab = '' > xlab = '' > main = '' > #'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] 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 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 2752 1727 2098 2126 2337 2766 2855 2525 2027 [2,] 2373 1899 2231 2231 2524 2785 2764 2465 NA [3,] 1415 1364 1407 1517 1801 2003 1808 1828 NA [4,] 2466 1992 1966 2010 2417 2588 2588 2273 NA [5,] 2318 2051 2293 2628 2389 2739 2600 2377 NA [6,] 2346 2082 2045 2115 2267 2703 2526 2344 NA [7,] 1644 1746 1532 1829 2135 2464 2259 2071 NA [8,] 1421 1271 1333 1636 1760 1974 1738 1611 NA [9,] 1423 1363 1583 1787 1905 2164 1902 1671 NA [10,] 1930 1664 1712 2122 2176 2385 2137 2256 NA [11,] 2694 2179 2641 2620 2344 2936 2460 1983 NA [12,] 4938 2305 2267 2555 2673 2700 2495 1921 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -379 172 133 105 187 19 -91 -60 NA [2,] -958 -535 -824 -714 -723 -782 -956 -637 NA [3,] 1051 628 559 493 616 585 780 445 NA [4,] -148 59 327 618 -28 151 12 104 NA [5,] 28 31 -248 -513 -122 -36 -74 -33 NA [6,] -702 -336 -513 -286 -132 -239 -267 -273 NA [7,] -223 -475 -199 -193 -375 -490 -521 -460 NA [8,] 2 92 250 151 145 190 164 60 NA [9,] 507 301 129 335 271 221 235 585 NA [10,] 764 515 929 498 168 551 323 -273 NA [11,] 2244 126 -374 -65 329 -236 35 -62 NA [12,] -3211 -207 -141 -218 93 155 30 106 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/1jt831226317135.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/23wgb1226317135.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/37wjd1226317135.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/4k1861226317135.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] [,12] [1,] 1727 1899 1364 1966 2051.0 2045.0 1532 1271.0 1363.0 1664.0 1983.0 1921.0 [2,] 2098 2231 1411 2001 2305.5 2098.5 1695 1377.0 1503.0 1821.0 2261.5 2286.0 [3,] 2337 2419 1659 2345 2383.0 2305.5 1950 1623.5 1729.0 2129.5 2540.0 2525.0 [4,] 2752 2644 1818 2527 2614.0 2436.0 2197 1749.0 1903.5 2216.0 2667.5 2686.5 [5,] 2855 2785 2003 2588 2739.0 2703.0 2464 1974.0 2164.0 2385.0 2936.0 2700.0 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1992.56 2188.292 1431.644 2051.169 2210.667 2116.968 1669.576 1415.695 [2,] 2681.44 2649.708 1886.356 2638.831 2555.333 2494.032 2230.424 1831.305 [,9] [,10] [,11] [,12] [1,] 1505.275 1908.847 2313.203 2301.275 [2,] 1952.725 2350.153 2766.797 2748.725 $out [1] 4938 $group [1] 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1727, 2098, 2337, 2752, 2855, 1899, 2231, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5l6ib1226317135.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,] -379.0 -958.0 445.0 -148.0 -248.0 -513.0 -521.0 2 129 -273.0 -374.0 [2,] -75.5 -890.0 526.0 -8.0 -185.0 -424.5 -482.5 76 228 245.5 -150.5 [3,] 62.0 -752.5 600.5 81.5 -55.0 -279.5 -417.5 148 286 506.5 -13.5 [4,] 152.5 -675.5 704.0 239.0 -2.5 -253.0 -211.0 177 421 657.5 227.5 [5,] 187.0 -535.0 780.0 327.0 31.0 -132.0 -193.0 250 585 929.0 329.0 [,12] [1,] -218.0 [2,] -212.5 [3,] -55.5 [4,] 99.5 [5,] 155.0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -65.36407 -872.3228 501.0666 -56.47775 -156.94712 -375.3024 -569.1638 [2,] 189.36407 -632.6772 699.9334 219.47775 46.94712 -183.6976 -265.8362 [,8] [,9] [,10] [,11] [,12] [1,] 91.57995 178.1874 276.3509 -224.6562 -229.7877 [2,] 204.42005 393.8126 736.6491 197.6562 118.7877 $out [1] 1051 618 -513 -702 2244 -3211 $group [1] 3 4 5 6 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-379, -75.5, 62, 152.5, 187, -958, -890, -752.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yb8n1226317135.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] [1,] 1415.0 1271.0 1333.0 1517.0 1760 1974.0 1738.0 1611.0 2027 [2,] 1533.5 1514.0 1557.5 1808.0 2020 2274.5 2019.5 1874.5 2027 [3,] 2332.0 1822.5 2005.5 2118.5 2302 2644.0 2477.5 2163.5 2027 [4,] 2580.0 2066.5 2249.0 2393.0 2403 2752.5 2594.0 2360.5 2027 [5,] 2752.0 2305.0 2641.0 2628.0 2673 2936.0 2855.0 2525.0 2027 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1854.684 1570.501 1690.102 1851.678 2127.311 2425.981 2215.467 1941.832 [2,] 2809.316 2074.499 2320.898 2385.322 2476.689 2862.019 2739.533 2385.168 [,9] [1,] 2027 [2,] 2027 $out [1] 4938 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(1415, 1533.5, 2332, 2580, 2752, 1271, 1514, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7l98l1226317135.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,] 1593.000 1623.50 1571.250 [2,] 1842.375 1839.50 1833.062 [3,] 2295.500 2321.25 2249.938 [4,] 2416.688 2401.00 2442.188 [5,] 2731.750 2540.00 2487.625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2033.552 2065.146 1972.111 [2,] 2557.448 2577.354 2527.764 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1593, 1842.375, 2295.5, 2416.6875, 2731.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1jt831226317135.ps tmp/1jt831226317135.png") > system("convert tmp/23wgb1226317135.ps tmp/23wgb1226317135.png") > system("convert tmp/37wjd1226317135.ps tmp/37wjd1226317135.png") > system("convert tmp/4k1861226317135.ps tmp/4k1861226317135.png") > system("convert tmp/5l6ib1226317135.ps tmp/5l6ib1226317135.png") > system("convert tmp/6yb8n1226317135.ps tmp/6yb8n1226317135.png") > system("convert tmp/7l98l1226317135.ps tmp/7l98l1226317135.png") > > > proc.time() user system elapsed 1.438 0.987 1.748