R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(10698,11514,13253,13807,13971,15548,17351,17409,17537,17704,17970,18004,18089,18479,18730,19169,19684,19785,20366,20506,20764,21382,21705,21725,21790,22205,22228,22397,22405,22414,22679,22780,22782,23843,23970,24319,24561,24693,25316,25591,25814,26105,26482,26887,27044,27071,27192,28029,28352,28806,29096,29133,29383,29462,29743,29965,30212,30364,31514,32034,32609,34777,35022,35338,35953,36438,36845,37702,37863,39690,41086,43129) > 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,] 10698 18089 21790 24561 28352 32609 NA [2,] 11514 18479 22205 24693 28806 34777 NA [3,] 13253 18730 22228 25316 29096 35022 NA [4,] 13807 19169 22397 25591 29133 35338 NA [5,] 13971 19684 22405 25814 29383 35953 NA [6,] 15548 19785 22414 26105 29462 36438 NA [7,] 17351 20366 22679 26482 29743 36845 NA [8,] 17409 20506 22780 26887 29965 37702 NA [9,] 17537 20764 22782 27044 30212 37863 NA [10,] 17704 21382 23843 27071 30364 39690 NA [11,] 17970 21705 23970 27192 31514 41086 NA [12,] 18004 21725 24319 28029 32034 43129 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 816 390 415 132 454 2168 NA [2,] 1739 251 23 623 290 245 NA [3,] 554 439 169 275 37 316 NA [4,] 164 515 8 223 250 615 NA [5,] 1577 101 9 291 79 485 NA [6,] 1803 581 265 377 281 407 NA [7,] 58 140 101 405 222 857 NA [8,] 128 258 2 157 247 161 NA [9,] 167 618 1061 27 152 1827 NA [10,] 266 323 127 121 1150 1396 NA [11,] 34 20 349 837 520 2043 NA [12,] 85 65 242 323 575 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/rcomp/tmp/1gn911301573165.ps",horizontal=F,onefile=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/rcomp/tmp/242rj1301573165.ps",horizontal=F,onefile=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/rcomp/tmp/3bzaj1301573165.ps",horizontal=F,onefile=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/rcomp/tmp/4de301301573165.ps",horizontal=F,onefile=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,] 10698.0 11514 13253 13807 13971.0 15548.0 17351.0 17409.0 17537 17704 [2,] 18089.0 18479 18730 19169 19684.0 19785.0 20366.0 20506.0 20764 21382 [3,] 23175.5 23449 23772 23994 24109.5 24259.5 24580.5 24833.5 24913 25457 [4,] 28352.0 28806 29096 29133 29383.0 29462.0 29743.0 29965.0 30212 30364 [5,] 32609.0 34777 35022 35338 35953.0 36438.0 36845.0 37702.0 37863 39690 [,11] [,12] [1,] 17970 18004 [2,] 21705 21725 [3,] 25581 26174 [4,] 31514 32034 [5,] 41086 43129 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 16555.53 16787.75 17085.60 17566.90 17853.33 18017.52 18532.03 18732.14 [2,] 29795.47 30110.25 30458.40 30421.10 30365.67 30501.48 30628.97 30934.86 [,9] [,10] [,11] [,12] [1,] 18818.73 19663.32 19253.88 19524.36 [2,] 31007.27 31250.68 31908.12 32823.64 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(10698, 18089, 23175.5, 28352, 32609, 11514, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5lsaq1301573165.ps",horizontal=F,onefile=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,] 132.0 23.0 37.0 8.0 9 265 58 2 27.0 121.0 20.0 65 [2,] 390.0 245.0 169.0 164.0 79 281 101 128 152.0 127.0 34.0 85 [3,] 434.5 270.5 295.5 236.5 196 392 181 159 392.5 294.5 434.5 242 [4,] 816.0 623.0 439.0 515.0 485 581 405 247 1061.0 1150.0 837.0 323 [5,] 816.0 623.0 554.0 615.0 485 581 857 258 1827.0 1396.0 837.0 575 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 159.7162 26.67779 121.3413 10.09366 -65.88311 198.4903 -15.08982 [2,] 709.2838 514.32221 469.6587 462.90634 457.88311 585.5097 377.08982 [,8] [,9] [,10] [,11] [,12] [1,] 82.24116 -193.8344 -365.3680 -83.46094 73.8298 [2,] 235.75884 978.8344 954.3680 952.46094 410.1702 $out [1] 2168 1739 1577 1803 2043 $group [1] 1 2 5 6 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(132, 390, 434.5, 816, 816, 23, 245, 270.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6gk7q1301573165.ps",horizontal=F,onefile=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,] 10698.0 18089.0 21790.0 24561.0 28352.0 32609.0 NA [2,] 13530.0 18949.5 22312.5 25453.5 29114.5 35180.0 NA [3,] 16449.5 20075.5 22546.5 26293.5 29602.5 36641.5 NA [4,] 17620.5 21073.0 23312.5 27057.5 30288.0 38776.5 NA [5,] 18004.0 21725.0 24319.0 28029.0 32034.0 43129.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14583.80 19106.96 22090.39 25561.90 29067.26 35001.11 NA [2,] 18315.20 21044.04 23002.61 27025.10 30137.74 38281.89 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(10698, 13530, 16449.5, 17620.5, 18004, 18089, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7z1nv1301573165.ps",horizontal=F,onefile=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,] 22683.17 23175.5 23209.25 [2,] 24090.00 23883.0 23994.75 [3,] 25268.17 24420.0 24734.25 [4,] 26354.67 25185.0 25556.62 [5,] 27873.33 26174.0 26703.12 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 24235.24 23826.15 24021.87 [2,] 26301.10 25013.85 25446.63 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(22683.1666666667, 24090, 25268.1666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1gn911301573165.ps tmp/1gn911301573165.png",intern=TRUE)) character(0) > try(system("convert tmp/242rj1301573165.ps tmp/242rj1301573165.png",intern=TRUE)) character(0) > try(system("convert tmp/3bzaj1301573165.ps tmp/3bzaj1301573165.png",intern=TRUE)) character(0) > try(system("convert tmp/4de301301573165.ps tmp/4de301301573165.png",intern=TRUE)) character(0) > try(system("convert tmp/5lsaq1301573165.ps tmp/5lsaq1301573165.png",intern=TRUE)) character(0) > try(system("convert tmp/6gk7q1301573165.ps tmp/6gk7q1301573165.png",intern=TRUE)) character(0) > try(system("convert tmp/7z1nv1301573165.ps tmp/7z1nv1301573165.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.696 0.412 2.124