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(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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 519 562 591 593 561 517 NA [2,] 517 561 589 590 549 508 NA [3,] 510 555 584 580 532 493 NA [4,] 509 544 573 574 526 490 NA [5,] 501 537 567 573 511 469 NA [6,] 507 543 569 573 499 478 NA [7,] 569 594 621 620 555 528 NA [8,] 580 611 629 626 565 534 NA [9,] 578 613 628 620 542 518 NA [10,] 565 611 612 588 527 506 NA [11,] 547 594 595 566 510 502 NA [12,] 555 595 597 557 514 516 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2 -1 -2 -3 -12 -9 NA [2,] -7 -6 -5 -10 -17 -15 NA [3,] -1 -11 -11 -6 -6 -3 NA [4,] -8 -7 -6 -1 -15 -21 NA [5,] 6 6 2 0 -12 9 NA [6,] 62 51 52 47 56 50 NA [7,] 11 17 8 6 10 6 NA [8,] -2 2 -1 -6 -23 -16 NA [9,] -13 -2 -16 -32 -15 -12 NA [10,] -18 -17 -17 -22 -17 -4 NA [11,] 8 1 2 -9 4 14 NA [12,] 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/html/rcomp/tmp/1c0sj1258129957.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/2m24a1258129957.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/3v1h21258129957.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/4ws681258129957.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] [,11] [,12] [1,] 517.0 508 493.0 490 469 478 528.0 534.0 518.0 506.0 502.0 514 [2,] 519.0 517 510.0 509 501 499 555.0 565.0 542.0 527.0 510.0 516 [3,] 561.5 555 543.5 535 524 525 581.5 595.5 595.5 576.5 556.5 556 [4,] 591.0 589 580.0 573 567 569 620.0 626.0 620.0 611.0 594.0 595 [5,] 593.0 590 584.0 574 573 573 621.0 629.0 628.0 612.0 595.0 597 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 515.0577 508.5577 498.3477 493.7179 481.4279 479.8477 539.5729 556.153 [2,] 607.9423 601.4423 588.6523 576.2821 566.5721 570.1523 623.4271 634.847 [,9] [,10] [,11] [,12] [1,] 545.1875 522.3173 502.3173 505.0424 [2,] 645.8125 630.6827 610.6827 606.9576 $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, 519, 561.5, 591, 593, 508, 517, 555, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/54nr51258129957.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] [,12] [1,] -12.0 -17.0 -11 -21.0 0 47.0 6 -23 -16 -18 -9 -4 [2,] -9.0 -15.0 -11 -15.0 0 50.0 6 -16 -16 -18 1 -4 [3,] -2.5 -8.5 -6 -7.5 4 51.5 9 -4 -14 -17 3 3 [4,] -2.0 -6.0 -3 -6.0 6 56.0 11 -1 -12 -17 8 4 [5,] -1.0 -5.0 -1 -1.0 9 62.0 17 2 -12 -17 14 7 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7.015226 -14.305291 -11.1602584 -13.305291 0.1298062 47.62981 5.774839 [2,] 2.015226 -2.694709 -0.8397416 -1.694709 7.8701938 55.37019 12.225161 [,8] [,9] [,10] [,11] [,12] [1,] -13.675484 -16.58013 -17.64503 -1.515226 -2.65278 [2,] 5.675484 -11.41987 -16.35497 7.515226 8.65278 $out [1] -12 -2 -32 -22 -4 $group [1] 5 9 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-12, -9, -2.5, -2, -1, -17, -15, -8.5, -6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6m8mm1258129957.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] [,7] [1,] 501.0 537.0 567.0 557.0 499.0 469.0 NA [2,] 509.5 549.5 578.5 573.0 512.5 491.5 NA [3,] 533.0 578.0 593.0 584.0 529.5 507.0 NA [4,] 567.0 603.0 616.5 606.5 552.0 517.5 NA [5,] 580.0 613.0 629.0 626.0 565.0 534.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 506.7739 553.5983 575.668 568.7204 511.4838 495.1412 NA [2,] 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" NA Warning message: In bxp(list(stats = c(501, 509.5, 533, 567, 580, 537, 549.5, 578, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70xn41258129957.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,] 526.3333 524.00 531.5000 [2,] 539.1667 539.25 542.0625 [3,] 554.0000 556.25 554.5625 [4,] 574.6667 579.00 577.7500 [5,] 590.8333 595.50 595.5000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 537.8082 538.1198 538.2852 [2,] 570.1918 574.3802 570.8398 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(526.333333333333, 539.166666666667, 554, 574.666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1c0sj1258129957.ps tmp/1c0sj1258129957.png") > system("convert tmp/2m24a1258129957.ps tmp/2m24a1258129957.png") > system("convert tmp/3v1h21258129957.ps tmp/3v1h21258129957.png") > system("convert tmp/4ws681258129957.ps tmp/4ws681258129957.png") > system("convert tmp/54nr51258129957.ps tmp/54nr51258129957.png") > system("convert tmp/6m8mm1258129957.ps tmp/6m8mm1258129957.png") > system("convert tmp/70xn41258129957.ps tmp/70xn41258129957.png") > > > proc.time() user system elapsed 1.263 0.992 1.963