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(14731798.37,16471559.62,15213975.95,17637387.4,17972385.83,16896235.55,16697955.94,19691579.52,15930700.75,17444615.98,17699369.88,15189796.81,15672722.75,17180794.3,17664893.45,17862884.98,16162288.88,17463628.82,16772112.17,19106861.48,16721314.25,18161267.85,18509941.2,17802737.97,16409869.75,17967742.04,20286602.27,19537280.81,18021889.62,20194317.23,19049596.62,20244720.94,21473302.24,19673603.19,21053177.29,20159479.84,18203628.31,21289464.94,20432335.71,17180395.07,15816786.32,15071819.75,14521120.61,15668789.39,14346884.11,13881008.13,15465943.69,14238232.92,13557713.21,16127590.29,16793894.2,16014007.43,16867867.15,16014583.21,15878594.85,18664899.14,17962530.06,17332692.2,19542066.35,17203555.19) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 14731798 15672723 16409870 18203628 13557713 NA [2,] 16471560 17180794 17967742 21289465 16127590 NA [3,] 15213976 17664893 20286602 20432336 16793894 NA [4,] 17637387 17862885 19537281 17180395 16014007 NA [5,] 17972386 16162289 18021890 15816786 16867867 NA [6,] 16896236 17463629 20194317 15071820 16014583 NA [7,] 16697956 16772112 19049597 14521121 15878595 NA [8,] 19691580 19106861 20244721 15668789 18664899 NA [9,] 15930701 16721314 21473302 14346884 17962530 NA [10,] 17444616 18161268 19673603 13881008 17332692 NA [11,] 17699370 18509941 21053177 15465944 19542066 NA [12,] 15189797 17802738 20159480 14238233 17203555 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1739761.2 1508071.6 1557872.3 3085836.6 2569877.1 NA [2,] -1257583.7 484099.1 2318860.2 -857129.2 666303.9 NA [3,] 2423411.4 197991.5 -749321.5 -3251940.6 -779886.8 NA [4,] 334998.4 -1700596.1 -1515391.2 -1363608.8 853859.7 NA [5,] -1076150.3 1301339.9 2172427.6 -744966.6 -853283.9 NA [6,] -198279.6 -691516.7 -1144720.6 -550699.1 -135988.4 NA [7,] 2993623.6 2334749.3 1195124.3 1147668.8 2786304.3 NA [8,] -3760878.8 -2385547.2 1228581.3 -1321905.3 -702369.1 NA [9,] 1513915.2 1439953.6 -1799699.0 -465876.0 -629837.9 NA [10,] 254753.9 348673.3 1379574.1 1584935.6 2209374.2 NA [11,] -2509573.1 -707203.2 -893697.4 -1227710.8 -2338511.2 NA [12,] 482925.9 -1392868.2 -1955851.5 -680519.7 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/11geo1291131098.ps",horizontal=F,onefile=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/21geo1291131098.ps",horizontal=F,onefile=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/3upvr1291131098.ps",horizontal=F,onefile=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/4upvr1291131098.ps",horizontal=F,onefile=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] [1,] 13557713 16127590 15213976 17180395 15816786 15071820 15878595 18664899 [2,] 14731798 16471560 16793894 17180395 16162289 16014583 15878595 18664899 [3,] 15672723 17180794 17664893 17637387 16867867 16896236 16697956 19106861 [4,] 16409870 17967742 20286602 17862885 17972386 17463629 16772112 19691580 [5,] 18203628 17967742 20432336 17862885 18021890 17463629 16772112 20244721 [,9] [,10] [,11] [,12] [1,] 14346884 17332692 15465944 14238233 [2,] 15930701 17332692 17699370 15189797 [3,] 16721314 17444616 18509941 17203555 [4,] 17962530 18161268 19542066 17802738 [5,] 17962530 18161268 21053177 20159480 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 14487002 16123596 15196955 17155142 15588857 15872344 16066599 18381412 [2,] 16858444 18237993 20132832 18119633 18146877 17920128 17329313 19832311 [,9] [,10] [,11] [,12] [1,] 15285629 16859147 17207897 15357258 [2,] 18157000 18030085 19811986 19049853 $out [1] 21289465 19537281 16014007 20194317 19049597 14521121 15668789 21473302 [9] 19673603 13881008 $group [1] 2 4 4 6 7 7 8 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(13557713.21, 14731798.37, 15672722.75, 16409869.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5upvr1291131098.ps",horizontal=F,onefile=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] [1,] 1508072 -1257583.7 -779886.8 -1700596.1 -1076150.3 -1144720.6 1147669 [2,] 1557872 -857129.2 -779886.8 -1515391.2 -853283.9 -691516.7 1195124 [3,] 1739761 484099.1 -749321.5 -1363608.8 -744966.6 -550699.1 2334749 [4,] 2569877 666303.9 197991.5 334998.4 1301339.9 -198279.6 2786304 [5,] 3085837 2318860.2 197991.5 853859.7 2172427.6 -135988.4 2993624 [,8] [,9] [,10] [,11] [,12] [1,] -3760878.8 -1799699.0 254753.9 -2509573.1 -1955851.53 [2,] -2385547.2 -629837.9 348673.3 -2338511.2 -1674359.88 [3,] -1321905.3 -465876.0 1379574.1 -1227710.8 -1036693.96 [4,] -702369.1 1439953.6 1584935.6 -893697.4 -98796.88 [5,] 1228581.3 1513915.2 2209374.2 -707203.2 482925.94 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1024681 -592354.9 -1440287.80 -2671089.39 -2267418.4 -899219.2 1210426 [2,] 2454841 1560553.2 -58355.12 -56128.11 777485.2 -202179.1 3459073 [,8] [,9] [,10] [,11] [,12] [1,] -2511234.7 -1928385.4 506034.3 -2248612.5 -2281388.7 [2,] -132575.8 996633.5 2253113.9 -206809.0 208000.8 $out [1] 2423411 -3251941 $group [1] 3 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1508071.55, 1557872.29, 1739761.25, 2569877.08, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6myvb1291131098.ps",horizontal=F,onefile=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] [1,] 14731798 15672723 16409870 13881008 15878595 NA [2,] 15572338 16746713 18535743 14434002 16014295 NA [3,] 16797096 17564261 19916542 15567367 16830881 NA [4,] 17668379 18012076 20265662 17692012 17647611 NA [5,] 19691580 19106861 21473302 21289465 19542066 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 15841078 16987120 19127514 14081367 16085914 NA [2,] 17753114 18141402 20705569 17053366 17575847 NA $out [1] 13557713 $group [1] 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(14731798.37, 15572338.35, 16797095.745, 17668378.64, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7myvb1291131098.ps",horizontal=F,onefile=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,] 15715146 15672723 15570834 [2,] 16943502 16794591 16617687 [3,] 17292792 17192175 17143494 [4,] 17942885 17651140 18143614 [5,] 18675370 18509941 19178239 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16836966 16801497 16447508 [2,] 17748617 17582853 17839480 $out [1] 19106861 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(15715146.478, 16943502.053, 17292791.876, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/11geo1291131098.ps tmp/11geo1291131098.png",intern=TRUE)) character(0) > try(system("convert tmp/21geo1291131098.ps tmp/21geo1291131098.png",intern=TRUE)) character(0) > try(system("convert tmp/3upvr1291131098.ps tmp/3upvr1291131098.png",intern=TRUE)) character(0) > try(system("convert tmp/4upvr1291131098.ps tmp/4upvr1291131098.png",intern=TRUE)) character(0) > try(system("convert tmp/5upvr1291131098.ps tmp/5upvr1291131098.png",intern=TRUE)) character(0) > try(system("convert tmp/6myvb1291131098.ps tmp/6myvb1291131098.png",intern=TRUE)) character(0) > try(system("convert tmp/7myvb1291131098.ps tmp/7myvb1291131098.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.187 0.946 3.189