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(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) > 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,] 18004 17970 18157 20418 20205 19028 [2,] 17537 18730 17328 18688 17789 NA [3,] 20366 19684 18205 20424 20520 NA [4,] 22782 19785 20995 24776 22518 NA [5,] 19169 18479 17382 19814 15572 NA [6,] 13807 10698 9367 12738 11509 NA [7,] 29743 31956 31124 31566 25447 NA [8,] 25591 29506 26551 30111 24090 NA [9,] 29096 34506 30651 30019 27786 NA [10,] 26482 27165 25859 31934 26195 NA [11,] 22405 26736 25100 25826 20516 NA [12,] 27044 23691 25778 26835 22759 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -467 760 -829 -1730 -2416 NA [2,] 2829 954 877 1736 2731 NA [3,] 2416 101 2790 4352 1998 NA [4,] -3613 -1306 -3613 -4962 -6946 NA [5,] -5362 -7781 -8015 -7076 -4063 NA [6,] 15936 21258 21757 18828 13938 NA [7,] -4152 -2450 -4573 -1455 -1357 NA [8,] 3505 5000 4100 -92 3696 NA [9,] -2614 -7341 -4792 1915 -1591 NA [10,] -4077 -429 -759 -6108 -5679 NA [11,] 4639 -3045 678 1009 2243 NA [12,] -9074 -5534 -5360 -6630 -3731 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/1snnv1260634705.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/21cf81260634705.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/38bee1260634705.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/4qsst1260634705.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,] 17970.0 17328 19684 19785 15572 9367 29743 24090 27786 25859 20516 22759 [2,] 18004.0 17537 19684 20995 17382 10698 29743 25591 29096 26195 22405 23691 [3,] 18592.5 17789 20366 22518 18479 11509 31124 26551 30019 26482 25100 25778 [4,] 20205.0 18688 20424 22782 19169 12738 31566 29506 30651 27165 25826 26835 [5,] 20418.0 18730 20520 24776 19814 13807 31956 30111 30651 27165 26736 27044 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17172.78 16975.71 19843.12 21255.31 17216.31 10067.54 29835.87 23784.67 [2,] 20012.22 18602.29 20888.88 23780.69 19741.69 12950.46 32412.13 29317.33 [,9] [,10] [,11] [,12] [1,] 28920.24 25796.6 22682.73 23556.46 [2,] 31117.76 27167.4 27517.27 27999.54 $out [1] 18205 25447 34506 31934 $group [1] 3 7 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(17970, 18004, 18592.5, 20205, 20418, 17328, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cdqd1260634705.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,] -2416 877 1998 -6946 -8015 13938 -4573 3505 -7341 -6108 678 -6630 [2,] -1730 954 1998 -4962 -7781 15936 -4152 3505 -4792 -5679 678 -6630 [3,] -829 1736 2416 -3613 -7076 18828 -2450 3696 -2614 -4077 1009 -5534 [4,] -467 2731 2790 -3613 -5362 21258 -1455 4100 -1591 -759 2243 -5360 [5,] 760 2829 2790 -3613 -4063 21757 -1357 4100 1915 -429 2243 -3731 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1721.43262 480.3763 1856.375 -4566.2 -8785.259 15067.49 -4355.6934 [2,] 63.43262 2991.6237 2975.625 -2659.8 -5366.741 22588.51 -544.3066 [,8] [,9] [,10] [,11] [,12] [1,] 3275.574 -4875.8185 -7553.4596 -96.82506 -6431.379 [2,] 4116.426 -352.1815 -600.5404 2114.82506 -4636.621 $out [1] 101 4352 -1306 5000 -92 4639 -3045 -9074 $group [1] 3 3 4 8 8 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2416, -1730, -829, -467, 760, 877, 954, 1736, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66eax1260634705.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.0 19028 [2,] 18586.5 18604.5 17769.5 20116 18997.0 19028 [3,] 22593.5 21738.0 23047.5 25301 21519.0 19028 [4,] 26763.0 28335.5 26205.0 30065 24768.5 19028 [5,] 29743.0 34506.0 31124.0 31934 27786.0 19028 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 18864.14 17299.63 19200.01 20763.19 18886.58 19028 [2,] 26322.86 26176.37 26894.99 29838.81 24151.42 19028 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(13807, 18586.5, 22593.5, 26763, 29743, 10698, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7hlbm1260634705.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,] 23143.90 23809.00 23002.00 [4,] 27348.40 26516.50 27114.25 [5,] 30411.60 31124.00 30654.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 19118.77 20168.93 19130.45 [2,] 27169.03 27449.07 26873.55 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(11623.8, 18523.4333333333, 23143.9, 27348.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1snnv1260634705.ps tmp/1snnv1260634705.png",intern=TRUE)) character(0) > try(system("convert tmp/21cf81260634705.ps tmp/21cf81260634705.png",intern=TRUE)) character(0) > try(system("convert tmp/38bee1260634705.ps tmp/38bee1260634705.png",intern=TRUE)) character(0) > try(system("convert tmp/4qsst1260634705.ps tmp/4qsst1260634705.png",intern=TRUE)) character(0) > try(system("convert tmp/5cdqd1260634705.ps tmp/5cdqd1260634705.png",intern=TRUE)) character(0) > try(system("convert tmp/66eax1260634705.ps tmp/66eax1260634705.png",intern=TRUE)) character(0) > try(system("convert tmp/7hlbm1260634705.ps tmp/7hlbm1260634705.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.175 0.921 1.517