R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(617,614,647,580,614,636,388,356,639,753,611,639,630,586,695,552,619,681,421,307,754,690,644,643,608,651,691,627,634,731,475,337,803,722,590,724,627,696,825,677,656,785,412,352,839,729,696,641,695,638,762,635,721,854,418,367,824,687,601,676,740,691,683,594,729,731,386,331,706,715,657,653,642,643,718,654,632,731,392,344,792,852,649,629,685,617,715,715,629,916,531,357,917,828,708,858,775,785,1006,789,734,906,532,387,991,841,892,782,811,792,978,773,796,946,594,438,1023,868,791,760,779,852,1001,734,996,869,599,426,1138) > 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] 129 > (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] 11 11 11 11 11 11 11 11 11 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 617 630 608 627 695 740 642 685 775 811 779 [2,] 614 586 651 696 638 691 643 617 785 792 852 [3,] 647 695 691 825 762 683 718 715 1006 978 1001 [4,] 580 552 627 677 635 594 654 715 789 773 734 [5,] 614 619 634 656 721 729 632 629 734 796 996 [6,] 636 681 731 785 854 731 731 916 906 946 869 [7,] 388 421 475 412 418 386 392 531 532 594 599 [8,] 356 307 337 352 367 331 344 357 387 438 426 [9,] 639 754 803 839 824 706 792 917 991 1023 1138 [10,] 753 690 722 729 687 715 852 828 841 868 NA [11,] 611 644 590 696 601 657 649 708 892 791 NA [12,] 639 643 724 641 676 653 629 858 782 760 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -3 -44 43 69 -57 -49 1 -68 10 -19 73 [2,] 33 109 40 129 124 -8 75 98 221 186 149 [3,] -67 -143 -64 -148 -127 -89 -64 0 -217 -205 -267 [4,] 34 67 7 -21 86 135 -22 -86 -55 23 262 [5,] 22 62 97 129 133 2 99 287 172 150 -127 [6,] -248 -260 -256 -373 -436 -345 -339 -385 -374 -352 -270 [7,] -32 -114 -138 -60 -51 -55 -48 -174 -145 -156 -173 [8,] 283 447 466 487 457 375 448 560 604 585 712 [9,] 114 -64 -81 -110 -137 9 60 -89 -150 -155 NA [10,] -142 -46 -132 -33 -86 -58 -203 -120 51 -77 NA [11,] 28 -1 134 -55 75 -4 -20 150 -110 -31 NA [12,] -9 -35 -97 54 64 -11 56 -83 29 19 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/wessaorg/rcomp/tmp/18ge11322827616.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2fo4z1322827616.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3ze4l1322827616.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4bbft1322827616.ps",horizontal=F,onefile=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] [,11] [,12] [1,] 608.0 586.0 647.0 552.0 614.0 636.0 386.0 307.0 639 687 590 629.0 [2,] 628.5 627.5 693.0 610.5 630.5 731.0 402.0 340.5 773 715 611 641.0 [3,] 685.0 651.0 718.0 654.0 656.0 785.0 421.0 356.0 824 741 653 664.5 [4,] 757.5 740.5 901.5 724.5 731.5 887.5 531.5 377.0 954 841 708 760.0 [5,] 811.0 852.0 1006.0 789.0 796.0 946.0 599.0 426.0 1138 868 791 858.0 $n [1] 11 11 11 11 11 11 11 11 11 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 623.546 597.1682 618.6731 599.6918 607.8848 710.4453 359.3078 338.6118 [2,] 746.454 704.8318 817.3269 708.3082 704.1152 859.5547 482.6922 373.3882 [,9] [,10] [,11] [,12] [1,] 737.7738 678.0454 604.5349 605.0429 [2,] 910.2262 803.9546 701.4651 723.9571 $out [1] 996 438 892 $group [1] 5 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(608, 628.5, 685, 757.5, 811, 586, 627.5, 651, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5xzeu1322827616.ps",horizontal=F,onefile=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,] -68.0 -8.0 -267.0 -86.0 2.0 -436.0 -174.0 283.0 -155 -203.0 -110.0 [2,] -46.5 57.5 -176.5 -21.5 42.0 -373.5 -150.5 447.5 -137 -132.0 -31.0 [3,] -3.0 109.0 -127.0 23.0 99.0 -345.0 -114.0 466.0 -85 -81.5 -2.5 [4,] 26.5 139.0 -65.5 76.5 141.5 -265.0 -53.0 572.5 9 -46.0 75.0 [5,] 73.0 221.0 0.0 135.0 287.0 -248.0 -32.0 712.0 114 51.0 150.0 [,12] [1,] -97 [2,] -35 [3,] 5 [4,] 54 [5,] 64 $n [1] 11 11 11 11 11 11 11 11 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -37.77632 70.17438 -179.87906 -23.68602 51.5994 -396.6881 -160.44782 [2,] 31.77632 147.82562 -74.12094 69.68602 146.4006 -293.3119 -67.55218 [,8] [,9] [,10] [,11] [,12] [1,] 406.4515 -157.94742 -124.46903 -55.46183 -39.46795 [2,] 525.5485 -12.05258 -38.53097 50.46183 49.46795 $out [1] 262 -127 $group [1] 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-68, -46.5, -3, 26.5, 73, -8, 57.5, 109, 139, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6eele1322827616.ps",horizontal=F,onefile=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] [,11] [1,] 580.0 421.0 475.0 627.0 601.0 594.0 629.0 357.0 734.0 594.0 426 [2,] 595.5 569.0 599.0 634.0 618.0 623.5 630.5 623.0 754.5 766.5 734 [3,] 615.5 636.5 642.5 686.5 681.5 687.0 646.0 711.5 787.0 794.0 852 [4,] 639.0 685.5 723.0 757.0 741.5 722.0 724.5 843.0 899.0 907.0 996 [5,] 647.0 754.0 803.0 839.0 854.0 740.0 852.0 917.0 1006.0 1023.0 1138 $n [1] 12 12 12 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 595.6594 583.3636 585.9428 630.3989 625.1708 642.0735 603.126 611.1565 [2,] 635.3406 689.6364 699.0572 742.6011 737.8292 731.9265 688.874 811.8435 [,9] [,10] [,11] [1,] 721.0926 729.917 714.0133 [2,] 852.9074 858.083 989.9867 $out [1] 388 356 753 307 337 412 352 418 367 386 331 392 344 532 387 438 $group [1] 1 1 1 2 3 4 4 5 5 6 6 7 7 9 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(580, 595.5, 615.5, 639, 647, 421, 569, 636.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/76d3v1322827616.ps",horizontal=F,onefile=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,] 666.3636 651.00 662.1250 [2,] 675.1318 652.00 664.8125 [3,] 696.1136 660.25 688.5000 [4,] 780.6591 729.50 787.2500 [5,] 856.9091 824.00 863.5000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 647.9819 624.9017 632.6554 [2,] 744.2453 695.5983 744.3446 $out [1] 468.0000 363.8182 421.0000 356.0000 466.7500 358.7500 $group [1] 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(666.363636363636, 675.131818181818, 696.113636363636, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/18ge11322827616.ps tmp/18ge11322827616.png",intern=TRUE)) character(0) > try(system("convert tmp/2fo4z1322827616.ps tmp/2fo4z1322827616.png",intern=TRUE)) character(0) > try(system("convert tmp/3ze4l1322827616.ps tmp/3ze4l1322827616.png",intern=TRUE)) character(0) > try(system("convert tmp/4bbft1322827616.ps tmp/4bbft1322827616.png",intern=TRUE)) character(0) > try(system("convert tmp/5xzeu1322827616.ps tmp/5xzeu1322827616.png",intern=TRUE)) character(0) > try(system("convert tmp/6eele1322827616.ps tmp/6eele1322827616.png",intern=TRUE)) character(0) > try(system("convert tmp/76d3v1322827616.ps tmp/76d3v1322827616.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.632 0.332 1.991