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(180144,173666,165688,161570,156145,153730,182698,200765,176512,166618,158644,159585,163095,159044,155511,153745,150569,150605,179612,194690,189917,184128,175335,179566,181140,177876,175041,169292,166070,166972,206348,215706,202108,195411,193111,195198,198770,194163,190420,189733,186029,191531,232571,243477,227247,217859,208679,213188,216234,213586,209465,204045,200237,203666,241476,260307,243324,244460,233575,237217,235243,230354,227184,221678,217142,219452,256446,265845,248624,241114,229245,231805,219277,219313,212610,214771,211142,211457,240048,240636,230580,208795,197922,194596,194581,185686,178106,172608,167302,168053,202300,202388,182516,173476,166444,171297,169701,164182,161914,159612,151001,158114,186530,187069,174330,169362,166827,178037,186413,189226,191563,188906,186005,195309,223532,226899,214126,206903,204442,220375,214320,212588,205816,202196,195722,198563,229139,229527,211868) > 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] 129 > (np <- floor(n / par1)) [1] 10 > 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] 11 11 11 11 11 11 11 11 11 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 180144 163095 181140 198770 216234 235243 219277 194581 169701 186413 [2,] 173666 159044 177876 194163 213586 230354 219313 185686 164182 189226 [3,] 165688 155511 175041 190420 209465 227184 212610 178106 161914 191563 [4,] 161570 153745 169292 189733 204045 221678 214771 172608 159612 188906 [5,] 156145 150569 166070 186029 200237 217142 211142 167302 151001 186005 [6,] 153730 150605 166972 191531 203666 219452 211457 168053 158114 195309 [7,] 182698 179612 206348 232571 241476 256446 240048 202300 186530 223532 [8,] 200765 194690 215706 243477 260307 265845 240636 202388 187069 226899 [9,] 176512 189917 202108 227247 243324 248624 230580 182516 174330 214126 [10,] 166618 184128 195411 217859 244460 241114 208795 173476 169362 206903 [11,] 158644 175335 193111 208679 233575 229245 197922 166444 166827 204442 [12,] 159585 179566 195198 213188 237217 231805 194596 171297 178037 220375 [,11] [1,] 214320 [2,] 212588 [3,] 205816 [4,] 202196 [5,] 195722 [6,] 198563 [7,] 229139 [8,] 229527 [9,] 211868 [10,] NA [11,] NA [12,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -6478 -4051 -3264 -4607 -2648 -4889 36 -8895 -5519 2813 [2,] -7978 -3533 -2835 -3743 -4121 -3170 -6703 -7580 -2268 2337 [3,] -4118 -1766 -5749 -687 -5420 -5506 2161 -5498 -2302 -2657 [4,] -5425 -3176 -3222 -3704 -3808 -4536 -3629 -5306 -8611 -2901 [5,] -2415 36 902 5502 3429 2310 315 751 7113 9304 [6,] 28968 29007 39376 41040 37810 36994 28591 34247 28416 28223 [7,] 18067 15078 9358 10906 18831 9399 588 88 539 3367 [8,] -24253 -4773 -13598 -16230 -16983 -17221 -10056 -19872 -12739 -12773 [9,] -9894 -5789 -6697 -9388 1136 -7510 -21785 -9040 -4968 -7223 [10,] -7974 -8793 -2300 -9180 -10885 -11869 -10873 -7032 -2535 -2461 [11,] 941 4231 2087 4509 3642 2560 -3326 4853 11210 15933 [12,] 3510 1574 3572 3046 -1974 -12528 -15 -1596 8376 -6055 [,11] [1,] -1732 [2,] -6772 [3,] -3620 [4,] -6474 [5,] 2841 [6,] 30576 [7,] 388 [8,] -17659 [9,] NA [10,] NA [11,] NA [12,] 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/1vapq1289582889.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/2616t1289582889.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/3616t1289582889.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/4616t1289582889.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] [1,] 163095 159044 155511.0 153745.0 150569.0 150605.0 179612.0 187069.0 [2,] 180642 175771 170364.5 165431.0 161107.5 162543.0 194415.0 201576.5 [3,] 194581 189226 190420.0 188906.0 186005.0 191531.0 223532.0 226899.0 [4,] 215277 213087 207640.5 203120.5 197979.5 201114.5 236309.5 242056.5 [5,] 235243 230354 227184.0 221678.0 217142.0 219452.0 256446.0 265845.0 [,9] [,10] [,11] [,12] [1,] 174330.0 166618 158644.0 159585 [2,] 186216.5 173476 166827.0 178037 [3,] 211868.0 201157 195516.5 194897 [4,] 228913.5 217859 208679.0 220375 [5,] 248624.0 244460 233575.0 237217 $n [1] 11 11 11 11 11 11 11 11 11 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 178081.3 171449.1 172662.2 170951.2 168439.6 173156 203574.0 207614.8 [2,] 211080.7 207002.9 208177.8 206860.8 203570.4 209906 243490.0 246183.2 [,9] [,10] [,11] [,12] [1,] 191527.7 178981.5 174605.6 173743.2 [2,] 232208.3 223332.5 216427.4 216050.8 $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(163095, 180642, 194581, 215277, 235243, 159044, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gaoe1289582889.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] [1,] -8895 -7978.0 -5749 -6474.0 -2415.0 28223.0 88.0 -24253 -9894.0 [2,] -5204 -6737.5 -5459 -5365.5 533.0 28779.5 563.5 -17440 -9388.0 [3,] -4051 -3743.0 -3620 -3808.0 2310.0 30576.0 9358.0 -16230 -7366.5 [4,] -2190 -3002.5 -2034 -3425.5 4465.5 37402.0 12992.0 -12756 -5789.0 [5,] 36 2337.0 2161 -2901.0 9304.0 41040.0 18831.0 -10056 -4968.0 [,10] [,11] [,12] [1,] -11869.0 941.0 -6055.0 [2,] -10873.0 2087.0 -1974.0 [3,] -8383.5 3936.5 779.5 [4,] -2535.0 4853.0 3510.0 [5,] -2300.0 4853.0 8376.0 $n [1] 11 11 11 11 11 11 11 11 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5486.833 -5522.309 -5251.629 -4732.193 436.6045 26468.35 3437.213 [2,] -2615.167 -1963.691 -1988.371 -2883.807 4183.3955 34683.65 15278.787 [,8] [,9] [,10] [,11] [,12] [1,] -18461.4 -9164.704 -12549.497 2554.496 -1960.525 [2,] -13998.6 -5568.296 -4217.503 5318.504 3519.525 $out [1] 2813 -8611 -4773 1136 -21785 -3326 11210 15933 -12528 $group [1] 1 4 8 9 9 11 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8895, -5204, -4051, -2190, 36, -7978, -6737.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6gaoe1289582889.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] [,7] [,8] [1,] 153730.0 150569 166070.0 186029.0 200237.0 217142.0 194596.0 166444.0 [2,] 159114.5 154628 172166.5 190975.5 206755.0 224431.0 209968.5 169675.0 [3,] 166153.0 169215 187125.5 203724.5 224904.5 231079.5 213690.5 175791.0 [4,] 178328.0 181870 198759.5 222553.0 242400.0 244869.0 224946.5 190133.5 [5,] 200765.0 194690 215706.0 243477.0 260307.0 265845.0 240636.0 202388.0 [,9] [,10] [,11] [1,] 151001.0 186005.0 195722 [2,] 160763.0 189066.0 202196 [3,] 168094.5 199875.5 211868 [4,] 176183.5 217250.5 214320 [5,] 187069.0 226899.0 229527 $n [1] 12 12 12 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 157389.6 156789.7 174996.3 189321.8 208646.6 221757.6 206858.9 166459.7 [2,] 174916.4 181640.3 199254.7 218127.2 241162.4 240401.4 220522.1 185122.3 [,9] [,10] [,11] [1,] 161061.1 187020.4 205482.7 [2,] 175127.9 212730.6 218253.3 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(153730, 159114.5, 166153, 178328, 200765, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/79j5z1289582889.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,] 180669.5 186005.0 179543.5 [2,] 186885.2 189823.0 186281.3 [3,] 194843.8 194739.0 195147.5 [4,] 205004.1 206512.5 203031.9 [5,] 224300.8 226899.0 221816.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 186579.7 187126.8 187507.5 [2,] 203108.0 202351.2 202787.5 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(180669.454545455, 186885.181818182, 194843.836363636, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vapq1289582889.ps tmp/1vapq1289582889.png",intern=TRUE)) character(0) > try(system("convert tmp/2616t1289582889.ps tmp/2616t1289582889.png",intern=TRUE)) character(0) > try(system("convert tmp/3616t1289582889.ps tmp/3616t1289582889.png",intern=TRUE)) character(0) > try(system("convert tmp/4616t1289582889.ps tmp/4616t1289582889.png",intern=TRUE)) character(0) > try(system("convert tmp/5gaoe1289582889.ps tmp/5gaoe1289582889.png",intern=TRUE)) character(0) > try(system("convert tmp/6gaoe1289582889.ps tmp/6gaoe1289582889.png",intern=TRUE)) character(0) > try(system("convert tmp/79j5z1289582889.ps tmp/79j5z1289582889.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.206 0.950 28.194