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(2291180,1971664,2193270,2197733,2345324,2195121,2170583,2241521,2154945,2912568,2392562,3336621,4080642,3735329,4018383,4171360,3855698,4101316,4199346,3959646,3960841,4784025,4105467,5929558,4048642,3828808,4268127,4171816,4004783,4295447,3968177,3918480,4040260,4530715,4103330,6025506,4632308,4133863,4519182,4151573,4486595,4504699,4180443,4222193,4373727,4734738,4403232,5903985,4414074,4061816,4504697,3994176,4114925,4485120,4171230,4476075,4179369,4823185,4585751,6110454,4279575,3782118,4098678,4065616,4413733,4481214,4345018,4294488,4361269,4535031,4318397,6040168) > 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,] 2291180 4080642 4048642 4632308 4414074 4279575 NA [2,] 1971664 3735329 3828808 4133863 4061816 3782118 NA [3,] 2193270 4018383 4268127 4519182 4504697 4098678 NA [4,] 2197733 4171360 4171816 4151573 3994176 4065616 NA [5,] 2345324 3855698 4004783 4486595 4114925 4413733 NA [6,] 2195121 4101316 4295447 4504699 4485120 4481214 NA [7,] 2170583 4199346 3968177 4180443 4171230 4345018 NA [8,] 2241521 3959646 3918480 4222193 4476075 4294488 NA [9,] 2154945 3960841 4040260 4373727 4179369 4361269 NA [10,] 2912568 4784025 4530715 4734738 4823185 4535031 NA [11,] 2392562 4105467 4103330 4403232 4585751 4318397 NA [12,] 3336621 5929558 6025506 5903985 6110454 6040168 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -319516 -345313 -219834 -498445 -352258 -497457 NA [2,] 221606 283054 439319 385319 442881 316560 NA [3,] 4463 152977 -96311 -367609 -510521 -33062 NA [4,] 147591 -315662 -167033 335022 120749 348117 NA [5,] -150203 245618 290664 18104 370195 67481 NA [6,] -24538 98030 -327270 -324256 -313890 -136196 NA [7,] 70938 -239700 -49697 41750 304845 -50530 NA [8,] -86576 1195 121780 151534 -296706 66781 NA [9,] 757623 823184 490455 361011 643816 173762 NA [10,] -520006 -678558 -427385 -331506 -237434 -216634 NA [11,] 944059 1824091 1922176 1500753 1524703 1721771 NA [12,] 744021 -1880916 -1393198 -1489911 -1830879 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/freestat/rcomp/tmp/1c8jf1241344314.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/freestat/rcomp/tmp/26hiz1241344314.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/freestat/rcomp/tmp/3vios1241344314.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/freestat/rcomp/tmp/4g7fb1241344314.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] [1,] 4048642 3735329 4018383 3994176 3855698 4101316 3968177 3918480 3960841 [2,] 4048642 3735329 4018383 3994176 3855698 4101316 3968177 3918480 3960841 [3,] 4180108 3805463 4183402 4108594 4059854 4388330 4175836 4090920 4109814 [4,] 4414074 4061816 4504697 4171360 4413733 4485120 4199346 4294488 4361269 [5,] 4632308 4133863 4519182 4171816 4486595 4504699 4345018 4476075 4373727 [,10] [,11] [,12] [1,] 4530715 4103330 5903985 [2,] 4530715 4103330 5903985 [3,] 4634884 4211932 5977532 [4,] 4784025 4403232 6040168 [5,] 4823185 4585751 6110454 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 3944393 3594868 3869714 3994305 3699903 4140765 4026725 3848382 3851526 [2,] 4415824 4016058 4497091 4222884 4419805 4635896 4324948 4333457 4368103 [,10] [,11] [,12] [1,] 4471491 4018486 5889690 [2,] 4798278 4405378 6065374 $out [1] 2291180 1971664 2193270 2197733 2345324 2195121 2170583 2241521 2154945 [10] 2912568 2392562 3336621 $group [1] 1 2 3 4 5 6 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(4048642, 4048642, 4180108.5, 4414074, 4632308, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5rdic1241344314.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] [1,] -498445.0 221606.0 -510521.0 -315662 -150203.0 -327270 -50530.0 -296706 [2,] -497457.0 283054.0 -367609.0 -167033 18104.0 -324256 -50530.0 -86576 [3,] -348785.5 350939.5 -64686.5 134170 156549.5 -225043 -3973.5 33988 [4,] -319516.0 439319.0 4463.0 335022 290664.0 -24538 70938.0 121780 [5,] -219834.0 442881.0 152977.0 348117 370195.0 98030 70938.0 151534 [,9] [,10] [,11] [,12] [1,] 173762.0 -678558.0 1500753 -1880916 [2,] 361011.0 -520006.0 1500753 -1830879 [3,] 567135.5 -379445.5 1623237 -1489911 [4,] 757623.0 -237434.0 1824091 -1393198 [5,] 823184.0 -216634.0 1922176 -1393198 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -463563.2 250143.5 -304685.0 -189671.7 -19260.50 -418370.79 -82324.28 [2,] -234007.8 451735.5 175312.0 458011.7 332359.50 -31715.21 74377.28 [,8] [,9] [,10] [,11] [,12] [1,] -100408.3 311307.9 -561713.6 1414674 -1799175 [2,] 168384.3 822963.1 -197177.4 1831800 -1180647 $out [1] -239700 304845 944059 744021 $group [1] 7 7 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-498445, -497457, -348785.5, -319516, -219834, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6hgmk1241344314.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,] 1971664 3735329 3828808 4133863 3994176 4065616 NA [2,] 2181926 3960244 3986480 4201318 4143078 4189126 NA [3,] 2219627 4090979 4075986 4444914 4445074 4331708 NA [4,] 2368943 4185353 4281787 4575745 4545224 4447474 NA [5,] 2392562 4199346 4530715 4734738 4823185 4535031 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2134328 3988305 3941294 4274135 4261653 4213874 NA [2,] 2304926 4193653 4210678 4615692 4628496 4449541 NA $out [1] 2912568 3336621 4784025 5929558 6025506 5903985 6110454 3782118 6040168 $group [1] 1 1 2 2 3 4 5 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1971664, 2181926.5, 2219627, 2368943, 2392562, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/77eaz1241344314.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,] 3792046 3805463 3875295 [2,] 3842101 4099757 4104687 [3,] 3901950 4177972 4183395 [4,] 3997638 4300131 4279970 [5,] 4010486 4388330 4316996 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3831008 4086580 4103447 [2,] 3972891 4269365 4263343 $out [1] 3585600 4386710 5557715 4634884 5977532 4651749 5973440 $group [1] 1 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3792045.66666667, 3842100.66666667, 3901949.58333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1c8jf1241344314.ps tmp/1c8jf1241344314.png") > system("convert tmp/26hiz1241344314.ps tmp/26hiz1241344314.png") > system("convert tmp/3vios1241344314.ps tmp/3vios1241344314.png") > system("convert tmp/4g7fb1241344314.ps tmp/4g7fb1241344314.png") > system("convert tmp/5rdic1241344314.ps tmp/5rdic1241344314.png") > system("convert tmp/6hgmk1241344314.ps tmp/6hgmk1241344314.png") > system("convert tmp/77eaz1241344314.ps tmp/77eaz1241344314.png") > > > proc.time() user system elapsed 1.852 1.433 2.213