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(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) > 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,] 17704 19169 18479 17382 19814 15572 [2,] 15548 13807 10698 9367 12738 NA [3,] 28029 29743 31956 31124 31566 NA [4,] 29383 25591 29506 26551 30111 NA [5,] 36438 29096 34506 30651 30019 NA [6,] 32034 26482 27165 25859 31934 NA [7,] 22679 22405 26736 25100 25826 NA [8,] 24319 27044 23691 25778 26835 NA [9,] 18004 17970 18157 20418 20205 NA [10,] 17537 18730 17328 18688 17789 NA [11,] 20366 19684 18205 20424 20520 NA [12,] 22782 19785 20995 24776 22518 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -2156 -5362 -7781 -8015 -7076 NA [2,] 12481 15936 21258 21757 18828 NA [3,] 1354 -4152 -2450 -4573 -1455 NA [4,] 7055 3505 5000 4100 -92 NA [5,] -4404 -2614 -7341 -4792 1915 NA [6,] -9355 -4077 -429 -759 -6108 NA [7,] 1640 4639 -3045 678 1009 NA [8,] -6315 -9074 -5534 -5360 -6630 NA [9,] -467 760 -829 -1730 -2416 NA [10,] 2829 954 877 1736 2731 NA [11,] 2416 101 2790 4352 1998 NA [12,] -3613 -1306 -3613 -4962 -6946 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/1bgfx1229543256.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/2krw71229543256.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/3atlu1229543256.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/4jetk1229543256.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,] 15572.0 9367 28029 25591 29096 25859 22405 23691 17970 17328 19684 19785 [2,] 17382.0 10698 29743 26551 30019 26482 22679 24319 18004 17537 19684 20995 [3,] 18091.5 12738 31124 29383 30651 27165 25100 25778 18157 17789 20366 22518 [4,] 19169.0 13807 31566 29506 34506 31934 25826 26835 20205 18688 20424 22782 [5,] 19814.0 15548 31956 30111 36438 32034 26736 27044 20418 18730 20520 24776 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 16938.83 10541.19 29835.87 27295.00 27480.50 23312.63 22876.34 24000.2 [2,] 19244.17 14934.81 32412.13 31471.00 33821.50 31017.37 27323.66 27555.8 [,9] [,10] [,11] [,12] [1,] 16601.78 16975.71 19843.12 21255.31 [2,] 19712.22 18602.29 20888.88 23780.69 $out [1] 18205 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15572, 17382, 18091.5, 19169, 19814, 9367, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/560j21229543256.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,] -8015 12481 -4573 3505 -7341 -9355 678 -6630 -2416 877 1998 -6946 [2,] -7781 15936 -4152 3505 -4792 -6108 678 -6630 -1730 954 1998 -4962 [3,] -7076 18828 -2450 4100 -4404 -4077 1009 -6315 -829 1736 2416 -3613 [4,] -5362 21258 -1455 5000 -2614 -759 1640 -5534 -467 2731 2790 -3613 [5,] -2156 21757 1354 7055 -2614 -429 1640 -5360 760 2829 2790 -3613 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -8785.259 15067.49 -4355.6934 3043.637 -5942.969 -7856.5899 329.2532 [2,] -5366.741 22588.51 -544.3066 5156.363 -2865.031 -297.4101 1688.7468 [,8] [,9] [,10] [,11] [,12] [1,] -7089.431 -1721.43262 480.3763 1856.375 -4566.2 [2,] -5540.569 63.43262 2991.6237 2975.625 -2659.8 $out [1] -92 1915 4639 -3045 -9074 101 4352 -1306 $group [1] 4 5 7 7 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(-8015, -7781, -7076, -5362, -2156, 12481, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6qd6h1229543256.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,] 15548.0 13807.0 10698.0 17382 12738.0 15572 [2,] 17854.0 18949.5 18181.0 19553 20009.5 15572 [3,] 22730.5 21095.0 22343.0 24938 24172.0 15572 [4,] 28706.0 26763.0 28335.5 26205 30065.0 15572 [5,] 36438.0 29743.0 34506.0 31124 31934.0 15572 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 17780.83 17531.21 17711.46 21903.98 19585.62 15572 [2,] 27680.17 24658.79 26974.54 27972.02 28758.38 15572 $out [1] 9367 $group [1] 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15548, 17854, 22730.5, 28706, 36438, 13807, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7xg1s1229543256.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,] 12431.6 12738.00 12252.50 [2,] 18485.4 18124.25 18667.00 [3,] 23360.2 23809.00 23070.50 [4,] 28461.6 28274.00 28618.25 [5,] 32142.0 31124.00 32262.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 18809.99 19179.63 18531.67 [2,] 27910.41 28438.37 27609.33 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(12431.6, 18485.4, 23360.2, 28461.6, 32142, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1bgfx1229543256.ps tmp/1bgfx1229543256.png") > system("convert tmp/2krw71229543256.ps tmp/2krw71229543256.png") > system("convert tmp/3atlu1229543256.ps tmp/3atlu1229543256.png") > system("convert tmp/4jetk1229543256.ps tmp/4jetk1229543256.png") > system("convert tmp/560j21229543256.ps tmp/560j21229543256.png") > system("convert tmp/6qd6h1229543256.ps tmp/6qd6h1229543256.png") > system("convert tmp/7xg1s1229543256.ps tmp/7xg1s1229543256.png") > > > proc.time() user system elapsed 1.851 1.466 2.086