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(797,840,988,819,831,904,814,798,828,789,930,744,832,826,907,776,835,715,729,733,736,712,711,667,799,661,692,649,729,622,671,635,648,745,624,477,710,515,461,590,415,554,585,513,591,561,684,668,795,776,1043,964,762,1030,939,779,918,839,874,840,794,820,1003,780,607,1001,743,810,716,775,883,633) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 797 832 799 710 795 794 NA [2,] 840 826 661 515 776 820 NA [3,] 988 907 692 461 1043 1003 NA [4,] 819 776 649 590 964 780 NA [5,] 831 835 729 415 762 607 NA [6,] 904 715 622 554 1030 1001 NA [7,] 814 729 671 585 939 743 NA [8,] 798 733 635 513 779 810 NA [9,] 828 736 648 591 918 716 NA [10,] 789 712 745 561 839 775 NA [11,] 930 711 624 684 874 883 NA [12,] 744 667 477 668 840 633 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 43 -6 -138 -195 -19 26 NA [2,] 148 81 31 -54 267 183 NA [3,] -169 -131 -43 129 -79 -223 NA [4,] 12 59 80 -175 -202 -173 NA [5,] 73 -120 -107 139 268 394 NA [6,] -90 14 49 31 -91 -258 NA [7,] -16 4 -36 -72 -160 67 NA [8,] 30 3 13 78 139 -94 NA [9,] -39 -24 97 -30 -79 59 NA [10,] 141 -1 -121 123 35 108 NA [11,] -186 -44 -147 -16 -34 -250 NA [12,] 88 132 233 127 -46 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/wessaorg/rcomp/tmp/1a85k1320233090.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/23h7f1320233090.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/3mif81320233090.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/46wuj1320233090.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,] 794 515 461.0 590 415.0 554.0 585 513 591 712 624.0 477.0 [2,] 794 661 692.0 649 607.0 622.0 671 635 648 712 684.0 633.0 [3,] 796 798 947.5 778 745.5 809.5 736 756 726 760 792.5 667.5 [4,] 799 826 1003.0 819 831.0 1001.0 814 798 828 789 883.0 744.0 [5,] 799 840 1043.0 964 835.0 1030.0 939 810 918 839 930.0 840.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 792.7748 691.5697 746.895 668.3445 601.0128 565.0328 643.7604 650.8597 [2,] 799.2252 904.4303 1148.105 887.6555 889.9872 1053.9672 828.2396 861.1403 [,9] [,10] [,11] [,12] [1,] 609.8942 710.3325 664.1386 595.9014 [2,] 842.1058 809.6675 920.8614 739.0986 $out [1] 832 710 561 $group [1] 1 1 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(794, 794, 796, 799, 799, 515, 661, 798, 826, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5g8071320233090.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] [,12] [1,] -195.0 -54.0 -223 -202.0 -120 -258 -160 -94.0 -79 -121.0 -250.0 88 [2,] -138.0 31.0 -169 -175.0 -107 -91 -72 3.0 -39 -1.0 -186.0 88 [3,] -12.5 114.5 -105 -80.5 106 -38 -26 21.5 -27 71.5 -95.5 127 [4,] 26.0 183.0 -43 59.0 268 31 4 78.0 59 123.0 -34.0 132 [5,] 43.0 267.0 129 80.0 394 49 67 139.0 97 141.0 -16.0 132 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -118.2853 16.45509 -186.27407 -231.43756 -135.8871 -116.69394 -75.02245 [2,] 93.2853 212.54491 -23.72593 70.43756 347.8871 40.69394 23.02245 [,8] [,9] [,10] [,11] [,12] [1,] -26.87742 -90.21317 -8.484005 -193.544909 95.90971 [2,] 69.87742 36.21317 151.484005 2.544909 158.09029 $out [1] 233 -46 $group [1] 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-195, -138, -12.5, 26, 43, -54, 31, 114.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6i4cq1320233090.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] [1,] 744.0 667.0 622.0 415.0 762.0 607.0 NA [2,] 797.5 713.5 629.5 514.0 787.0 729.5 NA [3,] 823.5 734.5 655.0 573.0 857.0 787.0 NA [4,] 872.0 829.0 710.5 629.5 951.5 851.5 NA [5,] 930.0 907.0 799.0 710.0 1043.0 1003.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 789.52 681.8197 618.0554 520.3197 781.9704 731.355 NA [2,] 857.48 787.1803 691.9446 625.6803 932.0296 842.645 NA $out [1] 988 477 $group [1] 1 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(744, 797.5, 823.5, 872, 930, 667, 713.5, 734.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7pkw61320233090.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,] 671.5000 667.50 683.2500 [2,] 724.0833 740.75 730.6875 [3,] 743.2500 769.00 748.9375 [4,] 786.0833 797.00 791.0625 [5,] 849.0000 809.50 872.5000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 714.9714 743.344 721.4001 [2,] 771.5286 794.656 776.4749 $out [1] 947.5 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(671.5, 724.083333333333, 743.25, 786.083333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1a85k1320233090.ps tmp/1a85k1320233090.png",intern=TRUE)) character(0) > try(system("convert tmp/23h7f1320233090.ps tmp/23h7f1320233090.png",intern=TRUE)) character(0) > try(system("convert tmp/3mif81320233090.ps tmp/3mif81320233090.png",intern=TRUE)) character(0) > try(system("convert tmp/46wuj1320233090.ps tmp/46wuj1320233090.png",intern=TRUE)) character(0) > try(system("convert tmp/5g8071320233090.ps tmp/5g8071320233090.png",intern=TRUE)) character(0) > try(system("convert tmp/6i4cq1320233090.ps tmp/6i4cq1320233090.png",intern=TRUE)) character(0) > try(system("convert tmp/7pkw61320233090.ps tmp/7pkw61320233090.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.506 0.347 1.907