R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) 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(1855.87,1868.53,1865.71,1872.59,1875.95,1875.95,1875.95,1878.08,1878.26,1876.39,1876.77,1876.88,1876.88,1876.68,1865.52,1858.99,1856.87,1858.22,1858.22,1859.32,1859.52,1852.48,1850.07,1850.07,1850.07,1841.55,1845,1844.01,1842.67,1842.67,1842.67,1842.9,1840.37,1841.59,1844.33,1844.33,1844.33,1845.39,1861.84,1862.85,1869.46,1870.8,1870.8,1871.52,1875.52,1880.38,1885.05,1886.42,1886.42,1891.65,1903.11,1905.29,1904.26,1905.37,1905.37,1905.12,1908.62,1915.08,1916.36,1916.68,1916.24,1922.05,1922.63,1922.47,1920.64,1920.66,1920.66,1921.19,1921.44,1921.73,1921.81,1921.81) > par1 = '12' > par1 <- '12' > par1 <- as.numeric(par1) > (n <- length(x)) [1] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1855.87 1876.88 1850.07 1844.33 1886.42 1916.24 NA [2,] 1868.53 1876.68 1841.55 1845.39 1891.65 1922.05 NA [3,] 1865.71 1865.52 1845.00 1861.84 1903.11 1922.63 NA [4,] 1872.59 1858.99 1844.01 1862.85 1905.29 1922.47 NA [5,] 1875.95 1856.87 1842.67 1869.46 1904.26 1920.64 NA [6,] 1875.95 1858.22 1842.67 1870.80 1905.37 1920.66 NA [7,] 1875.95 1858.22 1842.67 1870.80 1905.37 1920.66 NA [8,] 1878.08 1859.32 1842.90 1871.52 1905.12 1921.19 NA [9,] 1878.26 1859.52 1840.37 1875.52 1908.62 1921.44 NA [10,] 1876.39 1852.48 1841.59 1880.38 1915.08 1921.73 NA [11,] 1876.77 1850.07 1844.33 1885.05 1916.36 1921.81 NA [12,] 1876.88 1850.07 1844.33 1886.42 1916.68 1921.81 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 12.66 -0.20 -8.52 1.06 5.23 5.81 NA [2,] -2.82 -11.16 3.45 16.45 11.46 0.58 NA [3,] 6.88 -6.53 -0.99 1.01 2.18 -0.16 NA [4,] 3.36 -2.12 -1.34 6.61 -1.03 -1.83 NA [5,] 0.00 1.35 0.00 1.34 1.11 0.02 NA [6,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [7,] 2.13 1.10 0.23 0.72 -0.25 0.53 NA [8,] 0.18 0.20 -2.53 4.00 3.50 0.25 NA [9,] -1.87 -7.04 1.22 4.86 6.46 0.29 NA [10,] 0.38 -2.41 2.74 4.67 1.28 0.08 NA [11,] 0.11 0.00 0.00 1.37 0.32 0.00 NA [12,] 0.00 0.00 0.00 0.00 -0.44 NA 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/wessaorg/rcomp/tmp/171db1350632488.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2rsj91350632488.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3g1jw1350632488.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4cnof1350632488.ps",horizontal=F,onefile=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] [1,] 1844.330 1841.550 1845.000 1844.01 1842.670 1842.670 1842.670 1842.90 [2,] 1850.070 1845.390 1861.840 1858.99 1856.870 1858.220 1858.220 1859.32 [3,] 1866.375 1872.605 1865.615 1867.72 1872.705 1873.375 1873.375 1874.80 [4,] 1886.420 1891.650 1903.110 1905.29 1904.260 1905.370 1905.370 1905.12 [5,] 1916.240 1922.050 1922.630 1922.47 1920.640 1920.660 1920.660 1921.19 [,9] [,10] [,11] [,12] [1,] 1840.37 1841.590 1844.33 1844.33 [2,] 1859.52 1852.480 1850.07 1850.07 [3,] 1876.89 1878.385 1880.91 1881.65 [4,] 1908.62 1915.080 1916.36 1916.68 [5,] 1921.44 1921.730 1921.81 1921.81 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1842.928 1842.766 1838.995 1837.855 1842.137 1842.962 1842.962 1845.258 [2,] 1889.822 1902.444 1892.235 1897.585 1903.273 1903.788 1903.788 1904.342 [,9] [,10] [,11] [,12] [1,] 1845.219 1838.006 1838.151 1838.684 [2,] 1908.561 1918.764 1923.669 1924.616 $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(1844.33, 1850.07, 1866.375, 1886.42, 1916.24, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5xcmy1350632488.ps",horizontal=F,onefile=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,] -8.520 -11.160 -0.990 -2.120 0.000 0 -0.250 -2.530 -7.040 -2.41 0.000 [2,] -0.200 -2.820 -0.990 -1.830 0.000 0 0.230 0.180 -1.870 0.08 0.000 [3,] 3.145 2.015 0.425 -1.185 0.565 0 0.625 0.225 0.755 0.83 0.055 [4,] 5.810 11.460 2.180 3.360 1.340 0 1.100 3.500 4.860 2.74 0.320 [5,] 12.660 16.450 6.880 6.610 1.350 0 2.130 4.000 6.460 4.67 0.320 [,12] [1,] 0 [2,] 0 [3,] 0 [4,] 0 [5,] 0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.7316441 -7.196061 -1.619752 -4.532718 -0.2993433 0 0.0638219 [2,] 7.0216441 11.226061 2.469752 2.162718 1.4293433 0 1.1861781 [,8] [,9] [,10] [,11] [,12] [1,] -1.916507 -3.586067 -0.8857859 -0.1514103 0 [2,] 2.366507 5.096067 2.5457859 0.2614103 0 $out [1] -6.53 1.37 -0.44 $group [1] 3 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8.51999999999998, -0.200000000000045, 3.1450000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6mc6m1350632488.ps",horizontal=F,onefile=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,] 1865.710 1850.070 1840.370 1844.330 1891.650 1920.640 NA [2,] 1870.560 1854.675 1842.130 1862.345 1903.685 1920.660 NA [3,] 1875.950 1858.605 1842.785 1870.800 1905.330 1921.585 NA [4,] 1876.825 1862.520 1844.330 1877.950 1911.850 1921.930 NA [5,] 1878.260 1865.520 1845.000 1886.420 1916.680 1922.630 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1873.092 1855.027 1841.782 1863.682 1901.606 1921.006 NA [2,] 1878.808 1862.183 1843.788 1877.918 1909.054 1922.164 NA $out [1] 1855.87 1876.88 1876.68 1850.07 1886.42 1916.24 $group [1] 1 2 2 3 5 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1865.71, 1870.56, 1875.95, 1876.825, 1878.26, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7cdn21350632488.ps",horizontal=F,onefile=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,] 1874.308 1865.615 1878.260 [2,] 1877.501 1870.162 1878.397 [3,] 1878.945 1873.375 1879.690 [4,] 1880.948 1877.638 1882.353 [5,] 1882.698 1881.650 1882.944 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1877.373 1869.966 1877.886 [2,] 1880.517 1876.784 1881.494 $out [1] 1871.635 1867.778 1869.541 $group [1] 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1874.30833333333, 1877.50083333333, 1878.945, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/171db1350632488.ps tmp/171db1350632488.png",intern=TRUE)) character(0) > try(system("convert tmp/2rsj91350632488.ps tmp/2rsj91350632488.png",intern=TRUE)) character(0) > try(system("convert tmp/3g1jw1350632488.ps tmp/3g1jw1350632488.png",intern=TRUE)) character(0) > try(system("convert tmp/4cnof1350632488.ps tmp/4cnof1350632488.png",intern=TRUE)) character(0) > try(system("convert tmp/5xcmy1350632488.ps tmp/5xcmy1350632488.png",intern=TRUE)) character(0) > try(system("convert tmp/6mc6m1350632488.ps tmp/6mc6m1350632488.png",intern=TRUE)) character(0) > try(system("convert tmp/7cdn21350632488.ps tmp/7cdn21350632488.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 3.261 0.578 3.828