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(1213.8,1245.6,1306.3,1255.8,1257.6,1287.8,1300.4,1320.9,1370.8,1327.3,1320,1345.3,1346.7,1395.4,1462,1491.6,1461.8,1477.9,1490.3,1521.1,1561.9,1552.6,1523.6,1548.3,1552.4,1587,1621.3,1648.7,1641.8,1650.6,1688.6,1670.7,1682.2,1678.9,1650.6,1662.4,1664.5,1683.2,1736.2,1747.6,1749,1759.7,1793.6,1817.4,1858.4,1839.9,1809.1,1877.7,1880.3,1930.9,2039.3,1992.7,1987.8,1984.4,2016.5,2016.7,2064.1,2031.5,2000.3,2057.8,2041.2,2093.2,2158.3,2128.8,2131.9,2170.3,2190.8,2217.7,2254.4,2223.3,2210.5,2250.8,2249.1,2288.6,2329.2,2313.8,2309.8,2345.9,2361.3,2372,2410.4,2398.5,2362.3,2419.1,2421.6,2465,2480.5,2506.1,2506.6,2525.8,2550,2578.3,2807.8,2815.3,2767.7,2815.4,2838.8,2864,2948.6,2922.8,2917.2,2936.8,2993.4,3007.8,3046.3,3011.5,2958.6,3019.8,2998.5,3040.4,3166,3110,3099.2,3150.3,3163.6,3182.6,3244.4,3223.2,3143.6,3217,3182.3,3217.2,3262.5,3227.9,3171.6,3219,3195.4,3221.6,3262.1,3179.5,3133.6,3219.2,3245,3265.3,3312.5,3383.6,3386.3,3411.1,3467.2,3487.7,3575.5,3571.5,3582.3,3637.1,3685) > 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] 145 > (np <- floor(n / par1)) [1] 12 > 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] 13 12 12 12 12 12 12 12 12 12 12 12 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 1213.8 1346.7 1552.4 1664.5 1880.3 2041.2 2249.1 2421.6 2838.8 2998.5 [2,] 1245.6 1395.4 1587.0 1683.2 1930.9 2093.2 2288.6 2465.0 2864.0 3040.4 [3,] 1306.3 1462.0 1621.3 1736.2 2039.3 2158.3 2329.2 2480.5 2948.6 3166.0 [4,] 1255.8 1491.6 1648.7 1747.6 1992.7 2128.8 2313.8 2506.1 2922.8 3110.0 [5,] 1257.6 1461.8 1641.8 1749.0 1987.8 2131.9 2309.8 2506.6 2917.2 3099.2 [6,] 1287.8 1477.9 1650.6 1759.7 1984.4 2170.3 2345.9 2525.8 2936.8 3150.3 [7,] 1300.4 1490.3 1688.6 1793.6 2016.5 2190.8 2361.3 2550.0 2993.4 3163.6 [8,] 1320.9 1521.1 1670.7 1817.4 2016.7 2217.7 2372.0 2578.3 3007.8 3182.6 [9,] 1370.8 1561.9 1682.2 1858.4 2064.1 2254.4 2410.4 2807.8 3046.3 3244.4 [10,] 1327.3 1552.6 1678.9 1839.9 2031.5 2223.3 2398.5 2815.3 3011.5 3223.2 [11,] 1320.0 1523.6 1650.6 1809.1 2000.3 2210.5 2362.3 2767.7 2958.6 3143.6 [12,] 1345.3 1548.3 1662.4 1877.7 2057.8 2250.8 2419.1 2815.4 3019.8 3217.0 [,11] [,12] [,13] [1,] 3182.3 3245.0 3685 [2,] 3217.2 3265.3 NA [3,] 3262.5 3312.5 NA [4,] 3227.9 3383.6 NA [5,] 3171.6 3386.3 NA [6,] 3219.0 3411.1 NA [7,] 3195.4 3467.2 NA [8,] 3221.6 3487.7 NA [9,] 3262.1 3575.5 NA [10,] 3179.5 3571.5 NA [11,] 3133.6 3582.3 NA [12,] 3219.2 3637.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 31.8 48.7 34.6 18.7 50.6 52.0 39.5 43.4 25.2 41.9 34.9 20.3 [2,] 60.7 66.6 34.3 53.0 108.4 65.1 40.6 15.5 84.6 125.6 45.3 47.2 [3,] -50.5 29.6 27.4 11.4 -46.6 -29.5 -15.4 25.6 -25.8 -56.0 -34.6 71.1 [4,] 1.8 -29.8 -6.9 1.4 -4.9 3.1 -4.0 0.5 -5.6 -10.8 -56.3 2.7 [5,] 30.2 16.1 8.8 10.7 -3.4 38.4 36.1 19.2 19.6 51.1 47.4 24.8 [6,] 12.6 12.4 38.0 33.9 32.1 20.5 15.4 24.2 56.6 13.3 -23.6 56.1 [7,] 20.5 30.8 -17.9 23.8 0.2 26.9 10.7 28.3 14.4 19.0 26.2 20.5 [8,] 49.9 40.8 11.5 41.0 47.4 36.7 38.4 229.5 38.5 61.8 40.5 87.8 [9,] -43.5 -9.3 -3.3 -18.5 -32.6 -31.1 -11.9 7.5 -34.8 -21.2 -82.6 -4.0 [10,] -7.3 -29.0 -28.3 -30.8 -31.2 -12.8 -36.2 -47.6 -52.9 -79.6 -45.9 10.8 [11,] 25.3 24.7 11.8 68.6 57.5 40.3 56.8 47.7 61.2 73.4 85.6 54.8 [12,] 1.4 4.1 2.1 2.6 -16.6 -1.7 2.5 23.4 -21.3 -34.7 25.8 47.9 [,13] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] 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/18beq1260696032.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/2r6kf1260696032.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/3j3rd1260696032.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/4ka3c1260696032.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,] 1213.8 1245.6 1306.30 1255.80 1257.60 1287.80 1300.40 1320.90 1370.80 [2,] 1664.5 1635.1 1678.75 1698.15 1695.40 1705.15 1741.10 1744.05 1770.30 [3,] 2249.1 2190.9 2243.75 2221.30 2220.85 2258.10 2276.05 2294.85 2332.40 [4,] 2998.5 2952.2 3057.30 3016.40 3008.20 3043.55 3078.50 3095.20 3145.35 [5,] 3685.0 3265.3 3312.50 3383.60 3386.30 3411.10 3467.20 3487.70 3575.50 [,10] [,11] [,12] [1,] 1327.3 1320.00 1345.30 [2,] 1759.4 1729.85 1770.05 [3,] 2310.9 2286.40 2334.95 [4,] 3095.5 3046.10 3118.40 [5,] 3571.5 3582.30 3637.10 $n [1] 13 12 12 12 12 12 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1664.524 1590.162 1614.984 1620.037 1622.073 1647.647 1666.053 1678.581 [2,] 2833.676 2791.638 2872.516 2822.563 2819.627 2868.553 2886.047 2911.119 [,9] [,10] [,11] [,12] [1,] 1705.230 1701.496 1686.050 1719.959 [2,] 2959.570 2920.304 2886.750 2949.941 $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(1213.8, 1664.5, 2249.1, 2998.5, 3685, 1245.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5atiz1260696032.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,] 18.70 15.50 -56.0 -10.80 -3.40 12.40 0.20 36.70 -43.50 -79.60 11.8 [2,] 28.50 42.95 -40.6 -8.85 13.40 12.95 12.55 38.45 -33.70 -46.75 32.8 [3,] 37.20 56.85 -20.6 -4.45 22.20 22.35 20.50 40.90 -19.85 -31.00 55.8 [4,] 46.05 75.60 26.5 1.60 37.25 35.95 26.55 55.85 -6.65 -20.55 64.9 [5,] 52.00 108.40 71.1 3.10 51.10 56.60 30.80 61.80 7.50 10.80 85.6 [,12] [1,] -34.70 [2,] -9.15 [3,] 2.30 [4,] 13.75 [5,] 47.90 $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 29.19533 41.95812 -51.20476 -9.2163151 11.32185 11.85955 14.11451 32.96374 [2,] 45.20467 71.74188 10.00476 0.3163151 33.07815 32.84045 26.88549 48.83626 [,9] [,10] [,11] [,12] [1,] -32.187687 -42.95000 41.15897 -8.144844 [2,] -7.512313 -19.05000 70.44103 12.744844 $out [1] 125.6 -29.8 -56.3 -23.6 -17.9 11.5 229.5 87.8 -82.6 $group [1] 2 4 4 6 7 8 8 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(18.7000000000000, 28.4999999999999, 37.1999999999998, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6igtv1260696032.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,] 1213.80 1395.40 1587.00 1664.50 1930.9 2041.20 2249.10 2421.60 2838.80 [2,] 1256.70 1461.90 1631.55 1741.90 1986.1 2130.35 2311.80 2493.30 2920.00 [3,] 1303.35 1490.95 1650.60 1776.65 2008.4 2180.55 2353.60 2537.90 2953.60 [4,] 1324.10 1535.95 1674.80 1828.65 2035.4 2220.50 2385.25 2787.75 3009.65 [5,] 1370.80 1561.90 1688.60 1877.70 2064.1 2254.40 2419.10 2815.40 3046.30 [,10] [,11] [,12] [,13] [1,] 2998.50 3133.60 3245.00 3685 [2,] 3104.60 3180.90 3348.05 3685 [3,] 3156.95 3218.10 3439.15 3685 [4,] 3199.80 3224.75 3573.50 3685 [5,] 3244.40 3262.50 3637.10 3685 $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1272.608 1457.175 1630.873 1737.083 1985.914 2139.432 2320.099 2403.599 [2,] 1334.092 1524.725 1670.327 1816.217 2030.886 2221.668 2387.101 2672.201 [,9] [,10] [,11] [,12] [,13] [1,] 2912.71 3113.529 3198.1 3336.321 3685 [2,] 2994.49 3200.371 3238.1 3541.979 3685 $out [1] 1346.7 1552.4 1880.3 $group [1] 2 3 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" NA Warning message: In bxp(list(stats = c(1213.8, 1256.7, 1303.35, 1324.1, 1370.8, 1395.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7d6bg1260696032.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,] 2256.317 2190.900 2283.625 [2,] 2314.671 2232.525 2344.344 [3,] 2341.586 2267.075 2373.606 [4,] 2388.133 2302.875 2421.344 [5,] 2428.192 2334.950 2455.088 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2308.079 2234.988 2338.486 [2,] 2375.092 2299.162 2408.726 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2256.31666666667, 2314.67083333333, 2341.58557692308, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/18beq1260696032.ps tmp/18beq1260696032.png",intern=TRUE)) character(0) > try(system("convert tmp/2r6kf1260696032.ps tmp/2r6kf1260696032.png",intern=TRUE)) character(0) > try(system("convert tmp/3j3rd1260696032.ps tmp/3j3rd1260696032.png",intern=TRUE)) character(0) > try(system("convert tmp/4ka3c1260696032.ps tmp/4ka3c1260696032.png",intern=TRUE)) character(0) > try(system("convert tmp/5atiz1260696032.ps tmp/5atiz1260696032.png",intern=TRUE)) character(0) > try(system("convert tmp/6igtv1260696032.ps tmp/6igtv1260696032.png",intern=TRUE)) character(0) > try(system("convert tmp/7d6bg1260696032.ps tmp/7d6bg1260696032.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.179 0.919 1.915