R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(476,475,470,461,455,456,517,525,523,519,509,512,519,517,510,509,501,507,569,580,578,565,547,555,562,561,555,544,537,543,594,611,613,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) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 476 519 562 591 593 561 517 NA [2,] 475 517 561 589 590 549 508 NA [3,] 470 510 555 584 580 532 493 NA [4,] 461 509 544 573 574 526 490 NA [5,] 455 501 537 567 573 511 469 NA [6,] 456 507 543 569 573 499 478 NA [7,] 517 569 594 621 620 555 528 NA [8,] 525 580 611 629 626 565 534 NA [9,] 523 578 613 628 620 542 518 NA [10,] 519 565 611 612 588 527 506 NA [11,] 509 547 594 595 566 510 502 NA [12,] 512 555 595 597 557 514 516 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 -2 -1 -2 -3 -12 -9 NA [2,] -5 -7 -6 -5 -10 -17 -15 NA [3,] -9 -1 -11 -11 -6 -6 -3 NA [4,] -6 -8 -7 -6 -1 -15 -21 NA [5,] 1 6 6 2 0 -12 9 NA [6,] 61 62 51 52 47 56 50 NA [7,] 8 11 17 8 6 10 6 NA [8,] -2 -2 2 -1 -6 -23 -16 NA [9,] -4 -13 -2 -16 -32 -15 -12 NA [10,] -10 -18 -17 -17 -22 -17 -4 NA [11,] 3 8 1 2 -9 4 14 NA [12,] 7 7 -4 -4 4 3 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/rcomp/tmp/1ukhs1301945227.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/rcomp/tmp/2ina91301945227.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/rcomp/tmp/3mb7l1301945227.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/rcomp/tmp/4qn601301945227.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,] 476.0 475.0 470.0 461.0 455 456.0 517.0 525.0 518.0 506.0 502.0 512 [2,] 518.0 512.5 501.5 499.5 485 488.5 541.5 549.5 532.5 523.0 509.5 515 [3,] 561.0 549.0 532.0 526.0 511 507.0 569.0 580.0 578.0 565.0 547.0 555 [4,] 576.5 575.0 567.5 558.5 552 556.0 607.0 618.5 616.5 599.5 580.0 576 [5,] 593.0 590.0 584.0 574.0 573 573.0 621.0 629.0 628.0 612.0 595.0 597 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 526.0647 511.676 492.5859 490.7662 470.9887 466.6901 529.8845 538.7943 [2,] 595.9353 586.324 571.4141 561.2338 551.0113 547.3099 608.1155 621.2057 [,9] [,10] [,11] [,12] [1,] 527.8366 519.3154 504.8985 518.5718 [2,] 628.1634 610.6846 589.1015 591.4282 $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(476, 518, 561, 576.5, 593, 475, 512.5, 549, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/514m71301945227.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,] -12.0 -17.0 -11.0 -15.0 0.0 47.0 6.0 -23.0 -16.0 -22.0 1.0 -4.0 [2,] -6.0 -12.5 -10.0 -11.5 0.5 50.5 7.0 -11.0 -15.5 -17.5 1.5 -4.0 [3,] -2.0 -7.0 -6.0 -7.0 2.0 52.0 8.0 -2.0 -13.0 -17.0 3.0 3.5 [4,] -1.5 -5.5 -4.5 -6.0 6.0 58.5 10.5 -1.5 -8.0 -13.5 6.0 7.0 [5,] -1.0 -5.0 -1.0 -1.0 9.0 62.0 11.0 2.0 -2.0 -10.0 8.0 7.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.6873274 -11.180287 -9.284511 -10.284511 -1.284511 47.22253 5.909856 [2,] 0.6873274 -2.819713 -2.715489 -3.715489 5.284511 56.77747 10.090144 [,8] [,9] [,10] [,11] [,12] [1,] -7.673247 -17.478879 -19.38874 0.3126726 -3.595355 [2,] 3.673247 -8.521121 -14.61126 5.6873274 10.595355 $out [1] -21 -12 17 -32 -4 -9 14 $group [1] 4 5 7 9 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-12, -6, -2, -1.5, -1, -17, -12.5, -7, -5.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6idmb1301945227.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] [1,] 455.0 501.0 537.0 567.0 557.0 499.0 469.0 NA [2,] 465.5 509.5 549.5 578.5 573.0 512.5 491.5 NA [3,] 492.5 533.0 578.0 593.0 584.0 529.5 507.0 NA [4,] 518.0 567.0 603.0 616.5 606.5 552.0 517.5 NA [5,] 525.0 580.0 613.0 629.0 626.0 565.0 534.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 468.5544 506.7739 553.5983 575.668 568.7204 511.4838 495.1412 NA [2,] 516.4456 559.2261 602.4017 610.332 599.2796 547.5162 518.8588 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(455, 465.5, 492.5, 518, 525, 501, 509.5, 533, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/72wy51301945227.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,] 516.1429 507 518.500 [2,] 528.6429 529 531.750 [3,] 545.8571 552 545.125 [4,] 566.5714 567 567.750 [5,] 581.4286 580 584.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 528.5577 534.6679 528.7052 [2,] 563.1566 569.3321 561.5448 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(516.142857142857, 528.642857142857, 545.857142857143, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ukhs1301945227.ps tmp/1ukhs1301945227.png",intern=TRUE)) character(0) > try(system("convert tmp/2ina91301945227.ps tmp/2ina91301945227.png",intern=TRUE)) character(0) > try(system("convert tmp/3mb7l1301945227.ps tmp/3mb7l1301945227.png",intern=TRUE)) character(0) > try(system("convert tmp/4qn601301945227.ps tmp/4qn601301945227.png",intern=TRUE)) character(0) > try(system("convert tmp/514m71301945227.ps tmp/514m71301945227.png",intern=TRUE)) character(0) > try(system("convert tmp/6idmb1301945227.ps tmp/6idmb1301945227.png",intern=TRUE)) character(0) > try(system("convert tmp/72wy51301945227.ps tmp/72wy51301945227.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.68 1.04 2.71