R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(612.613,611.324,594.167,595.454,590.865,589.379,584.428,573.100,567.456,569.028,620.735,628.884,628.232,612.117,595.404,597.141,593.408,590.072,579.799,574.205,572.775,572.942,619.567,625.809,619.916,587.625,565.742,557.274,560.576,548.854,531.673,525.919,511.038,498.662,555.362,564.591,541.657,527.070,509.846,514.258,516.922,507.561,492.622,490.243,469.357,477.580,528.379,533.590,517.945,506.174,501.866,516.141,528.222,532.638,536.322,536.535,523.597,536.214,586.570,596.594) > 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,] 612.613 628.232 619.916 541.657 517.945 NA [2,] 611.324 612.117 587.625 527.070 506.174 NA [3,] 594.167 595.404 565.742 509.846 501.866 NA [4,] 595.454 597.141 557.274 514.258 516.141 NA [5,] 590.865 593.408 560.576 516.922 528.222 NA [6,] 589.379 590.072 548.854 507.561 532.638 NA [7,] 584.428 579.799 531.673 492.622 536.322 NA [8,] 573.100 574.205 525.919 490.243 536.535 NA [9,] 567.456 572.775 511.038 469.357 523.597 NA [10,] 569.028 572.942 498.662 477.580 536.214 NA [11,] 620.735 619.567 555.362 528.379 586.570 NA [12,] 628.884 625.809 564.591 533.590 596.594 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.289 -16.115 -32.291 -14.587 -11.771 NA [2,] -17.157 -16.713 -21.883 -17.224 -4.308 NA [3,] 1.287 1.737 -8.468 4.412 14.275 NA [4,] -4.589 -3.733 3.302 2.664 12.081 NA [5,] -1.486 -3.336 -11.722 -9.361 4.416 NA [6,] -4.951 -10.273 -17.181 -14.939 3.684 NA [7,] -11.328 -5.594 -5.754 -2.379 0.213 NA [8,] -5.644 -1.430 -14.881 -20.886 -12.938 NA [9,] 1.572 0.167 -12.376 8.223 12.617 NA [10,] 51.707 46.625 56.700 50.799 50.356 NA [11,] 8.149 6.242 9.229 5.211 10.024 NA [12,] -0.652 -5.893 -22.934 -15.645 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/1exii1261647016.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/2jzlm1261647016.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/3qc391261647016.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/4i7qb1261647016.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] [1,] 517.945 506.174 501.866 514.258 516.922 507.561 492.622 490.243 469.357 [2,] 541.657 527.070 509.846 516.141 528.222 532.638 531.673 525.919 511.038 [3,] 612.613 587.625 565.742 557.274 560.576 548.854 536.322 536.535 523.597 [4,] 619.916 611.324 594.167 595.454 590.865 589.379 579.799 573.100 567.456 [5,] 628.232 612.117 595.404 597.141 593.408 590.072 584.428 574.205 572.775 [,10] [,11] [,12] [1,] 477.580 528.379 533.590 [2,] 498.662 555.362 564.591 [3,] 536.214 586.570 596.594 [4,] 569.028 619.567 625.809 [5,] 572.942 620.735 628.884 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 557.3154 528.0913 506.161 501.2316 516.3126 508.761 502.3163 503.197 [2,] 667.9106 647.1587 625.323 613.3164 604.8394 588.947 570.3277 569.873 [,9] [,10] [,11] [,12] [1,] 483.7322 486.4936 541.2029 553.3375 [2,] 563.4618 585.9344 631.9371 639.8505 $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(517.945, 541.657, 612.613, 619.916, 628.232, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5o0r01261647016.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] [1,] -16.115 -17.224 1.287 -4.589 -11.722 -17.181 -5.754 -20.886 0.167 50.356 [2,] -16.115 -17.224 1.287 -3.733 -9.361 -14.939 -5.754 -14.881 0.167 50.356 [3,] -14.587 -17.157 1.737 2.664 -3.336 -10.273 -5.594 -12.938 1.572 50.799 [4,] -11.771 -16.713 4.412 3.302 -1.486 -4.951 -2.379 -5.644 8.223 51.707 [5,] -11.771 -16.713 4.412 12.081 4.416 3.684 0.213 -1.430 12.617 51.707 [,11] [,12] [1,] 5.211 -22.9340 [2,] 6.242 -19.2895 [3,] 8.149 -10.7690 [4,] 9.229 -3.2725 [5,] 10.024 -0.6520 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -17.65646 -17.51807 -0.4711171 -2.306913 -8.900455 -17.330496 -7.978766 [2,] -11.51754 -16.79593 3.9451171 7.634913 2.228455 -3.215504 -3.209234 [,8] [,9] [,10] [,11] [,12] [1,] -19.464841 -4.120349 49.84439 6.038393 -23.42243 [2,] -6.411159 7.264349 51.75361 10.259607 1.88443 $out [1] -1.289 -32.291 -21.883 -4.308 -8.468 14.275 -11.328 -12.376 46.625 [10] 56.700 $group [1] 1 1 2 2 3 3 7 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-16.115, -16.115, -14.587, -11.7710000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6htha1261647016.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,] 567.4560 572.775 498.6620 469.3570 501.8660 NA [2,] 578.7640 577.002 528.7960 491.4325 517.0430 NA [3,] 592.5160 594.406 556.3180 512.0520 530.4300 NA [4,] 611.9685 615.842 565.1665 527.7245 536.4285 NA [5,] 628.8840 628.232 587.6250 541.6570 536.5350 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 577.3712 576.6908 539.7292 495.499 521.5881 NA [2,] 607.6608 612.1212 572.9068 528.605 539.2719 NA $out [1] 619.916 586.570 596.594 $group [1] 3 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(567.456, 578.764, 592.516, 611.9685, 628.884, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/74uo71261647016.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,] 528.8446 523.5970 533.8450 [2,] 542.4846 536.4285 550.7580 [3,] 554.8772 558.9250 557.6705 [4,] 575.4923 587.0975 574.9918 [5,] 589.8936 612.6130 595.2000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 539.8222 535.8145 546.6173 [2,] 569.9322 582.0355 568.7237 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(528.8446, 542.4846, 554.8772, 575.4923, 589.8936, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1exii1261647016.ps tmp/1exii1261647016.png",intern=TRUE)) character(0) > try(system("convert tmp/2jzlm1261647016.ps tmp/2jzlm1261647016.png",intern=TRUE)) character(0) > try(system("convert tmp/3qc391261647016.ps tmp/3qc391261647016.png",intern=TRUE)) character(0) > try(system("convert tmp/4i7qb1261647016.ps tmp/4i7qb1261647016.png",intern=TRUE)) character(0) > try(system("convert tmp/5o0r01261647016.ps tmp/5o0r01261647016.png",intern=TRUE)) character(0) > try(system("convert tmp/6htha1261647016.ps tmp/6htha1261647016.png",intern=TRUE)) character(0) > try(system("convert tmp/74uo71261647016.ps tmp/74uo71261647016.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.193 0.943 1.669