R version 2.8.0 (2008-10-20) 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(554.79,562.33,560.85,555.33,543.6,536.66,542.72,593.53,610.76,612.61,611.32,594.17,595.45,590.87,589.38,584.43,573.1,567.46,569.03,620.74,628.88,628.23,612.12,595.4,597.14,593.41,590.07,579.8,574.21,572.78,572.94,619.57,625.81,619.92,587.63,565.74,557.27,560.58,548.85,531.67,525.92,511.04,498.66,555.36,564.59,541.66,527.07,509.85,514.26,516.92,507.56,492.62,490.24,469.36,477.58,528.38,533.59,517.95,506.17,501.87) > 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,] 554.79 595.45 597.14 557.27 514.26 NA [2,] 562.33 590.87 593.41 560.58 516.92 NA [3,] 560.85 589.38 590.07 548.85 507.56 NA [4,] 555.33 584.43 579.80 531.67 492.62 NA [5,] 543.60 573.10 574.21 525.92 490.24 NA [6,] 536.66 567.46 572.78 511.04 469.36 NA [7,] 542.72 569.03 572.94 498.66 477.58 NA [8,] 593.53 620.74 619.57 555.36 528.38 NA [9,] 610.76 628.88 625.81 564.59 533.59 NA [10,] 612.61 628.23 619.92 541.66 517.95 NA [11,] 611.32 612.12 587.63 527.07 506.17 NA [12,] 594.17 595.40 565.74 509.85 501.87 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 7.54 -4.58 -3.73 3.31 2.66 NA [2,] -1.48 -1.49 -3.34 -11.73 -9.36 NA [3,] -5.52 -4.95 -10.27 -17.18 -14.94 NA [4,] -11.73 -11.33 -5.59 -5.75 -2.38 NA [5,] -6.94 -5.64 -1.43 -14.88 -20.88 NA [6,] 6.06 1.57 0.16 -12.38 8.22 NA [7,] 50.81 51.71 46.63 56.70 50.80 NA [8,] 17.23 8.14 6.24 9.23 5.21 NA [9,] 1.85 -0.65 -5.89 -22.93 -15.64 NA [10,] -1.29 -16.11 -32.29 -14.59 -11.78 NA [11,] -17.15 -16.72 -21.89 -17.22 -4.30 NA [12,] 1.28 1.74 -8.47 4.41 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/1keor1229184476.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/2fl2t1229184476.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/3svfz1229184476.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/44cal1229184476.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,] 514.26 516.92 507.56 492.62 490.24 469.36 477.58 528.38 533.59 517.95 [2,] 554.79 560.58 548.85 531.67 525.92 511.04 498.66 555.36 564.59 541.66 [3,] 557.27 562.33 560.85 555.33 543.60 536.66 542.72 593.53 610.76 612.61 [4,] 595.45 590.87 589.38 579.80 573.10 567.46 569.03 619.57 625.81 619.92 [5,] 597.14 593.41 590.07 584.43 574.21 572.78 572.94 620.74 628.88 628.23 [,11] [,12] [1,] 506.17 501.87 [2,] 527.07 509.85 [3,] 587.63 565.74 [4,] 611.32 594.17 [5,] 612.12 595.40 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 528.5397 540.9272 532.2116 521.3215 510.2627 496.7938 492.9967 548.1594 [2,] 586.0003 583.7328 589.4884 589.3385 576.9373 576.5262 592.4433 638.9006 [,9] [,10] [,11] [,12] [1,] 567.5021 557.3117 528.0992 506.1597 [2,] 654.0179 667.9083 647.1608 625.3203 $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(514.26, 554.79, 557.27, 595.45, 597.14, 516.92, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50k0h1229184476.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] [1,] -4.58 -11.73 -17.18 -11.73 -20.88 0.16 50.80 5.21 -22.93 -16.11 -17.22 [2,] -3.73 -9.36 -14.94 -11.33 -14.88 0.16 50.80 6.24 -15.64 -16.11 -17.22 [3,] 2.66 -3.34 -10.27 -5.75 -6.94 1.57 50.81 8.14 -5.89 -14.59 -17.15 [4,] 3.31 -1.49 -5.52 -5.59 -5.64 6.06 51.71 9.23 -0.65 -11.78 -16.72 [5,] 7.54 -1.48 -4.95 -2.38 -1.43 8.22 51.71 9.23 1.85 -11.78 -16.72 [,12] [1,] -8.470 [2,] -3.595 [3,] 1.510 [4,] 3.075 [5,] 4.410 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.314446 -8.900922 -16.926148 -9.805870 -13.4689607 -2.598925 50.167 [2,] 7.634446 2.220922 -3.613852 -1.694130 -0.4110393 5.738925 51.453 [,8] [,9] [,10] [,11] [,12] [1,] 6.027274 -16.481896 -17.64957 -17.5033 -3.7593 [2,] 10.252726 4.701896 -11.53043 -16.7967 6.7793 $out [1] -12.38 46.63 56.70 17.23 -1.29 -32.29 -21.89 -4.30 $group [1] 6 7 7 8 10 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4.58000000000004, -3.73000000000002, 2.65999999999997, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zi6g1229184476.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,] 536.660 567.460 565.740 498.660 469.360 NA [2,] 549.195 578.765 573.575 518.480 491.430 NA [3,] 561.590 593.135 588.850 536.665 506.865 NA [4,] 602.465 616.430 608.355 556.315 517.435 NA [5,] 612.610 628.880 625.810 564.590 533.590 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 537.2932 575.9557 572.9866 519.4082 495.0039 NA [2,] 585.8868 610.3143 604.7134 553.9218 518.7261 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(536.66, 549.195, 561.59, 602.465, 612.61, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7v25e1229184476.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,] 531.460 536.660 533.8450 [2,] 545.092 549.465 550.7600 [3,] 561.562 561.590 569.1550 [4,] 576.189 590.580 578.2575 [5,] 592.726 612.610 595.2000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 547.3784 542.8372 556.6132 [2,] 575.7456 580.3428 581.6968 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(531.46, 545.092, 561.562, 576.189, 592.726, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1keor1229184476.ps tmp/1keor1229184476.png") > system("convert tmp/2fl2t1229184476.ps tmp/2fl2t1229184476.png") > system("convert tmp/3svfz1229184476.ps tmp/3svfz1229184476.png") > system("convert tmp/44cal1229184476.ps tmp/44cal1229184476.png") > system("convert tmp/50k0h1229184476.ps tmp/50k0h1229184476.png") > system("convert tmp/6zi6g1229184476.ps tmp/6zi6g1229184476.png") > system("convert tmp/7v25e1229184476.ps tmp/7v25e1229184476.png") > > > proc.time() user system elapsed 1.206 0.932 1.488