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(22577.0,22792.0,23932.0,22321.0,21102.0,22824.0,23129.0,23604.0,24746.0,26911.0,27909.0,28922.0,29800.0,30506.0,30771.0,31976.0,33749.0,34371.0,33246.0,35072.0,35762.0,36179.0,37433.0,38298.0,37559.0,37511.0,39364.0,40084.0,42712.0,41938.0,40799.0,38568.0,41134.0,43955.0,43607.0,45082.0,46464.0,46496.0,46774.0,47890.0,45740.0,42660.0,39190.0,39010.0,41150.0,42530.0,44710.0,46620.0,44560.0,46120.0,48060.0,51970.0,57720.0,63490.0,65370.0,64260.0,58700.0,58630.0,59803.0,59266.0,60570.0,63062.0,63846.0,64726.0,63460.0,65220.0,66659.0,66871.0,65672.0,67182.0,68292.0,68318.0,69530.0,70500.0,72044.0,73811.0,76018.0,77818.0,79455.0,81408.0,81815.0) > 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] 81 > (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 7 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 22577 29800 37559 46464 44560 60570 69530 [2,] 22792 30506 37511 46496 46120 63062 70500 [3,] 23932 30771 39364 46774 48060 63846 72044 [4,] 22321 31976 40084 47890 51970 64726 73811 [5,] 21102 33749 42712 45740 57720 63460 76018 [6,] 22824 34371 41938 42660 63490 65220 77818 [7,] 23129 33246 40799 39190 65370 66659 79455 [8,] 23604 35072 38568 39010 64260 66871 81408 [9,] 24746 35762 41134 41150 58700 65672 81815 [10,] 26911 36179 43955 42530 58630 67182 NA [11,] 27909 37433 43607 44710 59803 68292 NA [12,] 28922 38298 45082 46620 59266 68318 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 215 706 -48 32 1560 2492 970 [2,] 1140 265 1853 278 1940 784 1544 [3,] -1611 1205 720 1116 3910 880 1767 [4,] -1219 1773 2628 -2150 5750 -1266 2207 [5,] 1722 622 -774 -3080 5770 1760 1800 [6,] 305 -1125 -1139 -3470 1880 1439 1637 [7,] 475 1826 -2231 -180 -1110 212 1953 [8,] 1142 690 2566 2140 -5560 -1199 407 [9,] 2165 417 2821 1380 -70 1510 NA [10,] 998 1254 -348 2180 1173 1110 NA [11,] 1013 865 1475 1910 -537 26 NA [12,] 878 -739 1382 -2060 1304 1212 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/1y0ht1272287332.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/29ryw1272287332.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/39ryw1272287332.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/49ryw1272287332.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] [1,] 22577.0 22792.0 23932.0 22321 21102.0 22824.0 23129.0 23604.0 24746 [2,] 33679.5 34008.5 35067.5 36030 38230.5 38154.5 36218.0 36820.0 38448 [3,] 44560.0 46120.0 46774.0 47890 45740.0 42660.0 40799.0 39010.0 41150 [4,] 53517.0 54779.0 55953.0 58348 60590.0 64355.0 66014.5 65565.5 62186 [5,] 69530.0 70500.0 72044.0 73811 76018.0 77818.0 79455.0 81408.0 81815 [,10] [,11] [,12] [1,] 26911.0 27909.0 28922 [2,] 36179.0 37433.0 38298 [3,] 43242.5 44158.5 45851 [4,] 58630.0 59803.0 59266 [5,] 67182.0 68292.0 68318 $n [1] 7 7 7 7 7 7 7 7 7 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 32713.37 33716.19 34301.52 34562.05 32387.27 27013.48 23005.01 21843.65 [2,] 56406.63 58523.81 59246.48 61217.95 59092.73 58306.52 58592.99 56176.35 [,9] [,10] [,11] [,12] [1,] 26974.05 28760.88 29729.13 32325.96 [2,] 55325.95 57724.12 58587.87 59376.04 $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(22577, 33679.5, 44560, 53517, 69530, 22792, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5j1gh1272287332.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] [1,] -48.0 265.0 720 -2150.0 -774 -3470 -2231.0 -1199 -70 998.0 -537 [2,] 123.5 531.0 800 -1242.5 -76 -1132 -645.0 -396 417 998.0 26 [3,] 706.0 1140.0 1116 1773.0 1722 305 212.0 690 1445 1141.5 939 [4,] 1265.0 1698.5 1486 2417.5 1780 1538 1150.5 1641 2165 1254.0 1475 [5,] 2492.0 1940.0 1767 5750.0 1800 1880 1953.0 2566 2821 1254.0 1910 [,12] [1,] -2060 [2,] -739 [3,] 1045 [4,] 1304 [5,] 1382 $n [1] 7 7 7 7 7 7 7 7 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 24.31462 442.7878 706.3319 -412.6930 613.6267 -1289.481 -860.2436 [2,] 1387.68538 1837.2122 1525.6681 3958.6930 2830.3733 1899.481 1284.2436 [,8] [,9] [,10] [,11] [,12] [1,] -526.4635 317.4835 976.3717 4.348199 -272.801 [2,] 1906.4635 2572.5165 1306.6283 1873.651801 2362.801 $out [1] -1611 3910 -3080 5770 -5560 -348 2180 $group [1] 3 3 5 5 8 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-48, 123.5, 706, 1265, 2492, 265, 531, 1140, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6j1gh1272287332.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,] 21102.0 29800.0 37511.0 39010 44560.0 60570.0 69530 [2,] 22684.5 31373.5 38966.0 41840 50015.0 63653.0 72044 [3,] 23366.5 34060.0 40966.5 45225 58665.0 65446.0 76018 [4,] 25828.5 35970.5 43159.5 46558 61646.5 67026.5 79455 [5,] 28922.0 38298.0 45082.0 47890 65370.0 68318.0 81815 $n [1] 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 21932.5 31963.28 39053.82 43073.09 53359.8 63907.32 72114.87 [2,] 24800.5 36156.72 42879.18 47376.91 63970.2 66984.68 79921.13 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(21102, 22684.5, 23366.5, 25828.5, 28922, 29800, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7csx21272287332.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,] 44437.14 39010.00 43598.25 [2,] 46148.27 41905.00 45937.12 [3,] 47645.36 44359.25 47776.19 [4,] 49726.36 45985.50 50716.62 [5,] 49854.14 47890.00 51254.75 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 46013.37 42498.11 45596.23 [2,] 49277.34 46220.39 49956.15 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(44437.1428571429, 46148.2738095238, 47645.3571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1y0ht1272287332.ps tmp/1y0ht1272287332.png",intern=TRUE)) character(0) > try(system("convert tmp/29ryw1272287332.ps tmp/29ryw1272287332.png",intern=TRUE)) character(0) > try(system("convert tmp/39ryw1272287332.ps tmp/39ryw1272287332.png",intern=TRUE)) character(0) > try(system("convert tmp/49ryw1272287332.ps tmp/49ryw1272287332.png",intern=TRUE)) character(0) > try(system("convert tmp/5j1gh1272287332.ps tmp/5j1gh1272287332.png",intern=TRUE)) character(0) > try(system("convert tmp/6j1gh1272287332.ps tmp/6j1gh1272287332.png",intern=TRUE)) character(0) > try(system("convert tmp/7csx21272287332.ps tmp/7csx21272287332.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.190 0.945 1.513