R version 2.7.0 (2008-04-22) 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(577992,565464,547344,554788,562325,560854,555332,543599,536662,542722,593530,610763,612613,611324,594167,595454,590865,589379,584428,573100,567456,569028,620735,628884,628232,612117,595404,597141,593408,590072,579799,574205,572775,572942,619567,625809,619916,587625,565742,557274,560576,548854,531673,525919,511038,498662,555362,564591,541657,527070,509846,514258,516922,507561,492622,490243,469357,477580,528379,533590,517945) > 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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 577992 612613 628232 619916 541657 517945 [2,] 565464 611324 612117 587625 527070 NA [3,] 547344 594167 595404 565742 509846 NA [4,] 554788 595454 597141 557274 514258 NA [5,] 562325 590865 593408 560576 516922 NA [6,] 560854 589379 590072 548854 507561 NA [7,] 555332 584428 579799 531673 492622 NA [8,] 543599 573100 574205 525919 490243 NA [9,] 536662 567456 572775 511038 469357 NA [10,] 542722 569028 572942 498662 477580 NA [11,] 593530 620735 619567 555362 528379 NA [12,] 610763 628884 625809 564591 533590 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -12528 -1289 -16115 -32291 -14587 NA [2,] -18120 -17157 -16713 -21883 -17224 NA [3,] 7444 1287 1737 -8468 4412 NA [4,] 7537 -4589 -3733 3302 2664 NA [5,] -1471 -1486 -3336 -11722 -9361 NA [6,] -5522 -4951 -10273 -17181 -14939 NA [7,] -11733 -11328 -5594 -5754 -2379 NA [8,] -6937 -5644 -1430 -14881 -20886 NA [9,] 6060 1572 167 -12376 8223 NA [10,] 50808 51707 46625 56700 50799 NA [11,] 17233 8149 6242 9229 5211 NA [12,] 1850 -652 -5893 -22934 -15645 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/1rhcg1225998726.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/28iow1225998726.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/37l5o1225998726.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/4nno81225998726.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] [1,] 517945.0 527070 509846 514258 516922 507561 492622 490243 469357 477580 [2,] 541657.0 565464 547344 554788 560576 548854 531673 525919 511038 498662 [3,] 595302.5 587625 565742 557274 562325 560854 555332 543599 536662 542722 [4,] 619916.0 611324 594167 595454 590865 589379 579799 573100 567456 569028 [5,] 628232.0 612117 595404 597141 593408 590072 584428 574205 572775 572942 [,11] [,12] [1,] 528379 533590 [2,] 555362 564591 [3,] 593530 610763 [4,] 619567 625809 [5,] 620735 628884 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 544822.9 555220.4 532657 528539.5 540922.9 532219.1 521326.3 510261 [2,] 645782.1 620029.6 598827 586008.5 583727.1 589488.9 589337.7 576937 [,9] [,10] [,11] [,12] [1,] 496797.2 493001.6 548162.9 567506.5 [2,] 576526.8 592442.4 638897.1 654019.5 $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(517945, 541657, 595302.5, 619916, 628232, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5i7r11225998726.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] [1,] -16115 -18120 1287 -4589 -11722 -17181 -11733 -20886 167 50799 5211 [2,] -16115 -18120 1287 -3733 -9361 -14939 -11328 -14881 167 50799 6242 [3,] -14587 -17224 1737 2664 -3336 -10273 -5754 -6937 1572 50808 8149 [4,] -12528 -17157 4412 3302 -1486 -5522 -5594 -5644 6060 51707 9229 [5,] -12528 -16713 7444 7537 -1471 -4951 -2379 -1430 8223 51707 9229 [,12] [1,] -22934 [2,] -15645 [3,] -5893 [4,] -652 [5,] 1850 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -17121.57 -17904.45 -471.1171 -2306.913 -8900.455 -16927.028 -9805.63 [2,] -12052.43 -16543.55 3945.1171 7634.913 2228.455 -3618.972 -1702.37 [,8] [,9] [,10] [,11] [,12] [1,] -13463.8409 -2591.979 50166.41 6038.393 -16487.016 [2,] -410.1591 5735.979 51449.59 10259.607 4701.016 $out [1] -1289 -32291 -21883 -8468 -12376 46625 56700 17233 $group [1] 1 1 2 3 9 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-16115, -16115, -14587, -12528, -12528, -18120, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6di451225998726.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,] 536662.0 567456.0 572775 498662.0 469357.0 517945 [2,] 545471.5 578764.0 577002 528796.0 491432.5 517945 [3,] 558093.0 592516.0 594406 556318.0 512052.0 517945 [4,] 571728.0 611968.5 615842 565166.5 527724.5 517945 [5,] 610763.0 628884.0 628232 587625.0 541657.0 517945 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 546117.2 577371.2 576690.8 539729.2 495499 517945 [2,] 570068.8 607660.8 612121.2 572906.8 528605 517945 $out [1] 619916 $group [1] 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(536662, 545471.5, 558093, 571728, 610763, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7243m1225998726.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,] 531457.6 536662.0 533845.0 [2,] 545092.0 549465.5 552622.8 [3,] 563141.8 561589.5 572938.2 [4,] 581889.6 590577.5 585940.0 [5,] 592727.4 610763.0 595200.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 546358.2 542838 557742.0 [2,] 579925.4 580341 588134.5 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(531457.6, 545092, 563141.8, 581889.583333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1rhcg1225998726.ps tmp/1rhcg1225998726.png") > system("convert tmp/28iow1225998726.ps tmp/28iow1225998726.png") > system("convert tmp/37l5o1225998726.ps tmp/37l5o1225998726.png") > system("convert tmp/4nno81225998726.ps tmp/4nno81225998726.png") > system("convert tmp/5i7r11225998726.ps tmp/5i7r11225998726.png") > system("convert tmp/6di451225998726.ps tmp/6di451225998726.png") > system("convert tmp/7243m1225998726.ps tmp/7243m1225998726.png") > > > proc.time() user system elapsed 2.566 1.580 2.806