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(637.12,633.12,639.38,646.62,655.88,662.88,652.88,654.88,651.88,643.5,651,645.88,655.12,655.38,651.12,639.38,648.38,649.62,650.25,649.38,649.62,635.12,646.38,637.12,641.12,639.62,638.12,641.25,649.38,607.38,603.38,602.38,603.12,606.88,595.88,588.12,586.25,592.38,635.5,625.75,646.25,653.25,644.88,640.38,652.25,680.12,687.25,697,690.75,695.62,703.88,721.62,725.25,747.38,736.5,736.62,736.25,750.5,757.12,749.62,760.62,744.75,765.88,771.5,764.62,758.88,754.12,731.88,730.25,728.62,724.75,712.5,711.38,698,709.5,713.62,706,708.62,701.62,706.62,678.75,686.5,669.75,686.38,693.12,687.5,701.75,711.25,682.5,668.62,666.75,683.75,687.12,688,677.12,679.25,690.38,682.38,681.75,705.25,703.62,687.75,703.62,689,684.88,664.88,642.75,643.62,642.88,627.38,617.12,626.38,620.38,606.5) > 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] 114 > (np <- floor(n / par1)) [1] 9 > 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 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 637.12 655.12 641.12 586.25 690.75 760.62 711.38 693.12 690.38 642.88 [2,] 633.12 655.38 639.62 592.38 695.62 744.75 698.00 687.50 682.38 627.38 [3,] 639.38 651.12 638.12 635.50 703.88 765.88 709.50 701.75 681.75 617.12 [4,] 646.62 639.38 641.25 625.75 721.62 771.50 713.62 711.25 705.25 626.38 [5,] 655.88 648.38 649.38 646.25 725.25 764.62 706.00 682.50 703.62 620.38 [6,] 662.88 649.62 607.38 653.25 747.38 758.88 708.62 668.62 687.75 606.50 [7,] 652.88 650.25 603.38 644.88 736.50 754.12 701.62 666.75 703.62 NA [8,] 654.88 649.38 602.38 640.38 736.62 731.88 706.62 683.75 689.00 NA [9,] 651.88 649.62 603.12 652.25 736.25 730.25 678.75 687.12 684.88 NA [10,] 643.50 635.12 606.88 680.12 750.50 728.62 686.50 688.00 664.88 NA [11,] 651.00 646.38 595.88 687.25 757.12 724.75 669.75 677.12 642.75 NA [12,] 645.88 637.12 588.12 697.00 749.62 712.50 686.38 679.25 643.62 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -4.00 0.26 -1.50 6.13 4.87 -15.87 -13.38 -5.62 -8.00 -15.50 [2,] 6.26 -4.26 -1.50 43.12 8.26 21.13 11.50 14.25 -0.63 -10.26 [3,] 7.24 -11.74 3.13 -9.75 17.74 5.62 4.12 9.50 23.50 9.26 [4,] 9.26 9.00 8.13 20.50 3.63 -6.88 -7.62 -28.75 -1.63 -6.00 [5,] 7.00 1.24 -42.00 7.00 22.13 -5.74 2.62 -13.88 -15.87 -13.88 [6,] -10.00 0.63 -4.00 -8.37 -10.88 -4.76 -7.00 -1.87 15.87 NA [7,] 2.00 -0.87 -1.00 -4.50 0.12 -22.24 5.00 17.00 -14.62 NA [8,] -3.00 0.24 0.74 11.87 -0.37 -1.63 -27.87 3.37 -4.12 NA [9,] -8.38 -14.50 3.76 27.87 14.25 -1.63 7.75 0.88 -20.00 NA [10,] 7.50 11.26 -11.00 7.13 6.62 -3.87 -16.75 -10.88 -22.13 NA [11,] -5.12 -9.26 -7.76 9.75 -7.50 -12.25 16.63 2.13 0.87 NA [12,] 9.24 4.00 -1.87 -6.25 11.00 -1.12 6.74 11.13 -0.74 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/1b35j1321368500.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/2vkua1321368500.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/3uv6j1321368500.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/4prvu1321368500.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] [1,] 586.25 592.38 617.120 625.750 620.38 606.50 603.38 602.38 603.12 606.88 [2,] 641.12 633.12 638.120 639.380 648.38 649.62 650.25 649.38 651.88 643.50 [3,] 672.75 668.88 666.435 675.935 669.19 665.75 666.75 683.75 678.75 680.12 [4,] 693.12 695.62 703.880 713.620 706.00 708.62 703.62 706.62 687.12 688.00 [5,] 760.62 744.75 765.880 771.500 764.62 758.88 754.12 736.62 736.25 750.50 [,11] [,12] [1,] 595.88 588.12 [2,] 646.38 643.62 [3,] 669.75 679.25 [4,] 687.25 697.00 [5,] 724.75 749.62 $n [1] 10 10 10 10 10 10 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 646.7687 637.6525 633.5787 638.8417 640.4008 636.2712 638.6418 653.6036 [2,] 698.7313 700.1075 699.2913 713.0283 697.9792 695.2288 694.8582 713.8964 [,9] [,10] [,11] [,12] [1,] 660.1903 656.6833 648.2251 651.1365 [2,] 697.3097 703.5567 691.2749 707.3635 $out [1] 757.12 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(586.25, 641.12, 672.75, 693.12, 760.62, 592.38, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5qtnq1321368500.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,] -15.87 -10.26 3.13 -28.75 -42.00 -10.88 -4.50 -4.12 -20.00 -22.13 -12.25 [2,] -13.38 -1.50 3.13 -6.88 -13.88 -8.37 -4.50 -3.00 -8.38 -11.00 -7.76 [3,] -4.81 7.26 6.43 1.00 -2.25 -4.76 -0.87 -0.37 0.88 -3.87 -5.12 [4,] 0.26 14.25 9.50 9.00 7.00 -1.87 2.00 0.74 7.75 7.13 2.13 [5,] 6.13 21.13 17.74 20.50 22.13 0.63 5.00 3.37 27.87 11.26 16.63 [,12] [1,] -6.25 [2,] -1.12 [3,] 4.00 [4,] 9.24 [5,] 11.13 $n [1] 10 10 10 10 10 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -11.625088 -0.609328 3.247294 -6.934281 -12.68248 -8.183333 -4.293333 [2,] 2.005088 15.129328 9.612706 8.934281 8.18248 -1.336667 2.553333 [,8] [,9] [,10] [,11] [,12] [1,] -2.339733 -7.615133 -13.418467 -10.32873333 -1.456267 [2,] 1.599733 9.375133 5.678467 0.08873333 9.456267 $out [1] 43.12 -11.74 -9.75 23.50 15.87 -22.24 17.00 -14.62 11.87 -27.87 $group [1] 2 3 3 3 6 7 7 7 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-15.87, -13.38, -4.81, 0.259999999999991, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6i4501321368500.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] [1,] 633.12 635.120 588.12 586.250 690.750 712.500 669.75 666.750 642.750 [2,] 641.44 642.880 602.75 630.625 712.750 729.435 686.44 678.185 673.315 [3,] 648.81 649.500 607.13 645.565 736.375 749.435 703.81 685.435 686.315 [4,] 653.88 650.685 640.37 666.685 748.500 762.620 709.06 690.560 697.000 [5,] 662.88 655.380 649.38 697.000 757.120 771.500 713.62 701.750 705.250 [,10] [1,] 606.50 [2,] 617.12 [3,] 623.38 [4,] 627.38 [5,] 627.38 $n [1] 12 12 12 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 643.136 645.9401 589.9713 629.1178 720.0692 734.2991 693.4929 679.7907 [2,] 654.484 653.0599 624.2887 662.0122 752.6808 764.5709 714.1271 691.0793 [,9] [,10] [1,] 675.5121 616.762 [2,] 697.1179 629.998 $out [1] 711.25 642.88 $group [1] 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(633.12, 641.44, 648.81, 653.88, 662.88, 635.12, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/739xm1321368500.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,] 665.6130 665.750 664.1675 [2,] 671.7494 667.815 666.9294 [3,] 674.9951 671.250 670.6006 [4,] 678.2717 679.000 676.9500 [5,] 680.2620 683.750 678.0000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 672.0203 666.1484 666.0302 [2,] 677.9699 676.3516 675.1711 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(665.613, 671.749444444444, 674.995111111111, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1b35j1321368500.ps tmp/1b35j1321368500.png",intern=TRUE)) character(0) > try(system("convert tmp/2vkua1321368500.ps tmp/2vkua1321368500.png",intern=TRUE)) character(0) > try(system("convert tmp/3uv6j1321368500.ps tmp/3uv6j1321368500.png",intern=TRUE)) character(0) > try(system("convert tmp/4prvu1321368500.ps tmp/4prvu1321368500.png",intern=TRUE)) character(0) > try(system("convert tmp/5qtnq1321368500.ps tmp/5qtnq1321368500.png",intern=TRUE)) character(0) > try(system("convert tmp/6i4501321368500.ps tmp/6i4501321368500.png",intern=TRUE)) character(0) > try(system("convert tmp/739xm1321368500.ps tmp/739xm1321368500.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.528 0.426 1.994