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(328282,317480,317539,313737,312276,309391,302950,300316,304035,333476,337698,335932,323931,313927,314485,313218,309664,302963,298989,298423,301631,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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 328282 323931 309119 276427 261076 NA [2,] 317480 313927 295916 266424 255603 NA [3,] 317539 314485 291413 267153 260376 NA [4,] 313737 313218 291542 268381 263903 NA [5,] 312276 309664 284678 262522 264291 NA [6,] 309391 302963 276475 255542 263276 NA [7,] 302950 298989 272566 253158 262572 NA [8,] 300316 298423 264981 243803 256167 NA [9,] 304035 301631 263290 250741 264221 NA [10,] 333476 329765 296806 280445 293860 NA [11,] 337698 335083 303598 285257 300713 NA [12,] 335932 327616 286994 270976 287224 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -10802 -10004 -13203 -10003 -5473 NA [2,] 59 558 -4503 729 4773 NA [3,] -3802 -1267 129 1228 3527 NA [4,] -1461 -3554 -6864 -5859 388 NA [5,] -2885 -6701 -8203 -6980 -1015 NA [6,] -6441 -3974 -3909 -2384 -704 NA [7,] -2634 -566 -7585 -9355 -6405 NA [8,] 3719 3208 -1691 6938 8054 NA [9,] 29441 28134 33516 29704 29639 NA [10,] 4222 5318 6792 4812 6853 NA [11,] -1766 -7467 -16604 -14281 -13489 NA [12,] -12001 -18497 -10567 -9900 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/html/rcomp/tmp/1txzg1257932674.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/27vy91257932674.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/36vdf1257932674.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/4ylwc1257932674.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,] 261076 255603 260376 263903 262522 255542 253158 243803 250741 280445 [2,] 276427 266424 267153 268381 264291 263276 262572 256167 263290 293860 [3,] 309119 295916 291413 291542 284678 276475 272566 264981 264221 296806 [4,] 323931 313927 314485 313218 309664 302963 298989 298423 301631 329765 [5,] 328282 317480 317539 313737 312276 309391 302950 300316 304035 333476 [,11] [,12] [1,] 285257 270976 [2,] 300713 286994 [3,] 303598 287224 [4,] 335083 327616 [5,] 337698 335932 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 275552.8 262350.5 257968.3 259860.3 252617.6 248432.3 246833.8 235123 [2,] 342685.2 329481.5 324857.7 323223.7 316738.4 304517.7 298298.2 294839 [,9] [,10] [,11] [,12] [1,] 237129.3 271435.6 279312.2 258520.6 [2,] 291312.7 322176.4 327883.8 315927.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(261076, 276427, 309119, 323931, 328282, 255603, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5duh31257932674.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,] -10802 59 -3802 -6864 -8203 -3974 -9355 -1691 29441 4222 -16604 [2,] -10802 59 -1267 -5859 -6980 -3974 -7585 3208 29441 4812 -14281 [3,] -10004 558 129 -3554 -6701 -3909 -6405 3719 29639 5318 -13489 [4,] -10003 729 1228 -1461 -2885 -2384 -2634 6938 29704 6792 -7467 [5,] -10003 729 3527 388 -1015 -704 -566 8054 29704 6853 -1766 [,12] [1,] -18497.0 [2,] -15249.0 [3,] -11284.0 [4,] -10233.5 [5,] -9900.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -10568.571 84.57969 -1633.961 -6661.6157 -9594.517 -5032.49 -9903.364 [2,] -9439.429 1031.42031 1891.961 -446.3843 -3807.483 -2785.51 -2906.636 [,8] [,9] [,10] [,11] [,12] [1,] 1083.391 29453.16 3918.937 -18303.755 -15246.245 [2,] 6354.609 29824.84 6717.063 -8674.245 -7321.755 $out [1] -13203 -5473 -4503 4773 -6441 28134 33516 $group [1] 1 1 2 2 6 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-10802, -10802, -10004, -10003, -10003, 59, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61b9p1257932674.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 NA [2,] 306713.0 302297.0 274520.5 254350.0 260726.0 NA [3,] 315608.5 313572.5 289203.5 266788.5 263589.5 NA [4,] 330879.0 325773.5 296361.0 273701.5 275757.5 NA [5,] 337698.0 335083.0 309119.0 285257.0 293860.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 304586.2 302864.7 279241.9 257962.2 256733.5 NA [2,] 326630.8 324280.3 299165.1 275614.8 270445.5 NA $out [1] 300713 $group [1] 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(300316, 306713, 315608.5, 330879, 337698, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/78bg01257932674.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,] 279788.2 274520.5 282790.0 [3,] 290013.1 289318.5 290487.5 [4,] 300757.7 296361.0 303742.0 [5,] 312469.8 309119.0 317898.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 280448.8 279356.9 280931.2 [2,] 299577.4 299280.1 300043.8 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(272738, 279788.2, 290013.1, 300757.7, 312469.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1txzg1257932674.ps tmp/1txzg1257932674.png") > system("convert tmp/27vy91257932674.ps tmp/27vy91257932674.png") > system("convert tmp/36vdf1257932674.ps tmp/36vdf1257932674.png") > system("convert tmp/4ylwc1257932674.ps tmp/4ylwc1257932674.png") > system("convert tmp/5duh31257932674.ps tmp/5duh31257932674.png") > system("convert tmp/61b9p1257932674.ps tmp/61b9p1257932674.png") > system("convert tmp/78bg01257932674.ps tmp/78bg01257932674.png") > > > proc.time() user system elapsed 1.204 0.958 1.686