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(611,594,595,591,589,584,573,567,569,621,629,628,612,595,597,593,590,580,574,573,573,620,626,620,588,566,557,561,549,532,526,511,499,555,565,542,527,510,514,517,508,493,490,469,478,528,534,518,506,502,516,528,533,536,537,524,536,587,597,581) > 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,] 611 612 588 527 506 NA [2,] 594 595 566 510 502 NA [3,] 595 597 557 514 516 NA [4,] 591 593 561 517 528 NA [5,] 589 590 549 508 533 NA [6,] 584 580 532 493 536 NA [7,] 573 574 526 490 537 NA [8,] 567 573 511 469 524 NA [9,] 569 573 499 478 536 NA [10,] 621 620 555 528 587 NA [11,] 629 626 565 534 597 NA [12,] 628 620 542 518 581 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -17 -17 -22 -17 -4 NA [2,] 1 2 -9 4 14 NA [3,] -4 -4 4 3 12 NA [4,] -2 -3 -12 -9 5 NA [5,] -5 -10 -17 -15 3 NA [6,] -11 -6 -6 -3 1 NA [7,] -6 -1 -15 -21 -13 NA [8,] 2 0 -12 9 12 NA [9,] 52 47 56 50 51 NA [10,] 8 6 10 6 10 NA [11,] -1 -6 -23 -16 -16 NA [12,] -16 -32 -15 -12 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/1ijz11293383381.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/www/html/rcomp/tmp/2tay41293383381.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/www/html/rcomp/tmp/3tay41293383381.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/www/html/rcomp/tmp/4tay41293383381.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,] 506 502 514 517 508 493 490 469 478 528 534 518 [2,] 527 510 516 528 533 532 526 511 499 555 565 542 [3,] 588 566 557 561 549 536 537 524 536 587 597 581 [4,] 611 594 595 591 589 580 573 567 569 620 626 620 [5,] 612 595 597 593 590 584 574 573 573 621 629 628 $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.6458 506.6458 501.1788 516.4844 509.4305 502.0833 503.7899 484.4305 [2,] 647.3542 625.3542 612.8212 605.5156 588.5695 569.9167 570.2101 563.5695 [,9] [,10] [,11] [,12] [1,] 486.5382 541.0712 553.8976 525.8854 [2,] 585.4618 632.9288 640.1024 636.1146 $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(506, 527, 588, 611, 612, 502, 510, 566, 594, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53kx61293383381.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,] -17 1 -4 -12 -17 -6 -21 -12 47 6 -23 -32.0 [2,] -17 1 -4 -9 -15 -6 -15 0 50 6 -16 -24.0 [3,] -17 2 3 -3 -10 -6 -13 2 51 8 -16 -15.5 [4,] -17 4 4 -2 -5 -3 -6 9 52 10 -6 -13.5 [5,] -17 4 12 5 3 1 -1 12 52 10 -1 -12.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -17 -0.1197924 -2.65278 -7.946182 -17.065975 -8.119792 -19.359377 [2,] -17 4.1197924 8.65278 1.946182 -2.934025 -3.880208 -6.640623 [,8] [,9] [,10] [,11] [,12] [1,] -4.359377 49.58681 5.17361 -23.065975 -23.795 [2,] 8.359377 52.41319 10.82639 -8.934025 -7.205 $out [1] -22 -4 -9 14 -11 56 $group [1] 1 1 2 2 6 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-17, -17, -17, -17, -17, 1, 1, 2, 4, 4, -4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63kx61293383381.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] [1,] 567.0 573 499 469.0 502.0 NA [2,] 578.5 577 529 491.5 520.0 NA [3,] 592.5 594 552 512.0 534.5 NA [4,] 616.0 616 563 522.5 559.0 NA [5,] 629.0 626 588 534.0 597.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 575.396 576.2118 536.4924 497.8607 516.7118 NA [2,] 609.604 611.7882 567.5076 526.1393 552.2882 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(567, 578.5, 592.5, 616, 629, 573, 577, 594, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ebw91293383381.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,] 528.8 524.0 534.00 [2,] 542.5 536.5 550.75 [3,] 554.8 559.0 557.75 [4,] 573.3 584.0 575.00 [5,] 590.2 597.0 595.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 540.7519 537.3349 546.6894 [2,] 568.8481 580.6651 568.8106 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(528.8, 542.5, 554.8, 573.3, 590.2, 524, 536.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > try(system("convert tmp/1ijz11293383381.ps tmp/1ijz11293383381.png",intern=TRUE)) character(0) > try(system("convert tmp/2tay41293383381.ps tmp/2tay41293383381.png",intern=TRUE)) character(0) > try(system("convert tmp/3tay41293383381.ps tmp/3tay41293383381.png",intern=TRUE)) character(0) > try(system("convert tmp/4tay41293383381.ps tmp/4tay41293383381.png",intern=TRUE)) character(0) > try(system("convert tmp/53kx61293383381.ps tmp/53kx61293383381.png",intern=TRUE)) character(0) > try(system("convert tmp/63kx61293383381.ps tmp/63kx61293383381.png",intern=TRUE)) character(0) > try(system("convert tmp/7ebw91293383381.ps tmp/7ebw91293383381.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.223 0.974 2.975