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(8166,2322,2924,5209,5597,5616,5764,5854,6019,6047,6082,6251,6576,6820,7024,7102,7107,7237,7630,7842,8086,8201,8323,9016,9077,9115,9230,9535,9565,9807,9815,9999,10176,10416,10439,10737,10790,11196,11221,11340,11356,11772,11836,11926,12013,12132,12178,12382,12448,12543,12662,12692,12767,13136,13145,13330,13381,13533,14176,14314,14444,15092,15130,15550,15557,15874,15892,16364,16379,16668,16713,16830,17368,17808,17846,18137,18504,18898,18938,19139,19573,19796,19845,21461) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 8166 6576 9077 10790 12448 14444 17368 NA [2,] 2322 6820 9115 11196 12543 15092 17808 NA [3,] 2924 7024 9230 11221 12662 15130 17846 NA [4,] 5209 7102 9535 11340 12692 15550 18137 NA [5,] 5597 7107 9565 11356 12767 15557 18504 NA [6,] 5616 7237 9807 11772 13136 15874 18898 NA [7,] 5764 7630 9815 11836 13145 15892 18938 NA [8,] 5854 7842 9999 11926 13330 16364 19139 NA [9,] 6019 8086 10176 12013 13381 16379 19573 NA [10,] 6047 8201 10416 12132 13533 16668 19796 NA [11,] 6082 8323 10439 12178 14176 16713 19845 NA [12,] 6251 9016 10737 12382 14314 16830 21461 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -5844 244 38 406 95 648 440 NA [2,] 602 204 115 25 119 38 38 NA [3,] 2285 78 305 119 30 420 291 NA [4,] 388 5 30 16 75 7 367 NA [5,] 19 130 242 416 369 317 394 NA [6,] 148 393 8 64 9 18 40 NA [7,] 90 212 184 90 185 472 201 NA [8,] 165 244 177 87 51 15 434 NA [9,] 28 115 240 119 152 289 223 NA [10,] 35 122 23 46 643 45 49 NA [11,] 169 693 298 204 138 117 1616 NA [12,] 325 61 53 66 130 538 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/freestat/rcomp/tmp/1jt641240509073.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/freestat/rcomp/tmp/26i5z1240509073.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/freestat/rcomp/tmp/3sqj51240509073.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/freestat/rcomp/tmp/49ttu1240509073.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,] 6576.0 2322.0 2924 5209.0 5597 5616 5764.0 5854.0 6019 6047.0 [2,] 8621.5 7967.5 8127 8318.5 8336 8522 8722.5 8920.5 9131 9308.5 [3,] 10790.0 11196.0 11221 11340.0 11356 11772 11836.0 11926.0 12013 12132.0 [4,] 13446.0 13817.5 13896 14121.0 14162 14505 14518.5 14847.0 14880 15100.5 [5,] 17368.0 17808.0 17846 18137.0 18504 18898 18938.0 19139.0 19573 19796.0 [,11] [,12] [1,] 6082.0 6251.0 [2,] 9381.0 9876.5 [3,] 12178.0 12382.0 [4,] 15444.5 15572.0 [5,] 19845.0 21461.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7908.886 7702.474 7775.846 7874.84 7876.807 8199.049 8374.722 [2,] 13671.114 14689.526 14666.154 14805.16 14835.193 15344.951 15297.278 [,8] [,9] [,10] [,11] [,12] [1,] 8386.79 8579.79 8673.111 8556.976 8980.74 [2,] 15465.21 15446.21 15590.889 15799.024 15783.26 $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(6576, 8621.5, 10790, 13446, 17368, 2322, 7967.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5iamc1240509073.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,] 38.0 25.0 30.0 5.0 19.0 8.0 90.0 15.0 28.0 23.0 117.0 53 [2,] 66.5 38.0 98.5 11.5 186.0 13.5 137.0 69.0 117.0 40.0 153.5 61 [3,] 244.0 115.0 291.0 30.0 317.0 40.0 185.0 165.0 152.0 46.0 204.0 98 [4,] 423.0 161.5 362.5 221.0 381.5 106.0 206.5 210.5 231.5 85.5 495.5 325 [5,] 648.0 204.0 420.0 388.0 416.0 148.0 212.0 244.0 289.0 122.0 693.0 538 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 31.10395 41.24779 133.3435 -95.11002 200.2506 -15.23951 143.4957 [2,] 456.89605 188.75221 448.6565 155.11002 433.7494 95.23951 226.5043 [,8] [,9] [,10] [,11] [,12] [1,] 80.49848 83.62245 18.82813 -0.2368826 -72.28853 [2,] 249.50152 220.37755 73.17187 408.2368826 268.28853 $out [1] -5844 602 2285 393 472 434 643 1616 $group [1] 1 2 3 6 7 8 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(38, 66.5, 244, 423, 648, 25, 38, 115, 161.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6iypy1240509073.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] [1,] 5209.0 6576.0 9077.0 10790.0 12448.0 14444.0 17368.0 NA [2,] 5403.0 7063.0 9382.5 11280.5 12677.0 15340.0 17991.5 NA [3,] 5809.0 7433.5 9811.0 11804.0 13140.5 15883.0 18918.0 NA [4,] 6064.5 8143.5 10296.0 12072.5 13457.0 16523.5 19684.5 NA [5,] 6251.0 9016.0 10737.0 12382.0 14314.0 16830.0 21461.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5507.285 6940.677 9394.347 11442.76 12784.74 15343.20 18145.81 NA [2,] 6110.715 7926.323 10227.653 12165.24 13496.26 16422.80 19690.19 NA $out [1] 8166 2322 2924 $group [1] 1 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(5209, 5403, 5809, 6064.5, 6251, 6576, 7063, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/72swl1240509073.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,] 10699.43 10790.0 10892.50 [2,] 11316.71 11280.5 11126.75 [3,] 11811.43 11804.0 11567.00 [4,] 12315.71 12072.5 12105.00 [5,] 12998.71 12382.0 12724.25 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11355.78 11442.76 11120.81 [2,] 12267.08 12165.24 12013.19 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10699.4285714286, 11316.7142857143, 11811.4285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1jt641240509073.ps tmp/1jt641240509073.png") > system("convert tmp/26i5z1240509073.ps tmp/26i5z1240509073.png") > system("convert tmp/3sqj51240509073.ps tmp/3sqj51240509073.png") > system("convert tmp/49ttu1240509073.ps tmp/49ttu1240509073.png") > system("convert tmp/5iamc1240509073.ps tmp/5iamc1240509073.png") > system("convert tmp/6iypy1240509073.ps tmp/6iypy1240509073.png") > system("convert tmp/72swl1240509073.ps tmp/72swl1240509073.png") > > > proc.time() user system elapsed 1.838 1.437 2.224