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(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,20036,22485) > 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] 70 > (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 6 6 6 6 6 6 6 6 6 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 28029 29743 31956 31124 31566 25447 [2,] 29383 25591 29506 26551 30111 24090 [3,] 36438 29096 34506 30651 30019 27786 [4,] 32034 26482 27165 25859 31934 26195 [5,] 22679 22405 26736 25100 25826 20516 [6,] 24319 27044 23691 25778 26835 22759 [7,] 18004 17970 18157 20418 20205 19028 [8,] 17537 18730 17328 18688 17789 16971 [9,] 20366 19684 18205 20424 20520 20036 [10,] 22782 19785 20995 24776 22518 22485 [11,] 19169 18479 17382 19814 15572 NA [12,] 13807 10698 9367 12738 11509 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1354 -4152 -2450 -4573 -1455 -1357 [2,] 7055 3505 5000 4100 -92 3696 [3,] -4404 -2614 -7341 -4792 1915 -1591 [4,] -9355 -4077 -429 -759 -6108 -5679 [5,] 1640 4639 -3045 678 1009 2243 [6,] -6315 -9074 -5534 -5360 -6630 -3731 [7,] -467 760 -829 -1730 -2416 -2057 [8,] 2829 954 877 1736 2731 3065 [9,] 2416 101 2790 4352 1998 2449 [10,] -3613 -1306 -3613 -4962 -6946 NA [11,] -5362 -7781 -8015 -7076 -4063 NA [12,] 15936 21258 21757 18828 13938 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/1ue291262182121.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/2osps1262182121.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/3n9lv1262182122.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/4g4bd1262182122.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,] 25447.0 24090 27786 25859.0 20516.0 22759.0 17970.0 16971 19684 19785.0 [2,] 28029.0 25591 29096 26195.0 22405.0 23691.0 18004.0 17328 19684 20995.0 [3,] 30433.5 27967 30335 26823.5 23889.5 25048.5 18592.5 17663 20201 22501.5 [4,] 31566.0 29506 34506 31934.0 25826.0 26835.0 20205.0 18688 20424 22782.0 [5,] 31956.0 30111 36438 32034.0 26736.0 27044.0 20418.0 18730 20520 24776.0 [,11] [,12] [1,] 15572 9367 [2,] 17382 10698 [3,] 18479 11509 [4,] 19169 12738 [5,] 19814 13807 $n [1] 6 6 6 6 6 6 6 6 6 6 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 28152.02 25441.7 26845.38 23121.66 21682.84 23020.52 17172.78 16785.76 [2,] 32714.98 30492.3 33824.62 30525.34 26096.16 27076.48 20012.22 18540.24 [,9] [,10] [,11] [,12] [1,] 19723.68 21348.83 17216.31 10067.54 [2,] 20678.32 23654.17 19741.69 12950.46 $out [1] 18205 $group [1] 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(25447, 28029, 30433.5, 31566, 31956, 24090, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5mfeq1262182122.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,] -4573.0 3505 -7341 -9355 678.0 -6630.0 -2416.0 877.0 1998.0 -6946 -8015 [2,] -4152.0 3505 -4792 -6108 678.0 -6630.0 -2057.0 954.0 1998.0 -4962 -7781 [3,] -1952.5 3898 -3509 -4878 1324.5 -5924.5 -1279.5 2233.5 2432.5 -3613 -7076 [4,] -1357.0 5000 -1591 -759 2243.0 -5360.0 -467.0 2829.0 2790.0 -3613 -5362 [5,] 1354.0 7055 1915 -429 2243.0 -3731.0 760.0 3065.0 2790.0 -3613 -4063 [,12] [1,] 13938 [2,] 15936 [3,] 18828 [4,] 21258 [5,] 21757 $n [1] 6 6 6 6 6 6 6 6 6 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3755.3653 2933.677 -5573.748 -8328.278 315.0245 -6743.691 -2305.1014 [2,] -149.6347 4862.323 -1444.252 -1427.722 2333.9755 -5105.309 -253.8986 [,8] [,9] [,10] [,11] [,12] [1,] 1024.064 1921.634 -4566.2 -8785.259 15067.49 [2,] 3442.936 2943.366 -2659.8 -5366.741 22588.51 $out [1] -92 4639 -3045 -9074 101 4352 -1306 $group [1] 2 5 5 6 9 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4573, -4152, -1952.5, -1357, 1354, 3505, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61jfn1262182122.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,] 13807.0 10698.0 9367.0 12738 11509 16971 [2,] 18586.5 18604.5 17769.5 20116 18997 20036 [3,] 22730.5 21095.0 22343.0 24938 24172 22622 [4,] 28706.0 26763.0 28335.5 26205 30065 25447 [5,] 36438.0 29743.0 34506.0 31124 31934 27786 $n [1] 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 18114.93 17373.85 17523.78 22160.77 19123.81 19918.45 [2,] 27346.07 24816.15 27162.22 27715.23 29220.19 25325.55 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(13807, 18586.5, 22730.5, 28706, 36438, 10698, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/740be1262182122.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,] 11623.80 11509.00 11718.00 [2,] 18523.43 18535.75 18626.00 [3,] 23050.25 23195.50 23050.38 [4,] 27908.42 27395.25 28078.69 [5,] 31416.00 30433.50 31434.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 18769.70 19154.62 18738.94 [2,] 27330.80 27236.38 27361.81 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > try(system("convert tmp/1ue291262182121.ps tmp/1ue291262182121.png",intern=TRUE)) character(0) > try(system("convert tmp/2osps1262182121.ps tmp/2osps1262182121.png",intern=TRUE)) character(0) > try(system("convert tmp/3n9lv1262182122.ps tmp/3n9lv1262182122.png",intern=TRUE)) character(0) > try(system("convert tmp/4g4bd1262182122.ps tmp/4g4bd1262182122.png",intern=TRUE)) character(0) > try(system("convert tmp/5mfeq1262182122.ps tmp/5mfeq1262182122.png",intern=TRUE)) character(0) > try(system("convert tmp/61jfn1262182122.ps tmp/61jfn1262182122.png",intern=TRUE)) character(0) > try(system("convert tmp/740be1262182122.ps tmp/740be1262182122.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.237 0.970 1.557