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(459191,466617,477604,482132,488837,490761,495016,491156,502519,509405,516184,525109,536953,543315,554950,574343,600423,605963,605672,626140,650740,644045,659971,677720,685500,692880,713398,726815,726448,722721,712776,707154,721030,698097,697694,696268,669371,642615,639078,632034,651048,652996,651578,672179,684741,685734,691557,717499,739340,760643,769425,790364,782748,799182,817333,834295,851736,849382,838158,817005) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 459191 536953 685500 669371 739340 NA [2,] 466617 543315 692880 642615 760643 NA [3,] 477604 554950 713398 639078 769425 NA [4,] 482132 574343 726815 632034 790364 NA [5,] 488837 600423 726448 651048 782748 NA [6,] 490761 605963 722721 652996 799182 NA [7,] 495016 605672 712776 651578 817333 NA [8,] 491156 626140 707154 672179 834295 NA [9,] 502519 650740 721030 684741 851736 NA [10,] 509405 644045 698097 685734 849382 NA [11,] 516184 659971 697694 691557 838158 NA [12,] 525109 677720 696268 717499 817005 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 7426 6362 7380 -26756 21303 NA [2,] 10987 11635 20518 -3537 8782 NA [3,] 4528 19393 13417 -7044 20939 NA [4,] 6705 26080 -367 19014 -7616 NA [5,] 1924 5540 -3727 1948 16434 NA [6,] 4255 -291 -9945 -1418 18151 NA [7,] -3860 20468 -5622 20601 16962 NA [8,] 11363 24600 13876 12562 17441 NA [9,] 6886 -6695 -22933 993 -2354 NA [10,] 6779 15926 -403 5823 -11224 NA [11,] 8925 17749 -1426 25942 -21153 NA [12,] 11844 7780 -26897 21841 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/1hwqe1225642936.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/2hghx1225642936.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/3t8oi1225642936.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/46rep1225642936.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,] 459191 466617 477604 482132 488837 490761 495016 626140 650740 644045 [2,] 536953 543315 554950 574343 600423 605963 605672 626140 650740 644045 [3,] 669371 642615 639078 632034 651048 652996 651578 672179 684741 685734 [4,] 685500 692880 713398 726815 726448 722721 712776 707154 721030 698097 [5,] 739340 760643 769425 790364 782748 799182 817333 707154 721030 698097 [,11] [,12] [1,] 659971 677720 [2,] 659971 677720 [3,] 691557 696268 [4,] 697694 717499 [5,] 697694 717499 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 564408.1 536932.7 527119 524297.7 561999 570495.1 575898.6 614934.7 [2,] 774333.9 748297.3 751037 739770.3 740097 735496.9 727257.4 729423.3 [,9] [,10] [,11] [,12] [1,] 635074.3 647541 664902 668160.3 [2,] 734407.7 723927 718212 724375.7 $out [1] 491156 834295 502519 851736 509405 849382 516184 838158 525109 817005 $group [1] 8 8 9 9 10 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(459191, 536953, 669371, 685500, 739340, 466617, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5mn101225642936.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,] 6362 8782 -7044 -7616 1924 -1418 -5622 11363 -6695 -403 -21153 -26897.0 [2,] 6362 8782 4528 -367 1924 -1418 -3860 12562 -6695 -403 -1426 -9558.5 [3,] 7380 10987 13417 6705 1948 -291 16962 13876 -2354 5823 8925 9812.0 [4,] 7426 11635 19393 19014 5540 4255 20468 17441 993 6779 17749 16842.5 [5,] 7426 11635 20939 26080 5540 4255 20601 24600 6886 15926 25942 21841.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 6628.18 8971.077 2913.428 -6989.566 -607.0565 -4299.528 -228.1035 [2,] 8131.82 13002.923 23920.572 20399.566 4503.0565 3717.528 34152.1035 [,8] [,9] [,10] [,11] [,12] [1,] 10428.51 -7786.321 748.2169 -4624.007 -11044.79 [2,] 17323.49 3078.321 10897.7831 22474.007 30668.79 $out [1] -26756 21303 20518 -3537 -3727 16434 -9945 18151 -22933 -11224 $group [1] 1 1 2 2 5 5 6 6 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(6362, 6362, 7380, 7426, 7426, 8782, 8782, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6qd1l1225642936.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] [1,] 459191.0 536953.0 685500.0 632034.0 739340.0 NA [2,] 479868.0 564646.5 696981.0 646831.5 776086.5 NA [3,] 490958.5 605817.5 709965.0 661183.5 808093.5 NA [4,] 505962.0 647392.5 721875.5 685237.5 836226.5 NA [5,] 525109.0 677720.0 726815.0 717499.0 851736.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 479056.9 568076.5 698610.5 643666.3 780663.2 NA [2,] 502860.1 643558.5 721319.5 678700.7 835523.8 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(459191, 479868, 490958.5, 505962, 525109, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7w2a71225642936.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,] 618071.0 632034.0 611226.5 [2,] 636014.3 646831.5 642376.5 [3,] 655399.8 661183.5 663888.8 [4,] 679022.7 685237.5 674951.8 [5,] 686720.2 696268.0 697609.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 635783.4 643666.3 649031.0 [2,] 675016.2 678700.7 678746.5 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(618071, 636014.3, 655399.8, 679022.7, 686720.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1hwqe1225642936.ps tmp/1hwqe1225642936.png") > system("convert tmp/2hghx1225642936.ps tmp/2hghx1225642936.png") > system("convert tmp/3t8oi1225642936.ps tmp/3t8oi1225642936.png") > system("convert tmp/46rep1225642936.ps tmp/46rep1225642936.png") > system("convert tmp/5mn101225642936.ps tmp/5mn101225642936.png") > system("convert tmp/6qd1l1225642936.ps tmp/6qd1l1225642936.png") > system("convert tmp/7w2a71225642936.ps tmp/7w2a71225642936.png") > > > proc.time() user system elapsed 2.572 1.608 2.821