R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(1576.23,1546.37,1545.05,1552.34,1594.3,1605.78,1673.21,1612.94,1566.34,1530.17,1582.54,1702.16,1701.93,1811.15,1924.2,2034.25,2011.13,2013.04,2151.67,1902.09,1944.01,1916.67,1967.31,2119.88,2216.38,2522.83,2647.64,2631.23,2693.41,3021.76,2953.67,2796.8,2672.05,2251.23,2046.08,2420.04,2608.89,2660.47,2493.98,2541.7,2554.6,2699.61,2805.48,2956.66,3149.51,3372.5,3379.33,3517.54,3527.34,3281.06,3089.65,3222.76,3165.76,3232.43,3229.54,3071.74,2850.17) > 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] 57 > (np <- floor(n / par1)) [1] 4 > 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] 5 5 5 5 5 5 5 5 5 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 1576.23 1701.93 2216.38 2608.89 3527.34 [2,] 1546.37 1811.15 2522.83 2660.47 3281.06 [3,] 1545.05 1924.20 2647.64 2493.98 3089.65 [4,] 1552.34 2034.25 2631.23 2541.70 3222.76 [5,] 1594.30 2011.13 2693.41 2554.60 3165.76 [6,] 1605.78 2013.04 3021.76 2699.61 3232.43 [7,] 1673.21 2151.67 2953.67 2805.48 3229.54 [8,] 1612.94 1902.09 2796.80 2956.66 3071.74 [9,] 1566.34 1944.01 2672.05 3149.51 2850.17 [10,] 1530.17 1916.67 2251.23 3372.50 NA [11,] 1582.54 1967.31 2046.08 3379.33 NA [12,] 1702.16 2119.88 2420.04 3517.54 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] -29.86 109.22 306.45 51.58 -246.28 [2,] -1.32 113.05 124.81 -166.49 -191.41 [3,] 7.29 110.05 -16.41 47.72 133.11 [4,] 41.96 -23.12 62.18 12.90 -57.00 [5,] 11.48 1.91 328.35 145.01 66.67 [6,] 67.43 138.63 -68.09 105.87 -2.89 [7,] -60.27 -249.58 -156.87 151.18 -157.80 [8,] -46.60 41.92 -124.75 192.85 -221.57 [9,] -36.17 -27.34 -420.82 222.99 NA [10,] 52.37 50.64 -205.15 6.83 NA [11,] 119.62 152.57 373.96 138.21 NA [12,] -0.23 96.50 188.85 9.80 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/rcomp/tmp/18fjn1289597697.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/rcomp/tmp/28fjn1289597697.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/rcomp/tmp/316j81289597697.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/rcomp/tmp/416j81289597697.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,] 1576.23 1546.37 1545.05 1552.34 1594.30 1605.78 1673.21 1612.94 1566.34 [2,] 1701.93 1811.15 1924.20 2034.25 2011.13 2013.04 2151.67 1902.09 1944.01 [3,] 2216.38 2522.83 2493.98 2541.70 2554.60 2699.61 2805.48 2796.80 2672.05 [4,] 2608.89 2660.47 2647.64 2631.23 2693.41 3021.76 2953.67 2956.66 2850.17 [5,] 3527.34 3281.06 3089.65 3222.76 3165.76 3232.43 3229.54 3071.74 3149.51 [,10] [,11] [,12] [1,] 1530.170 1582.540 1702.16 [2,] 1723.420 1774.925 1911.02 [3,] 2083.950 2006.695 2269.96 [4,] 2811.865 2712.705 2968.79 [5,] 3372.500 3379.330 3517.54 $n [1] 5 5 5 5 5 5 5 5 5 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1575.524 1922.703 1982.799 2119.875 2072.503 1986.851 2238.789 2051.643 [2,] 2857.236 3122.957 3005.161 2963.525 3036.697 3412.369 3372.171 3541.957 [,9] [,10] [,11] [,12] [1,] 2031.760 1224.078 1265.849 1434.322 [2,] 3312.340 2943.822 2747.541 3105.598 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1576.23, 1701.93, 2216.38, 2608.89, 3527.34, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/516j81289597697.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,] -29.86 -191.41 -16.41 -57.00 1.91 -68.09 -249.58 -221.57 -420.820 [2,] -29.86 -166.49 7.29 -23.12 11.48 -2.89 -157.80 -124.75 -228.495 [3,] 51.58 -1.32 47.72 12.90 66.67 67.43 -156.87 -46.60 -31.755 [4,] 109.22 113.05 110.05 41.96 145.01 105.87 -60.27 41.92 97.825 [5,] 306.45 124.81 133.11 62.18 328.35 138.63 -60.27 192.85 222.990 [,10] [,11] [,12] [1,] -205.150 119.620 -0.230 [2,] -99.160 128.915 4.785 [3,] 28.735 145.390 53.150 [4,] 51.505 263.265 142.675 [5,] 52.370 373.960 188.850 $n [1] 5 5 5 5 5 5 5 5 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -46.69358 -198.8423 -24.88996 -33.08536 -27.68196 -9.419542 -225.78445 [2,] 149.85358 196.2023 120.32996 58.88536 161.02196 144.279542 -87.95555 [,8] [,9] [,10] [,11] [,12] [1,] -164.3686 -289.5478 -90.29035 39.2535 -55.7831 [2,] 71.1686 226.0378 147.76035 251.5265 162.0831 $out [1] -246.28 151.18 $group [1] 1 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-29.8600000000001, -29.8600000000001, 51.5799999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6tx0t1289597697.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] [1,] 1530.170 1811.150 2046.080 2493.980 3071.74 [2,] 1549.355 1909.380 2335.635 2581.745 3089.65 [3,] 1579.385 1955.660 2639.435 2752.545 3222.76 [4,] 1609.360 2023.645 2745.105 3261.005 3232.43 [5,] 1673.210 2151.670 3021.760 3517.540 3281.06 $n [1] 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [1,] 1552.016 1903.543 2452.673 2442.73 3147.563 [2,] 1606.754 2007.777 2826.197 3062.36 3297.957 $out [1] 1702.16 1701.93 3527.34 2850.17 $group [1] 1 2 5 5 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(1530.17, 1549.355, 1579.385, 1609.36, 1673.21, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7tx0t1289597697.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,] 2243.815 2006.695 2125.255 [2,] 2333.129 2243.170 2205.803 [3,] 2400.148 2532.265 2342.505 [4,] 2453.976 2685.830 2413.233 [5,] 2562.714 2805.480 2552.670 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2345.029 2330.365 2247.895 [2,] 2455.267 2734.165 2437.115 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2243.815, 2333.129, 2400.148, 2453.9755, 2562.714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/18fjn1289597697.ps tmp/18fjn1289597697.png",intern=TRUE)) character(0) > try(system("convert tmp/28fjn1289597697.ps tmp/28fjn1289597697.png",intern=TRUE)) character(0) > try(system("convert tmp/316j81289597697.ps tmp/316j81289597697.png",intern=TRUE)) character(0) > try(system("convert tmp/416j81289597697.ps tmp/416j81289597697.png",intern=TRUE)) character(0) > try(system("convert tmp/516j81289597697.ps tmp/516j81289597697.png",intern=TRUE)) character(0) > try(system("convert tmp/6tx0t1289597697.ps tmp/6tx0t1289597697.png",intern=TRUE)) character(0) > try(system("convert tmp/7tx0t1289597697.ps tmp/7tx0t1289597697.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.900 0.670 2.571