R version 2.7.0 (2008-04-22) 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(205597 + ,205471 + ,211064 + ,212856 + ,217036 + ,219302 + ,219759 + ,221388 + ,220834 + ,221788 + ,222358 + ,222972 + ,224164 + ,224915 + ,226294 + ,224690 + ,227021 + ,229284 + ,229189 + ,230032 + ,229389 + ,231053 + ,232560 + ,232681 + ,231555 + ,231428 + ,232141 + ,234939 + ,235424 + ,235471 + ,236355 + ,238693 + ,236958 + ,237060 + ,239282 + ,238252 + ,241552 + ,236230 + ,238909 + ,240723 + ,242120 + ,242100 + ,243276 + ,244677 + ,243494 + ,244902 + ,245247 + ,245578 + ,243052 + ,238121 + ,241863 + ,241203 + ,243634 + ,242351 + ,245180 + ,246126 + ,244424 + ,245166 + ,247258 + ,245094 + ,246020 + ,243082 + ,245555 + ,243685 + ,247277 + ,245029 + ,246169 + ,246778 + ,244577 + ,246048 + ,245775 + ,245328 + ,245477 + ,241903 + ,243219 + ,248088 + ,248521 + ,247389 + ,249057 + ,248916 + ,249193 + ,250768 + ,253106 + ,249829 + ,249447 + ,246755 + ,250785 + ,250140 + ,255755 + ,254671 + ,253919 + ,253741 + ,252729 + ,253810 + ,256653 + ,255231 + ,258405 + ,251061 + ,254811 + ,254895 + ,258325 + ,257608 + ,258759 + ,258621 + ,257852 + ,260560 + ,262358 + ,260812 + ,261165 + ,257164 + ,260720 + ,259581 + ,264743 + ,261845 + ,262262 + ,261631 + ,258953 + ,259966 + ,262850 + ,262204 + ,263418 + ,262752 + ,266433 + ,267722 + ,266003 + ,262971 + ,265521 + ,264676 + ,270223 + ,269508 + ,268457 + ,265814 + ,266680 + ,263018 + ,269285 + ,269829 + ,270911 + ,266844 + ,271244 + ,269907 + ,271296 + ,270157 + ,271322 + ,267179 + ,264101 + ,265518 + ,269419 + ,268714 + ,272482 + ,268351 + ,268175 + ,270674 + ,272764 + ,272599 + ,270333 + ,270846 + ,270491 + ,269160 + ,274027 + ,273784 + ,276663 + ,274525 + ,271344 + ,271115 + ,270798 + ,273911 + ,273985 + ,271917 + ,273338 + ,270601 + ,273547 + ,275363 + ,281229 + ,277793 + ,279913 + ,282500 + ,280041 + ,282166 + ,290304 + ,283519 + ,287816 + ,285226 + ,287595 + ,289741 + ,289148 + ,288301 + ,290155 + ,289648 + ,288225 + ,289351 + ,294735 + ,305333) > 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] 192 > (np <- floor(n / par1)) [1] 16 > 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] 16 16 16 16 16 16 16 16 16 16 16 16 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 205597 224164 231555 241552 243052 246020 245477 249447 258405 261165 [2,] 205471 224915 231428 236230 238121 243082 241903 246755 251061 257164 [3,] 211064 226294 232141 238909 241863 245555 243219 250785 254811 260720 [4,] 212856 224690 234939 240723 241203 243685 248088 250140 254895 259581 [5,] 217036 227021 235424 242120 243634 247277 248521 255755 258325 264743 [6,] 219302 229284 235471 242100 242351 245029 247389 254671 257608 261845 [7,] 219759 229189 236355 243276 245180 246169 249057 253919 258759 262262 [8,] 221388 230032 238693 244677 246126 246778 248916 253741 258621 261631 [9,] 220834 229389 236958 243494 244424 244577 249193 252729 257852 258953 [10,] 221788 231053 237060 244902 245166 246048 250768 253810 260560 259966 [11,] 222358 232560 239282 245247 247258 245775 253106 256653 262358 262850 [12,] 222972 232681 238252 245578 245094 245328 249829 255231 260812 262204 [,11] [,12] [,13] [,14] [,15] [,16] [,17] [1,] 263418 266680 264101 270491 273338 287816 NA [2,] 262752 263018 265518 269160 270601 285226 NA [3,] 266433 269285 269419 274027 273547 287595 NA [4,] 267722 269829 268714 273784 275363 289741 NA [5,] 266003 270911 272482 276663 281229 289148 NA [6,] 262971 266844 268351 274525 277793 288301 NA [7,] 265521 271244 268175 271344 279913 290155 NA [8,] 264676 269907 270674 271115 282500 289648 NA [9,] 270223 271296 272764 270798 280041 288225 NA [10,] 269508 270157 272599 273911 282166 289351 NA [11,] 268457 271322 270333 273985 290304 294735 NA [12,] 265814 267179 270846 271917 283519 305333 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -126 751 -127 -5322 -4931 -2938 -3574 -2692 -7344 -4001 -666 -3662 [2,] 5593 1379 713 2679 3742 2473 1316 4030 3750 3556 3681 6267 [3,] 1792 -1604 2798 1814 -660 -1870 4869 -645 84 -1139 1289 544 [4,] 4180 2331 485 1397 2431 3592 433 5615 3430 5162 -1719 1082 [5,] 2266 2263 47 -20 -1283 -2248 -1132 -1084 -717 -2898 -3032 -4067 [6,] 457 -95 884 1176 2829 1140 1668 -752 1151 417 2550 4400 [7,] 1629 843 2338 1401 946 609 -141 -178 -138 -631 -845 -1337 [8,] -554 -643 -1735 -1183 -1702 -2201 277 -1012 -769 -2678 5547 1389 [9,] 954 1664 102 1408 742 1471 1575 1081 2708 1013 -715 -1139 [10,] 570 1507 2222 345 2092 -273 2338 2843 1798 2884 -1051 1165 [11,] 614 121 -1030 331 -2164 -447 -3277 -1422 -1546 -646 -2643 -4143 [12,] 1192 -1126 3300 -2526 926 149 -382 3174 353 1214 866 -3078 [,13] [,14] [,15] [,16] [,17] [1,] 1417 -1331 -2737 -2590 NA [2,] 3901 4867 2946 2369 NA [3,] -705 -243 1816 2146 NA [4,] 3768 2879 5866 -593 NA [5,] -4131 -2138 -3436 -847 NA [6,] -176 -3181 2120 1854 NA [7,] 2499 -229 2587 -507 NA [8,] 2090 -317 -2459 -1423 NA [9,] -165 3113 2125 1126 NA [10,] -2266 74 8138 5384 NA [11,] 513 -2068 -6785 10598 NA [12,] -355 1421 4297 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/www/html/rcomp/tmp/1keis1229279436.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/2qzi91229279436.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/3wuq11229279436.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/4hm7f1229279436.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] [1,] 224164.0 205471.0 211064 212856.0 217036.0 219302.0 219759.0 221388.0 [2,] 242302.0 237175.5 240386 240963.0 242877.0 242225.5 244228.0 245401.5 [3,] 253926.0 248908.0 252798 252517.5 257040.0 256139.5 256339.0 256181.0 [4,] 265390.5 264268.0 269352 269271.5 271696.5 267597.5 269709.5 270290.5 [5,] 287816.0 285226.0 287595 289741.0 289148.0 288301.0 290155.0 289648.0 [,9] [,10] [,11] [,12] [1,] 220834.0 221788 222358.0 222972.0 [2,] 243959.0 245034 245511.0 245211.0 [3,] 255290.5 256888 259505.5 258021.5 [4,] 271047.0 271378 270827.5 269012.5 [5,] 288225.0 289351 294735.0 283519.0 $n [1] 16 16 16 16 16 16 16 16 16 16 16 16 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 244806.0 238206.5 241356.4 241335.6 245656.3 246117.6 246273.8 246349.8 [2,] 263046.0 259609.5 264239.6 263699.4 268423.7 266161.4 266404.2 266012.2 [,9] [,10] [,11] [,12] [1,] 244590.7 246482.1 249505.5 248619.9 [2,] 265990.3 267293.9 269505.5 267423.1 $out [1] 205597 305333 $group [1] 1 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cneo1229279436.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,] -7344.0 713.0 -1870.0 -1719.0 -4131.0 -752.0 -1337.0 -2678.0 -1139.0 [2,] -3831.5 2421.0 -682.5 783.5 -2965.0 161.0 -368.0 -1718.5 422.0 [3,] -2714.5 3618.5 314.0 2655.0 -1207.5 1145.5 235.5 -890.5 1103.5 [4,] -396.5 3965.5 1815.0 3974.0 -368.5 1987.0 1515.0 -20.0 1619.5 [5,] 1417.0 6267.0 4869.0 5866.0 2266.0 4400.0 2587.0 2090.0 3113.0 [,10] [,11] [,12] [1,] -2266.0 -4143.0 -2526.0 [2,] 209.5 -2403.5 -368.5 [3,] 1652.5 -1226.0 866.0 [4,] 2590.5 226.0 1317.5 [5,] 5384.0 614.0 3300.0 $n [1] 16 16 16 16 16 16 16 16 16 16 16 15 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4071.325 3008.423 -672.5125 1394.753 -2233.1175 424.23 -508.285 [2,] -1357.675 4228.578 1300.5125 3915.247 -181.8825 1866.77 979.285 [,8] [,9] [,10] [,11] [,12] [1,] -1561.4075 630.4875 712.005 -2264.6525 178.1891 [2,] -219.5925 1576.5125 2592.995 -187.3475 1553.8109 $out [1] -3181 5547 8138 -6785 10598 -3078 4297 $group [1] 6 8 10 11 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7344, -3831.5, -2714.5, -396.5, 1417, 713, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6840q1229279436.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] [1,] 205471.0 224164.0 231428 236230.0 238121 243082.0 241903.0 246755.0 [2,] 211960.0 225604.5 233540 241137.5 242107 244803.0 246433.0 250462.5 [3,] 219530.5 229236.5 235913 242698.0 244029 245665.0 248718.5 253775.5 [4,] 221588.0 230542.5 237656 244789.5 245173 246108.5 249511.0 254951.0 [5,] 222972.0 232681.0 239282 245578.0 247258 247277.0 253106.0 256653.0 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [,17] [1,] 254811.0 257164.0 262752.0 263018.0 264101 269160.0 270601 285226.0 NA [2,] 256251.5 259773.5 264047.0 267011.5 268263 270956.5 274455 288020.5 NA [3,] 258365.0 261398.0 265908.5 269868.0 269876 272850.5 279977 289249.5 NA [4,] 259659.5 262233.0 268089.5 271077.5 271664 274006.0 282333 289948.0 NA [5,] 262358.0 264743.0 270223.0 271322.0 272764 276663.0 290304 290155.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 215139.1 226984.2 234035.7 241032.3 242630.6 245069.6 247314.6 251728.3 [2,] 223921.9 231488.8 237790.3 244363.7 245427.4 246260.4 250122.4 255822.7 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 256810.6 260276.2 264064.7 268013.5 268324.8 271459.6 276383.8 288370.4 [2,] 259919.4 262519.8 267752.3 271722.5 271427.2 274241.4 283570.2 290128.6 [,17] [1,] NA [2,] NA $out [1] 251061 294735 305333 $group [1] 9 16 16 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" NA Warning message: In bxp(list(stats = c(205471, 211960, 219530.5, 221588, 222972, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7h5e51229279436.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,] 249525.3 248908.0 250645.6 [2,] 253175.6 253362.0 254896.2 [3,] 255688.3 256160.2 256752.9 [4,] 256498.0 256964.0 257744.1 [5,] 258536.4 259505.5 258111.6 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 254173.0 254517.4 255453.9 [2,] 257203.7 257803.1 258051.8 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(249525.3125, 253175.625, 255688.34375, 256498, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1keis1229279436.ps tmp/1keis1229279436.png") > system("convert tmp/2qzi91229279436.ps tmp/2qzi91229279436.png") > system("convert tmp/3wuq11229279436.ps tmp/3wuq11229279436.png") > system("convert tmp/4hm7f1229279436.ps tmp/4hm7f1229279436.png") > system("convert tmp/5cneo1229279436.ps tmp/5cneo1229279436.png") > system("convert tmp/6840q1229279436.ps tmp/6840q1229279436.png") > system("convert tmp/7h5e51229279436.ps tmp/7h5e51229279436.png") > > > proc.time() user system elapsed 2.616 1.579 2.864