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(27071,29462,26105,22397,23843,21705,18089,20764,25316,17704,15548,28029,29383,36438,32034,22679,24319,18004,17537,20366,22782,19169,13807,29743,25591,29096,26482,22405,27044,17970,18730,19684,19785,18479,10698,31956,29506,34506,27165,26736,23691,18157,17328,18205,20995,17382,9367,31124,26551,30651,25859,25100,25778,20418,18688,20424,24776,19814,12738,31566,30111,30019,31934,25826,26835,20205,17789,20520,22518,15572,11509,25447,24090,27786,26195,20516,22759,19028,16971) > 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] 79 > (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 7 7 7 7 7 7 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 27071 29383 25591 29506 26551 30111 24090 [2,] 29462 36438 29096 34506 30651 30019 27786 [3,] 26105 32034 26482 27165 25859 31934 26195 [4,] 22397 22679 22405 26736 25100 25826 20516 [5,] 23843 24319 27044 23691 25778 26835 22759 [6,] 21705 18004 17970 18157 20418 20205 19028 [7,] 18089 17537 18730 17328 18688 17789 16971 [8,] 20764 20366 19684 18205 20424 20520 NA [9,] 25316 22782 19785 20995 24776 22518 NA [10,] 17704 19169 18479 17382 19814 15572 NA [11,] 15548 13807 10698 9367 12738 11509 NA [12,] 28029 29743 31956 31124 31566 25447 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2391 7055 3505 5000 4100 -92 3696 [2,] -3357 -4404 -2614 -7341 -4792 1915 -1591 [3,] -3708 -9355 -4077 -429 -759 -6108 -5679 [4,] 1446 1640 4639 -3045 678 1009 2243 [5,] -2138 -6315 -9074 -5534 -5360 -6630 -3731 [6,] -3616 -467 760 -829 -1730 -2416 -2057 [7,] 2675 2829 954 877 1736 2731 NA [8,] 4552 2416 101 2790 4352 1998 NA [9,] -7612 -3613 -1306 -3613 -4962 -6946 NA [10,] -2156 -5362 -7781 -8015 -7076 -4063 NA [11,] 12481 15936 21258 21757 18828 13938 NA [12,] 1354 -4152 -2450 -4573 -1455 -1357 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/1demk1261604250.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/2tteh1261604250.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/3az0l1261604250.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/4io3s1261604250.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,] 24090.0 27786.0 25859.0 20516 22759.0 17970.0 16971.0 19684 19785 15572.0 [2,] 26071.0 29279.0 26150.0 22401 23767.0 18080.5 17432.5 19684 20995 17382.0 [3,] 27071.0 30019.0 26482.0 22679 24319.0 19028.0 17789.0 20395 22650 18091.5 [4,] 29444.5 32578.5 29549.5 25463 26306.5 20311.5 18388.5 20520 24776 19169.0 [5,] 30111.0 36438.0 32034.0 26736 27044.0 21705.0 18730.0 20764 25316 19814.0 [,11] [,12] [1,] 9367.0 25447.0 [2,] 10698.0 28029.0 [3,] 12123.5 30433.5 [4,] 13807.0 31566.0 [5,] 15548.0 31956.0 $n [1] 7 7 7 7 7 7 7 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 25056.4 28048.59 24451.87 20850.42 22802.45 17695.68 17218.09 19855.75 [2,] 29085.6 31989.41 28512.13 24507.58 25835.55 20360.32 18359.91 20934.25 [,9] [,10] [,11] [,12] [1,] 20211.13 16938.83 10118.09 28152.02 [2,] 25088.87 19244.17 14128.91 32714.98 $out [1] 18205 $group [1] 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(24090, 26071, 27071, 29444.5, 30111, 27786, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/505fl1261604250.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] [1,] 2391 -7341.0 -9355.0 678.0 -9074.0 -3616.0 877.0 101 -7612.0 -8015 [2,] 2948 -4598.0 -5893.5 843.5 -6472.5 -2236.5 954.0 1998 -6946.0 -7781 [3,] 3696 -3357.0 -4077.0 1446.0 -5534.0 -1730.0 2205.5 2603 -4287.5 -6219 [4,] 4550 -2102.5 -2233.5 1941.5 -4545.5 -648.0 2731.0 4352 -3613.0 -4063 [5,] 5000 -1591.0 -429.0 2243.0 -2138.0 760.0 2829.0 4552 -1306.0 -2156 [,11] [,12] [1,] 12481 -4573.0 [2,] 13938 -4152.0 [3,] 17382 -1952.5 [4,] 21258 -1357.0 [5,] 21757 1354.0 $n [1] 7 7 7 7 7 7 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2739.311 -4847.272 -6262.693 790.2921 -6684.773 -2678.6266 1059.278 [2,] 4652.689 -1866.728 -1891.307 2101.7079 -4383.227 -781.3734 3351.722 [,8] [,9] [,10] [,11] [,12] [1,] 1084.594 -6437.393 -8617.23 12660.36 -3755.3653 [2,] 4121.406 -2137.607 -3820.77 22103.64 -149.6347 $out [1] 7055 -92 1915 4639 -3045 $group [1] 1 1 2 4 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2391, 2948, 3696, 4550, 5000, -7341, -4598, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6eox71261604250.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,] 15548.0 13807.0 10698.0 9367.0 12738 11509.0 16971.0 [2,] 19426.5 18586.5 18604.5 17769.5 20116 18997.0 19772.0 [3,] 23120.0 22730.5 21095.0 22343.0 24938 23982.5 22759.0 [4,] 26588.0 29563.0 26763.0 28335.5 26205 28427.0 25142.5 [5,] 29462.0 36438.0 31956.0 34506.0 31566 31934.0 27786.0 $n [1] 12 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 19853.59 17724.04 17373.85 17523.78 22160.77 19681.41 19551.82 [2,] 26386.41 27736.96 24816.15 27162.22 27715.23 28283.59 25966.18 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(15548, 19426.5, 23120, 26588, 29462, 13807, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ikij1261604250.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,] 12277.83 12123.50 12220.25 [2,] 18687.64 18559.75 18712.75 [3,] 23180.45 22664.50 23379.31 [4,] 27719.79 26776.50 27803.75 [5,] 31136.86 30433.50 30928.75 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 19060.83 18916.79 19232.85 [2,] 27300.07 26412.21 27525.78 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > try(system("convert tmp/1demk1261604250.ps tmp/1demk1261604250.png",intern=TRUE)) character(0) > try(system("convert tmp/2tteh1261604250.ps tmp/2tteh1261604250.png",intern=TRUE)) character(0) > try(system("convert tmp/3az0l1261604250.ps tmp/3az0l1261604250.png",intern=TRUE)) character(0) > try(system("convert tmp/4io3s1261604250.ps tmp/4io3s1261604250.png",intern=TRUE)) character(0) > try(system("convert tmp/505fl1261604250.ps tmp/505fl1261604250.png",intern=TRUE)) character(0) > try(system("convert tmp/6eox71261604250.ps tmp/6eox71261604250.png",intern=TRUE)) character(0) > try(system("convert tmp/7ikij1261604250.ps tmp/7ikij1261604250.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.222 0.943 2.841