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(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,2338,2523,1798,2415,2388,2267,2134,1759,1905,2175,2341,2673,2765,2781,1998,2587,2732,2696,2461,1979,2181,2419,2980,2750,2913,2838,1884,2690,2715,2629,2373,1827,2004,2187,2485,2517,2538,2481,1865,2307,2383,2362,2081,1648,1795) > 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] 73 > (np <- floor(n / par1)) [1] 6 > 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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1363 1583 1787 1905 2181 2004 1795 [2,] 1664 1712 2122 2175 2419 2187 NA [3,] 2179 2641 2620 2341 2980 2485 NA [4,] 2305 2267 2555 2673 2750 2517 NA [5,] 2098 2126 2338 2765 2913 2538 NA [6,] 2231 2231 2523 2781 2838 2481 NA [7,] 1407 1517 1798 1998 1884 1865 NA [8,] 1966 2010 2415 2587 2690 2307 NA [9,] 2293 2628 2388 2732 2715 2383 NA [10,] 2045 2115 2267 2696 2629 2362 NA [11,] 1532 1829 2134 2461 2373 2081 NA [12,] 1333 1636 1759 1979 1827 1648 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 301 129 335 270 238 183 NA [2,] 515 929 498 166 561 298 NA [3,] 126 -374 -65 332 -230 32 NA [4,] -207 -141 -217 92 163 21 NA [5,] 133 105 185 16 -75 -57 NA [6,] -824 -714 -725 -783 -954 -616 NA [7,] 559 493 617 589 806 442 NA [8,] 327 618 -27 145 25 76 NA [9,] -248 -513 -121 -36 -86 -21 NA [10,] -513 -286 -133 -235 -256 -281 NA [11,] -199 -193 -375 -482 -546 -433 NA [12,] 250 151 146 202 177 147 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/1vgxt1261052044.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/2gkx71261052044.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/3qrq81261052044.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/45cg91261052044.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,] 1363.0 1664.0 2179.0 2267 2098 2231 1407.0 1966 2293 2045.0 1532.0 1636.0 [2,] 1685.0 1712.0 2341.0 2305 2126 2231 1517.0 2010 2383 2115.0 1829.0 1636.0 [3,] 1795.0 2148.5 2552.5 2536 2438 2502 1831.5 2361 2508 2314.5 2107.5 1703.5 [4,] 1954.5 2187.0 2641.0 2673 2765 2781 1884.0 2587 2715 2629.0 2373.0 1827.0 [5,] 2181.0 2419.0 2980.0 2750 2913 2838 1998.0 2690 2732 2696.0 2461.0 1979.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1634.059 1842.110 2358.990 2298.628 2025.824 2147.232 1594.773 1988.816 [2,] 1955.941 2454.890 2746.010 2773.372 2850.176 2856.768 2068.227 2733.184 [,9] [,10] [,11] [,12] [1,] 2293.849 1982.953 1756.602 1580.299 [2,] 2722.151 2646.047 2458.398 1826.701 $out [1] 1333 $group [1] 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1363, 1685, 1795, 1954.5, 2181, 1664, 1712, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53ag21261052044.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,] 129 166.0 -374.0 -217 -75.0 -954 442 -27.0 -513.0 -286.0 -546 146 [2,] 183 298.0 -230.0 -207 -57.0 -824 493 25.0 -248.0 -286.0 -482 147 [3,] 254 506.5 -16.5 -60 60.5 -754 574 110.5 -103.5 -268.5 -404 164 [4,] 301 561.0 126.0 92 133.0 -714 617 327.0 -36.0 -235.0 -199 202 [5,] 335 929.0 332.0 163 185.0 -616 617 618.0 -21.0 -235.0 -193 250 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 177.8862 336.8565 -246.1315 -252.8647 -62.05614 -824.9536 494.016 [2,] 330.1138 676.1435 213.1315 132.8647 183.05614 -683.0464 653.984 [,8] [,9] [,10] [,11] [,12] [1,] -84.29975 -240.24685 -301.3966 -586.5441 128.5232 [2,] 305.29975 33.24685 -235.6034 -221.4559 199.4768 $out [1] 806 -513 -133 $group [1] 7 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(129, 183, 254, 301, 335, 166, 298, 506.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65np11261052044.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] [1,] 1333.0 1517.0 1759.0 1905.0 1827.0 1648.0 1795 [2,] 1469.5 1674.0 1960.0 2086.5 2277.0 2042.5 1795 [3,] 2005.5 2062.5 2302.5 2524.0 2659.5 2334.5 1795 [4,] 2205.0 2249.0 2469.0 2714.0 2794.0 2483.0 1795 [5,] 2305.0 2641.0 2620.0 2781.0 2980.0 2538.0 1795 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1670.034 1800.239 2070.342 2237.793 2423.693 2133.585 1795 [2,] 2340.966 2324.761 2534.658 2810.207 2895.307 2535.415 1795 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1333, 1469.5, 2005.5, 2205, 2305, 1517, 1674, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yiz61261052044.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,] 1697.000 1703.50 1724.500 [2,] 1924.536 1969.50 1909.500 [3,] 2340.750 2337.75 2335.875 [4,] 2512.667 2505.00 2502.875 [5,] 2541.000 2552.50 2538.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2072.500 2093.505 2065.233 [2,] 2609.000 2581.995 2606.517 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1697, 1924.53571428571, 2340.75, 2512.66666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vgxt1261052044.ps tmp/1vgxt1261052044.png",intern=TRUE)) character(0) > try(system("convert tmp/2gkx71261052044.ps tmp/2gkx71261052044.png",intern=TRUE)) character(0) > try(system("convert tmp/3qrq81261052044.ps tmp/3qrq81261052044.png",intern=TRUE)) character(0) > try(system("convert tmp/45cg91261052044.ps tmp/45cg91261052044.png",intern=TRUE)) character(0) > try(system("convert tmp/53ag21261052044.ps tmp/53ag21261052044.png",intern=TRUE)) character(0) > try(system("convert tmp/65np11261052044.ps tmp/65np11261052044.png",intern=TRUE)) character(0) > try(system("convert tmp/7yiz61261052044.ps tmp/7yiz61261052044.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.158 0.914 1.522