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(568,567,566,564,584,583,568,558,559,559,560,562,563,552,552,555,575,567,548,541,544,546,551,550,546,532,523,528,555,543,525,517,519,521,520,516,509,494,484,482,508,500,480,467,471,482,481,477,471,455,441,434,459,448,432,414,415,423,425,427,415,399,386,377,397,379,361,350,348,363,367,365,354,327,312,307,335,317,298,286,288,303,310,301,293,264,255,251,279,253,233,226,232,245,250,242,230,196,188,181,212,186,166,155,157,173,182,182,168,131,114,106,134,103,83,74,83,96,95,100) > 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,] 568 563 546 509 471 415 354 293 230 168 NA [2,] 567 552 532 494 455 399 327 264 196 131 NA [3,] 566 552 523 484 441 386 312 255 188 114 NA [4,] 564 555 528 482 434 377 307 251 181 106 NA [5,] 584 575 555 508 459 397 335 279 212 134 NA [6,] 583 567 543 500 448 379 317 253 186 103 NA [7,] 568 548 525 480 432 361 298 233 166 83 NA [8,] 558 541 517 467 414 350 286 226 155 74 NA [9,] 559 544 519 471 415 348 288 232 157 83 NA [10,] 559 546 521 482 423 363 303 245 173 96 NA [11,] 560 551 520 481 425 367 310 250 182 95 NA [12,] 562 550 516 477 427 365 301 242 182 100 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 -11 -14 -15 -16 -16 -27 -29 -34 -37 NA [2,] -1 0 -9 -10 -14 -13 -15 -9 -8 -17 NA [3,] -2 3 5 -2 -7 -9 -5 -4 -7 -8 NA [4,] 20 20 27 26 25 20 28 28 31 28 NA [5,] -1 -8 -12 -8 -11 -18 -18 -26 -26 -31 NA [6,] -15 -19 -18 -20 -16 -18 -19 -20 -20 -20 NA [7,] -10 -7 -8 -13 -18 -11 -12 -7 -11 -9 NA [8,] 1 3 2 4 1 -2 2 6 2 9 NA [9,] 0 2 2 11 8 15 15 13 16 13 NA [10,] 1 5 -1 -1 2 4 7 5 9 -1 NA [11,] 2 -1 -4 -4 2 -2 -9 -8 0 5 NA [12,] 1 -4 -7 -6 -12 -11 -8 -12 -14 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/1d3lh1279624141.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/2d3lh1279624141.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/35d221279624141.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/45d221279624141.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,] 168 131 114.0 106.0 134 103.0 83.0 74 83.0 96 95 100 [2,] 293 264 255.0 251.0 279 253.0 233.0 226 232.0 245 250 242 [3,] 443 427 413.5 405.5 428 413.5 396.5 382 381.5 393 396 396 [4,] 546 532 523.0 528.0 555 543.0 525.0 517 519.0 521 520 516 [5,] 568 567 566.0 564.0 584 583.0 568.0 558 559.0 559 560 562 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 316.5911 293.0965 279.5965 267.0998 290.0994 268.6044 250.6052 236.6048 [2,] 569.4089 560.9035 547.4035 543.9002 565.9006 558.3956 542.3948 527.3952 [,9] [,10] [,11] [,12] [1,] 238.1034 255.0994 261.0972 259.0987 [2,] 524.8966 530.9006 530.9028 532.9013 $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(168, 293, 443, 546, 568, 131, 264, 427, 532, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55d221279624141.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,] -37 -17.0 -9.0 20.0 -31 -20 -18.0 -2 0 -1 -9.0 -14 [2,] -29 -14.0 -7.0 20.0 -26 -20 -12.0 1 2 -1 -4.0 -12 [3,] -16 -9.5 -4.5 26.5 -15 -19 -10.5 2 12 3 -1.5 -8 [4,] -14 -8.0 -2.0 28.0 -8 -18 -8.0 4 15 5 2.0 -6 [5,] -1 0.0 5.0 31.0 -1 -15 -7.0 6 16 9 5.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,] -23.494598 -12.497839 -6.998199 22.50288 -23.993518 -19.99928 -12.49856 [2,] -8.505402 -6.502161 -2.001801 30.49712 -6.006482 -18.00072 -8.50144 [,8] [,9] [,10] [,11] [,12] [1,] 0.5010804 5.504682 0.002160778 -4.497839 -11.16 [2,] 3.4989196 18.495318 5.997839222 1.497839 -4.84 $out [1] 9 $group [1] 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-37, -29, -16, -14, -1, -17, -14, -9.5, -8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ymj51279624141.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,] 558.0 541.0 516.0 467.0 414.0 348.0 286.0 226.0 155.0 74.0 NA [2,] 559.5 547.0 519.5 478.5 424.0 362.0 299.5 237.5 169.5 89.0 NA [3,] 565.0 551.5 524.0 482.0 433.0 372.0 308.5 250.5 182.0 101.5 NA [4,] 568.0 559.0 537.5 497.0 451.5 391.5 322.0 259.5 192.0 122.5 NA [5,] 568.0 575.0 555.0 509.0 471.0 415.0 354.0 279.0 212.0 168.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,] 561.1231 546.0267 515.7901 473.562 420.4571 358.5449 298.2376 240.4657 [2,] 568.8769 556.9733 532.2099 490.438 445.5429 385.4551 318.7624 260.5343 [,9] [,10] [,11] [1,] 171.7376 86.22043 NA [2,] 192.2624 116.77957 NA $out [1] 584 583 293 230 $group [1] 1 1 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(558, 559.5, 565, 568, 568, 541, 547, 551.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ymj51279624141.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,] 358.80 381.50 372.7500 [2,] 370.25 394.50 381.5000 [3,] 376.30 401.00 389.1875 [4,] 389.80 420.25 400.8750 [5,] 411.70 443.00 422.5000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 367.3831 389.2553 380.3504 [2,] 385.2169 412.7447 398.0246 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(358.8, 370.25, 376.3, 389.8, 411.7, 381.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1d3lh1279624141.ps tmp/1d3lh1279624141.png",intern=TRUE)) character(0) > try(system("convert tmp/2d3lh1279624141.ps tmp/2d3lh1279624141.png",intern=TRUE)) character(0) > try(system("convert tmp/35d221279624141.ps tmp/35d221279624141.png",intern=TRUE)) character(0) > try(system("convert tmp/45d221279624141.ps tmp/45d221279624141.png",intern=TRUE)) character(0) > try(system("convert tmp/55d221279624141.ps tmp/55d221279624141.png",intern=TRUE)) character(0) > try(system("convert tmp/6ymj51279624141.ps tmp/6ymj51279624141.png",intern=TRUE)) character(0) > try(system("convert tmp/7ymj51279624141.ps tmp/7ymj51279624141.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.156 0.913 1.589