R version 2.8.0 (2008-10-20) 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(12460,12870,14122,15366,15366,15046,10356,10194,11027,11449,12107,12862,12587,13951,15210,17511,17247,16900,12237,12188,12801,13276,14171,14629,16242,17239,18516,19862,19542,18515,13182,13148,13853,14341,14895,15317,15649,16373,17543,18911,19401,18295,12665,12246,12969,13563,15714,16094,15823,15460,16827,18279,18789,18041,12129,11708,12387,12982,13664,14073,14222,14715,15697,16908,17412,16232,10281,10258,11013,11779,12333,12684,12654,13239,14729,16146,16324,13797,9399,9626,10290,10931,11382,11704,11716,12470,13662,15097,15821,13083,9081,9479,10295,10999,11643,12055,12431,12940,14168,16031,16445,14245,9820,10389,11298,12156,12759,13414,13683,14070,15176,16694,17694,14294,9255,9868,10878,11685,12496,12488) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 12460 12587 16242 15649 15823 14222 12654 11716 12431 13683 NA [2,] 12870 13951 17239 16373 15460 14715 13239 12470 12940 14070 NA [3,] 14122 15210 18516 17543 16827 15697 14729 13662 14168 15176 NA [4,] 15366 17511 19862 18911 18279 16908 16146 15097 16031 16694 NA [5,] 15366 17247 19542 19401 18789 17412 16324 15821 16445 17694 NA [6,] 15046 16900 18515 18295 18041 16232 13797 13083 14245 14294 NA [7,] 10356 12237 13182 12665 12129 10281 9399 9081 9820 9255 NA [8,] 10194 12188 13148 12246 11708 10258 9626 9479 10389 9868 NA [9,] 11027 12801 13853 12969 12387 11013 10290 10295 11298 10878 NA [10,] 11449 13276 14341 13563 12982 11779 10931 10999 12156 11685 NA [11,] 12107 14171 14895 15714 13664 12333 11382 11643 12759 12496 NA [12,] 12862 14629 15317 16094 14073 12684 11704 12055 13414 12488 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 410 1364 997 724 -363 493 585 754 509 387 NA [2,] 1252 1259 1277 1170 1367 982 1490 1192 1228 1106 NA [3,] 1244 2301 1346 1368 1452 1211 1417 1435 1863 1518 NA [4,] 0 -264 -320 490 510 504 178 724 414 1000 NA [5,] -320 -347 -1027 -1106 -748 -1180 -2527 -2738 -2200 -3400 NA [6,] -4690 -4663 -5333 -5630 -5912 -5951 -4398 -4002 -4425 -5039 NA [7,] -162 -49 -34 -419 -421 -23 227 398 569 613 NA [8,] 833 613 705 723 679 755 664 816 909 1010 NA [9,] 422 475 488 594 595 766 641 704 858 807 NA [10,] 658 895 554 2151 682 554 451 644 603 811 NA [11,] 755 458 422 380 409 351 322 412 655 -8 NA [12,] -275 1613 332 -271 149 -30 12 376 269 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/1quy31229616208.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/20hoq1229616208.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/3v3ck1229616208.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/4ymll1229616208.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] [1,] 11716.0 12470.0 13662 15097 15366.0 13083 9081.0 9479.0 10290.0 10931.0 [2,] 12460.0 12940.0 14168 16031 16324.0 14245 9399.0 9868.0 10878.0 11449.0 [3,] 13168.5 14010.5 15193 16801 17329.5 15639 10318.5 10323.5 11162.5 11967.5 [4,] 15649.0 15460.0 16827 18279 18789.0 18041 12237.0 12188.0 12801.0 13276.0 [5,] 16242.0 17239.0 18516 19862 19542.0 18515 13182.0 13148.0 13853.0 14341.0 [,11] [,12] [1,] 11382.0 11704 [2,] 12107.0 12488 [3,] 12627.5 13138 [4,] 14171.0 14629 [5,] 15714.0 16094 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11575.15 12751.41 13864.46 15677.81 16097.89 13742.37 8900.522 9164.336 [2,] 14761.85 15269.59 16521.54 17924.19 18561.11 17535.63 11736.478 11482.664 [,9] [,10] [,11] [,12] [1,] 10201.69 11054.66 11596.24 12068.27 [2,] 12123.31 12880.34 13658.76 14207.73 $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(11716, 12460, 13168.5, 15649, 16242, 12470, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56c901229616208.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,] 387 1106 1211 -320 -3400 -5951.0 -421.0 613 422 451 322.0 -275 [2,] 410 1170 1346 0 -2527 -5630.0 -162.0 679 488 554 351.0 -30 [3,] 547 1240 1426 452 -1143 -4864.5 -28.5 739 618 651 410.5 149 [4,] 754 1277 1518 510 -748 -4425.0 398.0 833 766 811 458.0 332 [5,] 997 1367 1518 1000 -320 -4002.0 613.0 1010 858 895 458.0 376 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 375.1239 1186.539 1340.062 197.1837 -2031.8593 -5466.566 -308.2983 [2,] 718.8761 1293.461 1511.938 706.8163 -254.1407 -4262.434 251.2983 [,8] [,9] [,10] [,11] [,12] [1,] 662.0555 479.1001 522.5926 357.0385 -41.65333 [2,] 815.9445 756.8999 779.4074 463.9615 339.65333 $out [1] 1364 -363 982 1490 2301 1863 2151 755 655 -8 1613 $group [1] 1 1 2 2 3 3 10 11 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(387, 410, 547, 754, 997, 1106, 1170, 1240, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63afu1229616208.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] [,10] [1,] 10194 12188 13148.0 12246 11708.0 10258.0 9399.0 9081.0 9820.0 9255.0 [2,] 11238 12694 14097.0 13266 12684.5 11396.0 10610.5 10647.0 11727.0 11281.5 [3,] 12661 14061 15779.5 15904 14766.5 13453.0 12179.0 11885.5 12849.5 13089.5 [4,] 14584 16055 18515.5 17919 17434.0 15964.5 14263.0 13372.5 14206.5 14735.0 [5,] 15366 17511 19862.0 19401 18789.0 17412.0 16324.0 15821.0 16445.0 17694.0 [,11] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11134.87 12528.03 13764.19 13781.74 12600.22 11369.28 10513.07 10642.38 [2,] 14187.13 15593.97 17794.81 18026.26 16932.78 15536.72 13844.93 13128.62 [,9] [,10] [,11] [1,] 11718.58 11514.34 NA [2,] 13980.42 14664.66 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(10194, 11238, 12661, 14584, 15366, 12188, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yjcc1229616208.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,] 10840.50 10318.50 10857.12 [2,] 11998.60 11565.00 12079.94 [3,] 13639.35 13153.25 13702.75 [4,] 15704.90 15416.00 15716.44 [5,] 17404.10 17329.50 17434.75 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11948.88 11396.78 12044.12 [2,] 15329.82 14909.72 15361.38 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10840.5, 11998.6, 13639.35, 15704.9, 17404.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1quy31229616208.ps tmp/1quy31229616208.png") > system("convert tmp/20hoq1229616208.ps tmp/20hoq1229616208.png") > system("convert tmp/3v3ck1229616208.ps tmp/3v3ck1229616208.png") > system("convert tmp/4ymll1229616208.ps tmp/4ymll1229616208.png") > system("convert tmp/56c901229616208.ps tmp/56c901229616208.png") > system("convert tmp/63afu1229616208.ps tmp/63afu1229616208.png") > system("convert tmp/7yjcc1229616208.ps tmp/7yjcc1229616208.png") > > > proc.time() user system elapsed 1.128 0.964 1.509