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(580,575,558,564,581,597,587,536,524,537,536,533,528,516,502,506,518,534,528,478,469,490,493,508,517,514,510,527,542,565,555,499,511,526,532,549,561,557,566,588,620,626,620,573,573,574,580,590,593,597,595,612,628,629,621,569,567,573,584,589,591,595,594,611,613,611,594,543,537,544,555,561,562) > 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] 73 > (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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 580 528 517 561 593 591 562 [2,] 575 516 514 557 597 595 NA [3,] 558 502 510 566 595 594 NA [4,] 564 506 527 588 612 611 NA [5,] 581 518 542 620 628 613 NA [6,] 597 534 565 626 629 611 NA [7,] 587 528 555 620 621 594 NA [8,] 536 478 499 573 569 543 NA [9,] 524 469 511 573 567 537 NA [10,] 537 490 526 574 573 544 NA [11,] 536 493 532 580 584 555 NA [12,] 533 508 549 590 589 561 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5 -12 -3 -4 4 4 NA [2,] -17 -14 -4 9 -2 -1 NA [3,] 6 4 17 22 17 17 NA [4,] 17 12 15 32 16 2 NA [5,] 16 16 23 6 1 -2 NA [6,] -10 -6 -10 -6 -8 -17 NA [7,] -51 -50 -56 -47 -52 -51 NA [8,] -12 -9 12 0 -2 -6 NA [9,] 13 21 15 1 6 7 NA [10,] -1 3 6 6 11 11 NA [11,] -3 15 17 10 5 6 NA [12,] -5 9 12 3 2 1 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/1c2na1272479852.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/2c2na1272479852.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/3c2na1272479852.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/45c5d1272479852.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 514 502 506 518 534 528.0 478.0 469.0 490.0 493.0 508 [2,] 544.5 516 510 527 542 565 555.0 499.0 511.0 526.0 532.0 533 [3,] 562.0 566 562 576 597 604 590.5 539.5 530.5 540.5 545.5 555 [4,] 585.5 595 594 611 620 626 620.0 569.0 567.0 573.0 580.0 589 [5,] 593.0 597 595 612 628 629 621.0 573.0 573.0 574.0 584.0 590 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 537.5155 515.0424 507.8173 521.8173 546.6875 564.653 548.5729 494.3477 [2,] 586.4845 616.9576 616.1827 630.1827 647.3125 643.347 632.4271 584.6523 [,9] [,10] [,11] [,12] [1,] 494.3782 510.1835 514.5384 518.8782 [2,] 566.6218 570.8165 576.4616 591.1218 $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, 544.5, 562, 585.5, 593, 514, 516, 566, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55c5d1272479852.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 4 12.0 -2 -10 -52 -12 1 -1 -3 -5.0 [2,] -5.0 -14 6 12.0 1 -10 -52 -9 6 3 5 1.0 [3,] -3.5 -3 17 15.5 11 -9 -51 -4 10 6 8 2.5 [4,] 4.0 -1 17 17.0 16 -6 -50 0 15 11 15 9.0 [5,] 4.0 9 22 17.0 23 -6 -47 12 21 11 17 12.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -9.305291 -11.38542 9.904645 12.27484 1.324516 -11.580129 -52.29006 [2,] 2.305291 5.38542 24.095355 18.72516 20.675484 -6.419871 -49.70994 [,8] [,9] [,10] [,11] [,12] [1,] -9.805291 4.194709 0.8397416 1.549677 -2.660258 [2,] 1.805291 15.805291 11.1602584 14.450323 7.660258 $out [1] 32 2 -17 -56 $group [1] 4 4 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-12, -5, -3.5, 4, 4, -17, -14, -3, -1, 9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6g34y1272479852.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,] 524.0 469.0 499.0 557.0 567.0 537.0 562 [2,] 536.0 491.5 512.5 569.5 578.5 549.5 562 [3,] 561.0 507.0 526.5 577.0 594.0 592.5 562 [4,] 580.5 523.0 545.5 605.0 616.5 603.0 562 [5,] 597.0 534.0 565.0 626.0 629.0 613.0 562 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 540.7033 492.6326 511.4485 560.8082 576.668 568.0983 562 [2,] 581.2967 521.3674 541.5515 593.1918 611.332 616.9017 562 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(524, 536, 561, 580.5, 597, 469, 491.5, 507, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7g34y1272479852.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,] 530.1667 530.50 535.3750 [2,] 543.6667 543.00 550.3125 [3,] 557.0000 562.00 558.8125 [4,] 575.8333 583.25 577.8750 [5,] 593.6667 604.00 597.6250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 542.3286 543.6417 546.2411 [2,] 571.6714 580.3583 571.3839 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(530.166666666667, 543.666666666667, 557, 575.833333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1c2na1272479852.ps tmp/1c2na1272479852.png",intern=TRUE)) character(0) > try(system("convert tmp/2c2na1272479852.ps tmp/2c2na1272479852.png",intern=TRUE)) character(0) > try(system("convert tmp/3c2na1272479852.ps tmp/3c2na1272479852.png",intern=TRUE)) character(0) > try(system("convert tmp/45c5d1272479852.ps tmp/45c5d1272479852.png",intern=TRUE)) character(0) > try(system("convert tmp/55c5d1272479852.ps tmp/55c5d1272479852.png",intern=TRUE)) character(0) > try(system("convert tmp/6g34y1272479852.ps tmp/6g34y1272479852.png",intern=TRUE)) character(0) > try(system("convert tmp/7g34y1272479852.ps tmp/7g34y1272479852.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.168 0.908 1.550