R version 2.7.2 (2008-08-25) 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(112,118,132,129,121,135,148,148,136,119,104,118,115,126,141,135,125,149,170,170,158,133,114,140,145,150,178,163,172,178,199,199,184,162,146,166,171,180,193,181,183,218,230,242,209,191,172,194,196,196,236,235,229,243,264,272,237,211,180,201,204,188,235,227,234,264,302,293,259,229,203,229,242,233,267,269,270,315,364,347,312,274,237,278,284,277,317,313,318,374,413,405,355,306,271,306,315,301,356,348,355,422,465,467,404,347,305,336,340,318,362,348,363,435,491,505,404,359,310,337,360,342,406,396,420,472,548,559,463,407,362,405,417,391,419,461,472,535,622,606,508,461,390,432) > par1 = '12' > x <- x[x>quantile(x,0.05) & x par1 <- as.numeric(par1) > (n <- length(x)) [1] 128 > (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 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 132 170 184 209 237 259 312 355 404 310 417 [2,] 129 158 162 191 211 229 274 306 347 337 391 [3,] 135 133 146 172 180 203 237 271 305 360 419 [4,] 148 140 166 194 201 229 278 306 336 342 461 [5,] 148 145 171 196 204 242 284 315 340 406 472 [6,] 136 150 180 196 188 233 277 301 318 396 461 [7,] 126 178 193 236 235 267 317 356 362 420 390 [8,] 141 163 181 235 227 269 313 348 348 472 432 [9,] 135 172 183 229 234 270 318 355 363 463 NA [10,] 125 178 218 243 264 315 374 422 435 407 NA [11,] 149 199 230 264 302 364 413 465 404 362 NA [12,] 170 199 242 272 293 347 405 467 359 405 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -3 -12 -22 -18 -26 -30 -38 -49 -57 27 -26 [2,] 6 -25 -16 -19 -31 -26 -37 -35 -42 23 28 [3,] 13 7 20 22 21 26 41 35 31 -18 42 [4,] 0 5 5 2 3 13 6 9 4 64 11 [5,] -12 5 9 0 -16 -9 -7 -14 -22 -10 -11 [6,] -10 28 13 40 47 34 40 55 44 24 -71 [7,] 15 -15 -12 -1 -8 2 -4 -8 -14 52 42 [8,] -6 9 2 -6 7 1 5 7 15 -9 NA [9,] -10 6 35 14 30 45 56 67 72 -56 NA [10,] 24 21 12 21 38 49 39 43 -31 -45 NA [11,] 21 0 12 8 -9 -17 -8 2 -45 43 NA [12,] 0 -15 -33 -35 -34 -35 -50 -63 -49 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/18aak1225880694.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/2u9p91225880694.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/3u40h1225880694.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/4wk1j1225880694.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,] 132.0 129.0 133 140 145.0 136.0 126 141 135 125.0 149 170 [2,] 196.5 176.5 159 180 183.5 184.0 214 204 183 218.0 230 242 [3,] 259.0 229.0 203 229 242.0 233.0 267 269 252 289.5 332 320 [4,] 333.5 321.5 288 321 327.5 309.5 359 348 355 407.0 404 405 [5,] 417.0 391.0 419 461 472.0 461.0 420 472 463 435.0 465 467 $n [1] 11 11 11 11 11 11 11 11 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 193.7349 159.9238 141.5460 161.8293 173.4001 173.2133 197.9238 200.4001 [2,] 324.2651 298.0762 264.4540 296.1707 310.5999 292.7867 336.0762 337.5999 [,9] [,10] [,11] [,12] [1,] 166.0619 195.0681 245.0627 238.5587 [2,] 337.9381 383.9319 418.9373 401.4413 $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(132, 196.5, 259, 333.5, 417, 129, 176.5, 229, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5px5g1225880694.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,] -57 -42 7.0 0.0 -22.0 -10.0 -15.0 -9.0 -56.0 12.0 -17 -63.0 [2,] -34 -33 16.5 3.5 -13.0 18.5 -10.0 -6.0 6.0 12.0 -9 -49.0 [3,] -26 -25 22.0 5.0 -10.0 34.0 -4.0 3.5 32.5 22.5 1 -34.5 [4,] -15 -5 33.0 10.0 -3.5 42.0 8.5 7.0 56.0 39.0 12 -15.0 [5,] -3 28 42.0 13.0 9.0 55.0 15.0 15.0 72.0 49.0 43 12.0 $n [1] 11 11 11 11 11 11 11 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -35.05137 -38.33886 14.1396 1.903478 -14.525685 22.80488 -12.813177 [2,] -16.94863 -11.66114 29.8604 8.096522 -5.474315 45.19512 4.813177 [,8] [,9] [,10] [,11] [,12] [1,] -2.995318 7.518006 9.009724 -9.492437 -51.48776 [2,] 9.995318 57.481994 35.990276 11.492437 -17.51224 $out [1] 27 -18 64 -71 52 42 -31 -45 -45 $group [1] 1 3 4 6 7 7 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-57, -34, -26, -15, -3, -42, -33, -25, -5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6w2m91225880694.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] [,9] [,10] [,11] [1,] 125.0 133.0 146.0 172.0 180.0 203.0 237.0 271.0 305.0 310.0 390.0 [2,] 130.5 147.5 168.5 195.0 202.5 231.0 277.5 306.0 338.0 351.0 404.0 [3,] 135.5 166.5 182.0 219.0 230.5 263.0 312.5 351.5 353.5 400.5 425.5 [4,] 148.0 178.0 205.5 239.5 250.5 292.5 346.0 389.0 383.5 413.5 461.0 [5,] 170.0 199.0 242.0 272.0 302.0 364.0 413.0 467.0 435.0 472.0 472.0 $n [1] 12 12 12 12 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 127.5181 152.5887 165.1241 198.7033 208.6069 234.9494 281.2567 313.6431 [2,] 143.4819 180.4113 198.8759 239.2967 252.3931 291.0506 343.7433 389.3569 [,9] [,10] [,11] [1,] 332.7471 371.9933 393.659 [2,] 374.2529 429.0067 457.341 $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(125, 130.5, 135.5, 148, 170, 133, 147.5, 166.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7amd61225880694.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,] 232.8182 203.00 223.5000 [2,] 256.2273 231.00 249.7500 [3,] 271.9636 255.50 267.5625 [4,] 291.2773 279.25 299.0000 [5,] 315.9000 332.00 321.5000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 255.9771 233.4929 245.0992 [2,] 287.9502 277.5071 290.0258 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(232.818181818182, 256.227272727273, 271.963636363636, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/18aak1225880694.ps tmp/18aak1225880694.png") > system("convert tmp/2u9p91225880694.ps tmp/2u9p91225880694.png") > system("convert tmp/3u40h1225880694.ps tmp/3u40h1225880694.png") > system("convert tmp/4wk1j1225880694.ps tmp/4wk1j1225880694.png") > system("convert tmp/5px5g1225880694.ps tmp/5px5g1225880694.png") > system("convert tmp/6w2m91225880694.ps tmp/6w2m91225880694.png") > system("convert tmp/7amd61225880694.ps tmp/7amd61225880694.png") > > > proc.time() user system elapsed 1.451 0.969 1.771