R version 2.6.2 (2008-02-08) 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(516.922,514.258,509.846,527.070,541.657,564.591,555.362,498.662,511.038,525.919,531.673,548.854,560.576,557.274,565.742,587.625,619.916,625.809,619.567,572.942,572.775,574.205,579.799,590.072,593.408,597.141,595.404,612.117,628.232,628.884,620.735,569.028,567.456,573.100,584.428,589.379,590.865,595.454,594.167,611.324,612.613,610.763,593.530,542.722,536.662,543.599,555.332,560.854,562.325,554.788,547.344,565.464,577.992,579.714,569.323,506.971,500.857,509.127,509.933,517.009,519.164,512.238,509.239,518.585,522.975,525.192,516.847,455.626,454.724,461.251,470.439,474.605,476.049,471.067,470.984,502.831,512.927,509.673,484.015,431.328,436.087,442.867,447.988,460.070,467.037,460.170,464.196,485.025,501.492,520.564,488.180,439.148,441.977,456.608,461.935,480.961,492.865) > 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] 97 > (np <- floor(n / par1)) [1] 8 > 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] 9 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 516.922 560.576 593.408 590.865 562.325 519.164 476.049 467.037 492.865 [2,] 514.258 557.274 597.141 595.454 554.788 512.238 471.067 460.170 NA [3,] 509.846 565.742 595.404 594.167 547.344 509.239 470.984 464.196 NA [4,] 527.070 587.625 612.117 611.324 565.464 518.585 502.831 485.025 NA [5,] 541.657 619.916 628.232 612.613 577.992 522.975 512.927 501.492 NA [6,] 564.591 625.809 628.884 610.763 579.714 525.192 509.673 520.564 NA [7,] 555.362 619.567 620.735 593.530 569.323 516.847 484.015 488.180 NA [8,] 498.662 572.942 569.028 542.722 506.971 455.626 431.328 439.148 NA [9,] 511.038 572.775 567.456 536.662 500.857 454.724 436.087 441.977 NA [10,] 525.919 574.205 573.100 543.599 509.127 461.251 442.867 456.608 NA [11,] 531.673 579.799 584.428 555.332 509.933 470.439 447.988 461.935 NA [12,] 548.854 590.072 589.379 560.854 517.009 474.605 460.070 480.961 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -2.664 -3.302 3.733 4.589 -7.537 -6.926 -4.982 -6.867 NA [2,] -4.412 8.468 -1.737 -1.287 -7.444 -2.999 -0.083 4.026 NA [3,] 17.224 21.883 16.713 17.157 18.120 9.346 31.847 20.829 NA [4,] 14.587 32.291 16.115 1.289 12.528 4.390 10.096 16.467 NA [5,] 22.934 5.893 0.652 -1.850 1.722 2.217 -3.254 19.072 NA [6,] -9.229 -6.242 -8.149 -17.233 -10.391 -8.345 -25.658 -32.384 NA [7,] -56.700 -46.625 -51.707 -50.808 -62.352 -61.221 -52.687 -49.032 NA [8,] 12.376 -0.167 -1.572 -6.060 -6.114 -0.902 4.759 2.829 NA [9,] 14.881 1.430 5.644 6.937 8.270 6.527 6.780 14.631 NA [10,] 5.754 5.594 11.328 11.733 0.806 9.188 5.121 5.327 NA [11,] 17.181 10.273 4.951 5.522 7.076 4.166 12.082 19.026 NA [12,] 11.722 3.336 1.486 1.471 2.155 1.444 6.967 11.904 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/17gx41209311429.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/2rgzl1209311429.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/3t8801209311429.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/4goto1209311429.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,] 467.037 460.1700 464.1960 485.0250 501.4920 509.6730 484.0150 431.3280 [2,] 492.865 491.6525 490.1115 510.7080 517.9510 522.8780 502.5135 447.3870 [3,] 519.164 534.5230 528.5950 546.2670 559.8245 572.1525 562.3425 502.8165 [4,] 562.325 576.3640 579.9545 599.4745 616.2645 618.2860 606.5485 555.8750 [5,] 593.408 597.1410 595.4040 612.1170 628.2320 628.8840 620.7350 572.9420 [,9] [,10] [,11] [,12] [1,] 436.0870 442.8670 447.9880 460.0700 [2,] 448.3505 458.9295 466.1870 477.7830 [3,] 505.9475 517.5230 520.8030 532.9315 [4,] 552.0590 558.3495 567.5655 575.1165 [5,] 572.7750 574.2050 584.4280 590.0720 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 482.5817 487.2019 478.4074 496.6808 504.9052 518.8562 504.2271 442.2135 [2,] 555.7463 581.8441 578.7826 595.8532 614.7438 625.4488 620.4579 563.4195 [,9] [,10] [,11] [,12] [1,] 448.0144 461.9856 464.1715 478.5596 [2,] 563.8806 573.0604 577.4345 587.3034 $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(467.037, 492.865, 519.164, 562.325, 593.408, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50zxc1209311429.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,] -7.5370 -7.4440 16.713 1.2890 -3.2540 -32.3840 -62.3520 -6.1140 1.4300 [2,] -6.8965 -3.7055 16.935 7.2430 -0.5990 -21.4455 -58.9605 -3.8160 6.0855 [3,] -4.1420 -1.5120 17.672 13.5575 1.9695 -9.8100 -52.1970 -0.5345 6.8585 [4,] 0.5345 1.9715 21.356 16.2910 12.4825 -8.2470 -49.9200 3.7940 11.4505 [5,] 4.5890 8.4680 21.883 16.4670 22.9340 -6.2420 -46.6250 12.3760 14.8810 [,10] [,11] [,12] [1,] 0.806 4.1660 1.4440 [2,] 5.224 5.2365 1.4785 [3,] 5.674 8.6745 2.7455 [4,] 10.258 14.6315 9.3445 [5,] 11.733 19.0260 11.9040 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -8.293063288 -4.683254 15.20237 8.503157 -5.338014 -17.182872 -57.24715 [2,] 0.009063288 1.659254 20.14163 18.611843 9.277014 -2.437128 -47.14685 [,8] [,9] [,10] [,11] [,12] [1,] -4.785555 3.861534 2.861935 3.426318 -1.648561 [2,] 3.716555 9.855466 8.486065 13.922682 7.139561 $out [1] 9.346 31.847 32.291 $group [1] 3 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7.53700000000003, -6.89649999999995, -4.142, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6f7ko1209311429.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,] 498.6620 557.2740 567.456 536.6620 500.8570 454.7240 431.3280 439.1480 [2,] 512.6480 569.2585 578.764 549.4655 509.5300 465.8450 445.4275 458.3890 [3,] 526.4945 577.0020 594.406 592.1975 551.0660 510.7385 471.0255 465.6165 [4,] 545.2555 604.8195 616.426 603.1085 567.3935 518.8745 493.4230 486.6025 [5,] 564.5910 625.8090 628.884 612.6130 579.7140 525.1920 512.9270 520.5640 [,9] [1,] 492.865 [2,] 492.865 [3,] 492.865 [4,] 492.865 [5,] 492.865 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 511.622 560.7824 577.2281 567.7306 524.6741 486.5514 449.1344 452.7481 [2,] 541.367 593.2216 611.5839 616.6644 577.4579 534.9256 492.9166 478.4849 [,9] [1,] 492.865 [2,] 492.865 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(498.662, 512.648, 526.4945, 545.2555, 564.591, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7bymq1209311429.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,] 502.0534 502.8165 497.9489 [2,] 514.2627 518.3435 510.2066 [3,] 531.5693 530.7632 530.9886 [4,] 553.6000 553.0457 554.4789 [5,] 570.6488 572.1525 569.2797 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 513.6273 514.9353 510.7956 [2,] 549.5114 546.5912 551.1815 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(502.053375, 514.2626875, 531.569347222222, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/17gx41209311429.ps tmp/17gx41209311429.png") > system("convert tmp/2rgzl1209311429.ps tmp/2rgzl1209311429.png") > system("convert tmp/3t8801209311429.ps tmp/3t8801209311429.png") > system("convert tmp/4goto1209311429.ps tmp/4goto1209311429.png") > system("convert tmp/50zxc1209311429.ps tmp/50zxc1209311429.png") > system("convert tmp/6f7ko1209311429.ps tmp/6f7ko1209311429.png") > system("convert tmp/7bymq1209311429.ps tmp/7bymq1209311429.png") > > > proc.time() user system elapsed 1.452 0.976 1.745