R version 2.6.2 (2008-02-08) 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(7840,8292,8534,8441,8602,8468,8832,9006,8749,8714,8193,8251,8192,9056,9407,9068,9431,9907,10044,10838,10871,11127,11303,11349,11493,12694,13227,12253,12234,12491,13248,14042,14392,14834,15542,15518,16197,17325,24016,23671,24998,25329,25904,26548,26752,26967,27034,27056,27476,28497,29085,28720,29067,29249,29672,29761,30066,30315,30571,30757,30742,31310,31381,31470,31226,31081,31061,31114,30828,30418,30195,29877,29192,29876,29409,28458,28340,28164,28438,28053) > 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] 80 > (np <- floor(n / par1)) [1] 6 > 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] 7 7 7 7 7 7 7 7 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7840 8192 11493 16197 27476 30742 29192 [2,] 8292 9056 12694 17325 28497 31310 29876 [3,] 8534 9407 13227 24016 29085 31381 29409 [4,] 8441 9068 12253 23671 28720 31470 28458 [5,] 8602 9431 12234 24998 29067 31226 28340 [6,] 8468 9907 12491 25329 29249 31081 28164 [7,] 8832 10044 13248 25904 29672 31061 28438 [8,] 9006 10838 14042 26548 29761 31114 28053 [9,] 8749 10871 14392 26752 30066 30828 NA [10,] 8714 11127 14834 26967 30315 30418 NA [11,] 8193 11303 15542 27034 30571 30195 NA [12,] 8251 11349 15518 27056 30757 29877 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 452 864 1201 1128 1021 568 684 [2,] 242 351 533 6691 588 71 -467 [3,] -93 -339 -974 -345 -365 89 -951 [4,] 161 363 -19 1327 347 -244 -118 [5,] -134 476 257 331 182 -145 -176 [6,] 364 137 757 575 423 -20 274 [7,] 174 794 794 644 89 53 -385 [8,] -257 33 350 204 305 -286 NA [9,] -35 256 442 215 249 -410 NA [10,] -521 176 708 67 256 -223 NA [11,] 58 46 -24 22 186 -318 NA [12,] -59 144 679 420 -15 -685 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/1jaly1209389419.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/2ih381209389419.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/3rje81209389419.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/4ie8k1209389419.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] [1,] 7840.0 8292.0 8534 8441.0 8602.0 8468.0 8832 9006 8749 8714.0 [2,] 9842.5 10875.0 11317 10660.5 10832.5 11199.0 11646 12440 10871 11127.0 [3,] 16197.0 17325.0 24016 23671.0 24998.0 25329.0 25904 26548 20572 20900.5 [4,] 28334.0 29186.5 29247 28589.0 28703.5 28706.5 29055 28907 30066 30315.0 [5,] 30742.0 31310.0 31381 31470.0 31226.0 31081.0 31061 31114 30828 30418.0 [,11] [,12] [1,] 8193 8251 [2,] 11303 11349 [3,] 21288 21287 [4,] 30195 29877 [5,] 30571 30757 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5154.175 6389.668 13308.49 12964.39 14325.73 14873.80 15507.63 16714.17 [2,] 27239.825 28260.332 34723.51 34377.61 35670.27 35784.20 36300.37 36381.83 [,9] [,10] [,11] [,12] [1,] 8190.605 8523.62 9102.05 9335.842 [2,] 32953.395 33277.38 33473.95 33238.158 $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(7840, 9842.5, 16197, 28334, 30742, 8292, 10875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tbvv1209389419.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,] 452.0 71.0 -974 -244.0 -176.0 -20.0 -385 -286.0 -410 -521.0 -24 -685.0 [2,] 626.0 156.5 -658 -68.5 -139.5 205.5 71 -257.0 -35 -223.0 -24 -59.0 [3,] 864.0 351.0 -345 161.0 182.0 364.0 174 118.5 232 121.5 34 64.5 [4,] 1074.5 560.5 -216 355.0 294.0 499.0 719 305.0 256 256.0 58 420.0 [5,] 1201.0 588.0 89 363.0 476.0 757.0 794 350.0 442 708.0 58 679.0 $n [1] 7 7 7 7 7 7 7 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 596.163 109.7377 -608.95527 -91.90737 -76.8792 188.7265 -212.9751 [2,] 1131.837 592.2623 -81.04473 413.90737 440.8792 539.2735 560.9751 [,8] [,9] [,10] [,11] [,12] [1,] -244.0082 44.2956 -187.4705 -18.89265 -244.4705 [2,] 481.0082 419.7044 430.4705 86.89265 373.4705 $out [1] 6691 -467 1327 186 -318 $group [1] 2 2 4 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(452, 626, 864, 1074.5, 1201, 71, 156.5, 351, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6m72h1209389419.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] [1,] 7840.0 8192.0 11493.0 23671.0 27476.0 29877 28053.0 [2,] 8271.5 9237.5 12372.0 23843.5 28893.5 30580 28252.0 [3,] 8501.0 9975.5 13237.5 25616.5 29460.5 31071 28448.0 [4,] 8731.5 10999.0 14613.0 26859.5 30190.5 31268 29300.5 [5,] 9006.0 11349.0 15542.0 27056.0 30757.0 31470 29876.0 $n [1] 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8291.191 9172.068 12215.36 24240.88 28868.93 30757.2 27862.29 [2,] 8710.809 10778.932 14259.64 26992.12 30052.07 31384.8 29033.71 $out [1] 16197 17325 $group [1] 4 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(7840, 8271.5, 8501, 8731.5, 9006, 8192, 9237.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7py2y1209389419.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,] 20276.33 16197.00 19088.25 [2,] 20286.81 20736.25 19860.38 [3,] 20470.50 22479.50 20316.25 [4,] 20696.29 25163.50 20719.69 [5,] 21028.43 26548.00 20883.75 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 20283.74 20460.2 19924.31 [2,] 20657.26 24498.8 20708.19 $out [1] 18733.14 19578.57 21337.43 $group [1] 1 1 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(20276.3333333333, 20286.8095238095, 20470.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1jaly1209389419.ps tmp/1jaly1209389419.png") > system("convert tmp/2ih381209389419.ps tmp/2ih381209389419.png") > system("convert tmp/3rje81209389419.ps tmp/3rje81209389419.png") > system("convert tmp/4ie8k1209389419.ps tmp/4ie8k1209389419.png") > system("convert tmp/5tbvv1209389419.ps tmp/5tbvv1209389419.png") > system("convert tmp/6m72h1209389419.ps tmp/6m72h1209389419.png") > system("convert tmp/7py2y1209389419.ps tmp/7py2y1209389419.png") > > > proc.time() user system elapsed 1.432 0.951 2.725