R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(878,859,845,806,786,757,769,771,726,680,661,658,642,613,612,596,592,586,619,618,593,574,564,556,564,539,512,507,491,460,478,495,461,418,409,428,420,403,385,377,376,377,374,374,363,354,342,344,362,360,349,339,346,345,363,356,337,337,344,351) > 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,] 878 642 564 420 362 NA [2,] 859 613 539 403 360 NA [3,] 845 612 512 385 349 NA [4,] 806 596 507 377 339 NA [5,] 786 592 491 376 346 NA [6,] 757 586 460 377 345 NA [7,] 769 619 478 374 363 NA [8,] 771 618 495 374 356 NA [9,] 726 593 461 363 337 NA [10,] 680 574 418 354 337 NA [11,] 661 564 409 342 344 NA [12,] 658 556 428 344 351 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -19 -29 -25 -17 -2 NA [2,] -14 -1 -27 -18 -11 NA [3,] -39 -16 -5 -8 -10 NA [4,] -20 -4 -16 -1 7 NA [5,] -29 -6 -31 1 -1 NA [6,] 12 33 18 -3 18 NA [7,] 2 -1 17 0 -7 NA [8,] -45 -25 -34 -11 -19 NA [9,] -46 -19 -43 -9 0 NA [10,] -19 -10 -9 -12 7 NA [11,] -3 -8 19 2 7 NA [12,] -16 8 -8 18 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/10on31229252198.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/2uqav1229252198.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/37hpy1229252198.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/4sx2t1229252198.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,] 362 360 349 339 346 345 363 356 337 337 342 344 [2,] 420 403 385 377 376 377 374 374 363 354 344 351 [3,] 564 539 512 507 491 460 478 495 461 418 409 428 [4,] 642 613 612 596 592 586 619 618 593 574 564 556 [5,] 878 859 845 806 786 757 769 771 726 680 661 658 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 407.1354 390.6145 351.6024 352.2552 338.3749 312.3211 304.8836 322.5902 [2,] 720.8646 687.3855 672.3976 661.7448 643.6251 607.6789 651.1164 667.4098 [,9] [,10] [,11] [,12] [1,] 298.4826 262.5486 253.5486 283.1475 [2,] 623.5174 573.4514 564.4514 572.8525 $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(362, 420, 564, 642, 878, 360, 403, 539, 613, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5fx891229252198.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,] -29 -27 -16 -20 -31 12 -1 -45 -46 -12 -8 -16 [2,] -25 -18 -16 -16 -29 12 -1 -34 -43 -12 -3 -12 [3,] -19 -14 -10 -4 -6 18 0 -25 -19 -10 2 0 [4,] -17 -11 -8 -1 -1 18 2 -19 -9 -9 7 13 [5,] -17 -1 -5 7 1 18 2 -11 0 -9 19 18 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -24.65278 -18.946182 -15.65278 -14.598962 -25.78473 13.76042 -2.119792 [2,] -13.34722 -9.053818 -4.34722 6.598962 13.78473 22.23958 2.119792 [,8] [,9] [,10] [,11] [,12] [1,] -35.59896 -43.024314 -12.119792 -5.065975 -19.75 [2,] -14.40104 5.024314 -7.880208 9.065975 19.75 $out [1] -2 -39 33 -3 17 -7 -19 7 $group [1] 1 3 6 6 7 7 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-29, -25, -19, -17, -17, -27, -18, -14, -11, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zd6n1229252198.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,] 658.0 556.0 409.0 342.0 337.0 NA [2,] 703.0 580.0 444.0 358.5 341.5 NA [3,] 770.0 594.5 484.5 375.0 347.5 NA [4,] 825.5 615.5 509.5 381.0 358.0 NA [5,] 878.0 642.0 564.0 403.0 363.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 714.1269 578.3082 454.625 364.7376 339.9742 NA [2,] 825.8731 610.6918 514.375 385.2624 355.0258 NA $out [1] 420 $group [1] 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(658, 703, 770, 825.5, 878, 556, 580, 594.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7hia41229252198.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,] 464.0 409.0 453.50 [2,] 484.3 444.0 471.00 [3,] 519.4 484.5 485.25 [4,] 532.8 509.5 497.50 [5,] 573.2 564.0 531.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 497.2788 454.625 473.1632 [2,] 541.5212 514.375 497.3368 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(464, 484.3, 519.4, 532.8, 573.2, 409, 444, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/10on31229252198.ps tmp/10on31229252198.png") > system("convert tmp/2uqav1229252198.ps tmp/2uqav1229252198.png") > system("convert tmp/37hpy1229252198.ps tmp/37hpy1229252198.png") > system("convert tmp/4sx2t1229252198.ps tmp/4sx2t1229252198.png") > system("convert tmp/5fx891229252198.ps tmp/5fx891229252198.png") > system("convert tmp/6zd6n1229252198.ps tmp/6zd6n1229252198.png") > system("convert tmp/7hia41229252198.ps tmp/7hia41229252198.png") > > > proc.time() user system elapsed 1.214 0.961 1.722