R version 2.8.1 (2008-12-22) 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(325412,326011,328282,317480,317539,313737,312276,309391,302950,300316,304035,333476,337698,335932,323931,313927,314485,313218,309664,302963,298989,298423,310631,329765,335083,327616,309119,295916,291413,291542,284678,276475,272566,264981,263290,296806,303598,286994,276427,266424,267153,268381,262522,255542,253158,243803,250741,280445,285257,270976,261076,255603,260376,263903,264291,263276,262572,256167,264221,293860,300713,287224) > 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] 62 > (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 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 325412 337698 335083 303598 285257 300713 [2,] 326011 335932 327616 286994 270976 287224 [3,] 328282 323931 309119 276427 261076 NA [4,] 317480 313927 295916 266424 255603 NA [5,] 317539 314485 291413 267153 260376 NA [6,] 313737 313218 291542 268381 263903 NA [7,] 312276 309664 284678 262522 264291 NA [8,] 309391 302963 276475 255542 263276 NA [9,] 302950 298989 272566 253158 262572 NA [10,] 300316 298423 264981 243803 256167 NA [11,] 304035 310631 263290 250741 264221 NA [12,] 333476 329765 296806 280445 293860 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 599 -1766 -7467 -16604 -14281 -13489 [2,] 2271 -12001 -18497 -10567 -9900 NA [3,] -10802 -10004 -13203 -10003 -5473 NA [4,] 59 558 -4503 729 4773 NA [5,] -3802 -1267 129 1228 3527 NA [6,] -1461 -3554 -6864 -5859 388 NA [7,] -2885 -6701 -8203 -6980 -1015 NA [8,] -6441 -3974 -3909 -2384 -704 NA [9,] -2634 -566 -7585 -9355 -6405 NA [10,] 3719 12208 -1691 6938 8054 NA [11,] 29441 19134 33516 29704 29639 NA [12,] 4222 5318 6792 4812 6853 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/1ybbf1257350097.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/rcomp/tmp/2xizd1257350097.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/rcomp/tmp/3hcl81257350097.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/rcomp/tmp/4ja651257350097.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,] 285257 270976.0 261076 255603 260376 263903 262522 255542 253158 243803 [2,] 300713 286994.0 276427 266424 267153 268381 264291 263276 262572 256167 [3,] 314505 306617.5 309119 295916 291413 291542 284678 276475 272566 264981 [4,] 335083 327616.0 323931 313927 314485 313218 309664 302963 298989 298423 [5,] 337698 335932.0 328282 317480 317539 313737 312276 309391 302950 300316 [,11] [,12] [1,] 250741 280445 [2,] 263290 293860 [3,] 264221 296806 [4,] 304035 329765 [5,] 310631 333476 $n [1] 6 6 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 292335.2 280415 275552.8 262350.5 257968.3 259860.3 252617.6 248432.3 [2,] 336674.8 332820 342685.2 329481.5 324857.7 323223.7 316738.4 304517.7 [,9] [,10] [,11] [,12] [1,] 246833.8 235123 235430.7 271435.6 [2,] 298298.2 294839 293011.3 322176.4 $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(285257, 300713, 314505, 335083, 337698, 270976, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5jz9b1257350097.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,] -16604 -12001 -10802 59 -3802 -6864 -8203 -3974 -9355 -1691 29441 4222 [2,] -14281 -12001 -10802 59 -1267 -5859 -6980 -3974 -7585 3719 29441 4812 [3,] -10478 -10567 -10004 558 129 -3554 -6701 -3909 -6405 6938 29639 5318 [4,] -1766 -9900 -10003 729 1228 -1461 -2885 -2384 -2634 8054 29704 6792 [5,] 599 -9900 -10003 729 3527 388 -1015 -704 -566 12208 29704 6853 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -18550.579 -12051.561 -10568.571 84.57969 -1633.961 -6661.6157 -9594.517 [2,] -2405.421 -9082.439 -9439.429 1031.42031 1891.961 -446.3843 -3807.483 [,8] [,9] [,10] [,11] [,12] [1,] -5032.49 -9903.364 3874.9 29453.16 3918.937 [2,] -2785.51 -2906.636 10001.1 29824.84 6717.063 $out [1] 2271 -18497 -13203 -5473 -4503 4773 -6441 19134 33516 $group [1] 2 2 3 3 4 4 8 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-16604, -14281, -10478, -1766, 599, -12001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6dzct1257350097.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,] 300316.0 298423.0 263290.0 243803.0 255603.0 287224.0 [2,] 306713.0 306313.5 274520.5 254350.0 260726.0 287224.0 [3,] 315608.5 313572.5 291477.5 266788.5 263589.5 293968.5 [4,] 325711.5 326848.0 302962.5 278436.0 267633.5 300713.0 [5,] 333476.0 337698.0 335083.0 303598.0 270976.0 300713.0 $n [1] 12 12 12 12 12 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 306943.2 304206.6 278504.9 255802.7 260438.9 278898.2 [2,] 324273.8 322938.4 304450.1 277774.3 266740.1 309038.8 $out [1] 285257 293860 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(300316, 306713, 315608.5, 325711.5, 333476, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7phuj1257350097.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,] 272738.0 264221.0 277295.0 [2,] 280056.5 274520.5 283391.0 [3,] 290013.1 291477.5 290487.5 [4,] 302779.6 301711.8 303656.1 [5,] 314626.8 314505.0 317049.8 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 279648.9 279075.4 281244.5 [2,] 300377.3 303879.6 299730.5 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(272738, 280056.5, 290013.1, 302779.583333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/1ybbf1257350097.ps tmp/1ybbf1257350097.png") > system("convert tmp/2xizd1257350097.ps tmp/2xizd1257350097.png") > system("convert tmp/3hcl81257350097.ps tmp/3hcl81257350097.png") > system("convert tmp/4ja651257350097.ps tmp/4ja651257350097.png") > system("convert tmp/5jz9b1257350097.ps tmp/5jz9b1257350097.png") > system("convert tmp/6dzct1257350097.ps tmp/6dzct1257350097.png") > system("convert tmp/7phuj1257350097.ps tmp/7phuj1257350097.png") > > > proc.time() user system elapsed 1.640 1.560 3.014