R version 2.8.0 (2008-10-20) 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(293,301,362,330,328,405,232,159,336,361,329,339,290,328,375,294,340,364,248,145,380,305,291,319,334,318,362,296,300,342,215,185,343,333,316,252,320,324,343,295,301,367,196,182,342,361,334,330,345,323,366,323,316,358,235,169,430,409,407,341,326,374,364,349,300,385,304,196,443,414,325,388,356,386,444,387,327,448,225,182,460,411,342,361,377,331,428,340,352,461,221,198,422,329,320,375,364,351,380,319,322,386,221,187,344,342,365,313,356,337,389,326,343,357,220,218,391,425,332,298) > 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,] 293 290 334 320 345 326 356 377 364 356 NA [2,] 301 328 318 324 323 374 386 331 351 337 NA [3,] 362 375 362 343 366 364 444 428 380 389 NA [4,] 330 294 296 295 323 349 387 340 319 326 NA [5,] 328 340 300 301 316 300 327 352 322 343 NA [6,] 405 364 342 367 358 385 448 461 386 357 NA [7,] 232 248 215 196 235 304 225 221 221 220 NA [8,] 159 145 185 182 169 196 182 198 187 218 NA [9,] 336 380 343 342 430 443 460 422 344 391 NA [10,] 361 305 333 361 409 414 411 329 342 425 NA [11,] 329 291 316 334 407 325 342 320 365 332 NA [12,] 339 319 252 330 341 388 361 375 313 298 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 8 38 -16 4 -22 48 30 -46 -13 -19 NA [2,] 61 47 44 19 43 -10 58 97 29 52 NA [3,] -32 -81 -66 -48 -43 -15 -57 -88 -61 -63 NA [4,] -2 46 4 6 -7 -49 -60 12 3 17 NA [5,] 77 24 42 66 42 85 121 109 64 14 NA [6,] -173 -116 -127 -171 -123 -81 -223 -240 -165 -137 NA [7,] -73 -103 -30 -14 -66 -108 -43 -23 -34 -2 NA [8,] 177 235 158 160 261 247 278 224 157 173 NA [9,] 25 -75 -10 19 -21 -29 -49 -93 -2 34 NA [10,] -32 -14 -17 -27 -2 -89 -69 -9 23 -93 NA [11,] 10 28 -64 -4 -66 63 19 55 -52 -34 NA [12,] -49 15 68 15 -15 -32 16 -11 43 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/1oaxn1229162281.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/2vj9q1229162281.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/30r2q1229162281.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/4yyym1229162281.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,] 290.0 301.0 343.0 294.0 300.0 342 215 145.0 336.0 305 291.0 252.0 [2,] 320.0 323.0 362.0 296.0 301.0 358 220 169.0 343.0 333 320.0 313.0 [3,] 339.5 329.5 370.5 324.5 324.5 376 223 183.5 385.5 361 330.5 334.5 [4,] 356.0 351.0 389.0 340.0 340.0 405 235 196.0 430.0 411 342.0 361.0 [5,] 377.0 386.0 428.0 387.0 352.0 461 248 218.0 460.0 425 365.0 388.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 321.5130 315.5101 357.0097 302.5158 305.0140 352.5169 215.5054 170.0097 [2,] 357.4870 343.4899 383.9903 346.4842 343.9860 399.4831 230.4946 196.9903 [,9] [,10] [,11] [,12] [1,] 342.0313 322.0281 319.5079 310.5173 [2,] 428.9687 399.9719 341.4921 358.4827 $out [1] 444 196 304 407 $group [1] 3 7 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(290, 320, 339.5, 356, 377, 301, 323, 329.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5krc21229162281.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,] -46.0 -10.0 -88 -7.0 14 -240 -108.0 157.0 -93.0 -93 -66 -49 [2,] -19.0 29.0 -66 -7.0 42 -173 -73.0 160.0 -49.0 -69 -52 -15 [3,] -4.5 45.5 -59 3.5 65 -151 -38.5 200.5 -15.5 -22 3 15 [4,] 30.0 58.0 -43 12.0 85 -123 -23.0 247.0 19.0 -9 28 16 [5,] 48.0 97.0 -15 17.0 121 -81 -2.0 278.0 34.0 23 63 43 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -28.98235 31.01044 -70.49172 -5.993158 43.51549 -175.982 -63.48199 [2,] 19.98235 59.98956 -47.50828 12.993158 86.48451 -126.018 -13.51801 [,8] [,9] [,10] [,11] [,12] [1,] 157.0313 -49.47551 -51.978392 -36.97119 -1.326667 [2,] 243.9687 18.47551 7.978392 42.97119 31.326667 $out [1] 46 -49 -60 68 $group [1] 4 4 4 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-46, -19, -4.5, 30, 48, -10, 29, 45.5, 58, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6c6mi1229162281.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,] 232.0 248.0 185 295.0 235.0 300.0 225.0 221.0 313.0 298 NA [2,] 297.0 290.5 274 298.0 319.5 314.5 334.5 324.5 316.0 312 NA [3,] 329.5 312.0 317 327.0 343.0 356.5 373.5 346.0 343.0 340 NA [4,] 350.0 352.0 338 342.5 386.5 386.5 427.5 399.5 364.5 373 NA [5,] 405.0 380.0 362 367.0 430.0 443.0 460.0 461.0 386.0 425 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 305.3263 283.9494 287.8092 306.7033 312.4409 323.6603 331.0821 311.792 [2,] 353.6737 340.0506 346.1908 347.2967 373.5591 389.3397 415.9179 380.208 [,9] [,10] [,11] [1,] 320.8788 312.1775 NA [2,] 365.1212 367.8225 NA $out [1] 159 145 196 182 169 196 182 198 221 187 220 218 $group [1] 1 2 4 4 5 6 7 8 9 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(232, 297, 329.5, 350, 405, 248, 290.5, 312, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/77feo1229162281.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,] 322.90 324.50 319.6250 [2,] 324.40 324.50 320.2500 [3,] 336.10 332.50 335.3125 [4,] 375.15 365.75 373.7500 [5,] 389.10 385.50 385.6250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 312.9526 313.6856 310.9108 [2,] 359.2474 351.3144 359.7142 $out [1] 231.70 182.10 223.00 183.50 227.25 183.00 $group [1] 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(322.9, 324.4, 336.1, 375.15, 389.1, 324.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1oaxn1229162281.ps tmp/1oaxn1229162281.png") > system("convert tmp/2vj9q1229162281.ps tmp/2vj9q1229162281.png") > system("convert tmp/30r2q1229162281.ps tmp/30r2q1229162281.png") > system("convert tmp/4yyym1229162281.ps tmp/4yyym1229162281.png") > system("convert tmp/5krc21229162281.ps tmp/5krc21229162281.png") > system("convert tmp/6c6mi1229162281.ps tmp/6c6mi1229162281.png") > system("convert tmp/77feo1229162281.ps tmp/77feo1229162281.png") > > > proc.time() user system elapsed 1.221 0.965 1.476