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(159,158,157,155,175,174,159,149,150,150,151,153,146,156,154,151,171,167,144,138,138,132,132,132,125,131,129,131,145,156,126,123,127,116,114,114,109,110,113,114,138,155,126,123,124,124,134,131,126,128,128,124,148,174,146,137,152,159,170,166,165,168,175,180,199,228,206,193,201,214,225,224,215,222,238,248,262,288,261,240,248,260,266,268,256,261,287,295,304,331,299,275,293,309,311,311,289,298,319,325,331,348,320,305,322,337,346,343,321,331,343,345,347,363,322,304,323,340,352,351) > 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] 120 > (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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 159 146 125 109 126 165 215 256 289 321 NA [2,] 158 156 131 110 128 168 222 261 298 331 NA [3,] 157 154 129 113 128 175 238 287 319 343 NA [4,] 155 151 131 114 124 180 248 295 325 345 NA [5,] 175 171 145 138 148 199 262 304 331 347 NA [6,] 174 167 156 155 174 228 288 331 348 363 NA [7,] 159 144 126 126 146 206 261 299 320 322 NA [8,] 149 138 123 123 137 193 240 275 305 304 NA [9,] 150 138 127 124 152 201 248 293 322 323 NA [10,] 150 132 116 124 159 214 260 309 337 340 NA [11,] 151 132 114 134 170 225 266 311 346 352 NA [12,] 153 132 114 131 166 224 268 311 343 351 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 10 6 1 2 3 7 5 9 10 NA [2,] -1 -2 -2 3 0 7 16 26 21 12 NA [3,] -2 -3 2 1 -4 5 10 8 6 2 NA [4,] 20 20 14 24 24 19 14 9 6 2 NA [5,] -1 -4 11 17 26 29 26 27 17 16 NA [6,] -15 -23 -30 -29 -28 -22 -27 -32 -28 -41 NA [7,] -10 -6 -3 -3 -9 -13 -21 -24 -15 -18 NA [8,] 1 0 4 1 15 8 8 18 17 19 NA [9,] 0 -6 -11 0 7 13 12 16 15 17 NA [10,] 1 0 -2 10 11 11 6 2 9 12 NA [11,] 2 0 0 -3 -4 -1 2 0 -3 -1 NA [12,] -7 -7 -5 -5 -1 -9 -12 -22 -22 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/1ck2m1282059192.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/2mt1p1282059192.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/3mt1p1282059192.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/4xk0s1282059192.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,] 109 110 113 114.0 138 155 126.0 123 124.0 116.0 114.0 114 [2,] 126 131 129 131.0 148 167 144.0 137 138.0 132.0 134.0 132 [3,] 162 163 166 167.5 187 201 182.5 171 176.5 186.5 197.5 195 [4,] 256 261 287 295.0 304 331 299.0 275 293.0 309.0 311.0 311 [5,] 321 331 343 345.0 347 363 322.0 305 323.0 340.0 352.0 351 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 97.04682 98.04682 87.0569 85.55906 109.0562 119.0591 105.0558 102.0497 [2,] 226.95318 227.95318 244.9431 249.44094 264.9438 282.9409 259.9442 239.9503 [,9] [,10] [,11] [,12] [1,] 99.05582 98.06374 109.0637 105.5645 [2,] 253.94418 274.93626 285.9363 284.4355 $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(109, 126, 162, 256, 321, 110, 131, 163, 261, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xk0s1282059192.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,] -1.0 -2 -4 2.0 -4 -32 -24.0 0 -11.0 -2.0 -4.0 -22 [2,] 2.0 -1 -2 9.0 11 -30 -18.0 1 0.0 1.0 -3.0 -12 [3,] 5.5 5 2 16.5 17 -28 -11.5 8 9.5 7.5 -0.5 -7 [4,] 9.0 16 6 20.0 26 -23 -6.0 17 15.0 11.0 0.0 -5 [5,] 10.0 26 10 24.0 29 -15 -3.0 19 17.0 12.0 2.0 -1 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.002521 -3.493878 -1.997119 11.00396 9.505402 -31.49748 -17.495678 [2,] 8.997479 13.493878 5.997119 21.99604 24.494598 -24.50252 -5.504322 [,8] [,9] [,10] [,11] [,12] [1,] 0.005762075 2.005402 2.503601 -1.9989196 -10.686667 [2,] 15.994237925 16.994598 12.496399 0.9989196 -3.313333 $out [1] -41 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1, 2, 5.5, 9, 10, -2, -1, 5, 16, 26, -4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6xk0s1282059192.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,] 149.0 132 114.0 109.0 124.0 165.0 215 256 289.0 304.0 NA [2,] 150.5 135 119.5 113.5 128.0 177.5 239 281 312.0 322.5 NA [3,] 156.0 145 126.5 124.0 147.0 200.0 254 297 323.5 341.5 NA [4,] 159.0 155 131.0 132.5 162.5 219.0 264 310 340.0 349.0 NA [5,] 159.0 171 145.0 155.0 174.0 228.0 288 331 348.0 363.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 152.1231 135.8779 121.2548 115.3340 131.2643 181.0716 242.5973 283.7729 [2,] 159.8769 154.1221 131.7452 132.6660 162.7357 218.9284 265.4027 310.2271 [,9] [,10] [,11] [1,] 310.729 329.4132 NA [2,] 336.271 353.5868 NA $out [1] 175 174 156 $group [1] 1 1 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(149, 150.5, 156, 159, 159, 132, 135, 145, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7quhv1282059192.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,] 191.10 162.00 188.375 [2,] 201.50 166.75 203.375 [3,] 209.35 179.50 214.000 [4,] 219.70 191.00 218.875 [5,] 238.40 201.00 223.625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 201.0489 168.4394 206.9303 [2,] 217.6511 190.5606 221.0697 $out [1] 244.5 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(191.1, 201.5, 209.35, 219.7, 238.4, 162, 166.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ck2m1282059192.ps tmp/1ck2m1282059192.png",intern=TRUE)) character(0) > try(system("convert tmp/2mt1p1282059192.ps tmp/2mt1p1282059192.png",intern=TRUE)) character(0) > try(system("convert tmp/3mt1p1282059192.ps tmp/3mt1p1282059192.png",intern=TRUE)) character(0) > try(system("convert tmp/4xk0s1282059192.ps tmp/4xk0s1282059192.png",intern=TRUE)) character(0) > try(system("convert tmp/5xk0s1282059192.ps tmp/5xk0s1282059192.png",intern=TRUE)) character(0) > try(system("convert tmp/6xk0s1282059192.ps tmp/6xk0s1282059192.png",intern=TRUE)) character(0) > try(system("convert tmp/7quhv1282059192.ps tmp/7quhv1282059192.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.181 0.946 1.741