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(668,667,666,664,684,683,668,658,659,659,660,662,659,655,655,655,674,674,665,644,638,648,641,637,651,649,652,650,661,666,652,624,613,623,615,613,621,612,611,609,631,632,624,596,584,587,581,574,593,582,571,572,594,588,571,546,535,537,527,515,545,538,520,523,541,529,504,473,455,458,450,442,469,455,439,443,461,451,425,393,366,359,351,343,366,355,344,351,367,364,353,313,278,274,261,255,274,262,265,274,291,289,277,238,203,198,190,187,201,181,181,196,207,202,186,154,120,107,99,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,] 668 659 651 621 593 545 469 366 274 201 NA [2,] 667 655 649 612 582 538 455 355 262 181 NA [3,] 666 655 652 611 571 520 439 344 265 181 NA [4,] 664 655 650 609 572 523 443 351 274 196 NA [5,] 684 674 661 631 594 541 461 367 291 207 NA [6,] 683 674 666 632 588 529 451 364 289 202 NA [7,] 668 665 652 624 571 504 425 353 277 186 NA [8,] 658 644 624 596 546 473 393 313 238 154 NA [9,] 659 638 613 584 535 455 366 278 203 120 NA [10,] 659 648 623 587 537 458 359 274 198 107 NA [11,] 660 641 615 581 527 450 351 261 190 99 NA [12,] 662 637 613 574 515 442 343 255 187 100 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 -4 -2 -9 -11 -7 -14 -11 -12 -20 NA [2,] -1 0 3 -1 -11 -18 -16 -11 3 0 NA [3,] -2 0 -2 -2 1 3 4 7 9 15 NA [4,] 20 19 11 22 22 18 18 16 17 11 NA [5,] -1 0 5 1 -6 -12 -10 -3 -2 -5 NA [6,] -15 -9 -14 -8 -17 -25 -26 -11 -12 -16 NA [7,] -10 -21 -28 -28 -25 -31 -32 -40 -39 -32 NA [8,] 1 -6 -11 -12 -11 -18 -27 -35 -35 -34 NA [9,] 0 10 10 3 2 3 -7 -4 -5 -13 NA [10,] 1 -7 -8 -6 -10 -8 -8 -13 -8 -8 NA [11,] 2 -4 -2 -7 -12 -8 -8 -6 -3 1 NA [12,] -3 14 8 19 30 27 23 19 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/1sk271281989929.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/2sk271281989929.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/3lu1s1281989929.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/4lu1s1281989929.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,] 201 181 181.0 196.0 207.0 202.0 186.0 154.0 120 107.0 99.0 100.0 [2,] 366 355 344.0 351.0 367.0 364.0 353.0 313.0 278 274.0 261.0 255.0 [3,] 569 560 545.5 547.5 567.5 558.5 537.5 509.5 495 497.5 488.5 478.5 [4,] 651 649 652.0 650.0 661.0 666.0 652.0 624.0 613 623.0 615.0 613.0 [5,] 668 667 666.0 664.0 684.0 683.0 668.0 658.0 659 659.0 660.0 662.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,] 426.6026 413.1059 391.6109 398.1077 420.6059 407.6088 388.1077 354.112 [2,] 711.3974 706.8941 699.3891 696.8923 714.3941 709.3912 686.8923 664.888 [,9] [,10] [,11] [,12] [1,] 327.6206 323.1257 311.6275 299.6289 [2,] 662.3794 671.8743 665.3725 657.3711 $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(201, 366, 569, 651, 668, 181, 355, 560, 649, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lu1s1281989929.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,] -20 -18 -2 11 -12.0 -26.0 -40.0 -35 -13 -8 -12 8 [2,] -12 -11 -2 16 -6.0 -17.0 -32.0 -34 -5 -8 -8 14 [3,] -10 -1 2 18 -2.5 -14.5 -29.5 -15 1 -8 -5 19 [4,] -4 0 7 20 0.0 -11.0 -25.0 -11 3 -7 -2 23 [5,] -1 3 15 22 5.0 -8.0 -21.0 1 10 -6 2 30 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -13.997119 -6.496039 -2.496759 16.00144 -5.4978392 -17.49784 -32.99748 [2,] -6.002881 4.496039 6.496759 19.99856 0.4978392 -11.50216 -26.00252 [,8] [,9] [,10] [,11] [,12] [1,] -26.491717 -2.997119 -8.49964 -7.997839 14.26 [2,] -3.508283 4.997119 -7.50036 -2.002161 23.74 $out [1] -10 1 -10 -13 -3 $group [1] 7 10 10 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-20, -12, -10, -4, -1, -18, -11, -1, 0, 3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6el0v1281989929.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,] 658.0 637.0 613.0 574.0 515 442.0 343.0 255.0 187.0 99.0 NA [2,] 659.5 642.5 619.0 585.5 536 456.5 362.5 276.0 200.5 113.5 NA [3,] 665.0 655.0 649.5 610.0 571 512.0 432.0 347.5 263.5 181.0 NA [4,] 668.0 662.0 652.0 622.5 585 533.5 453.0 359.5 275.5 198.5 NA [5,] 668.0 674.0 666.0 632.0 594 545.0 469.0 367.0 291.0 207.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,] 661.1231 646.1059 634.4485 593.124 548.6508 476.8798 390.7223 309.4151 [2,] 668.8769 663.8941 664.5515 626.876 593.3492 547.1202 473.2777 385.5849 [,9] [,10] [,11] [1,] 229.292 142.2309 NA [2,] 297.708 219.7691 NA $out [1] 684 683 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(658, 659.5, 665, 668, 668, 637, 642.5, 655, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7el0v1281989929.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,] 432.80 478.50 440.1250 [2,] 445.05 496.25 453.7500 [3,] 491.45 541.50 505.8125 [4,] 500.15 559.25 513.7500 [5,] 511.10 569.00 522.0000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 466.3185 512.7653 478.4461 [2,] 516.5815 570.2347 533.1789 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(432.8, 445.05, 491.45, 500.15, 511.1, 478.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1sk271281989929.ps tmp/1sk271281989929.png",intern=TRUE)) character(0) > try(system("convert tmp/2sk271281989929.ps tmp/2sk271281989929.png",intern=TRUE)) character(0) > try(system("convert tmp/3lu1s1281989929.ps tmp/3lu1s1281989929.png",intern=TRUE)) character(0) > try(system("convert tmp/4lu1s1281989929.ps tmp/4lu1s1281989929.png",intern=TRUE)) character(0) > try(system("convert tmp/5lu1s1281989929.ps tmp/5lu1s1281989929.png",intern=TRUE)) character(0) > try(system("convert tmp/6el0v1281989929.ps tmp/6el0v1281989929.png",intern=TRUE)) character(0) > try(system("convert tmp/7el0v1281989929.ps tmp/7el0v1281989929.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.203 0.938 1.574