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(60747,60194,58401,58280,59246,60363,59486,60288,61064,61128,60793,61681,63587,65952,66995,66366,65038,64644,63404,63654,61635,62560,63514,65319,67256,67334,67931,66922,66512,66495,65767,68454,71116,73792,75737,77046,76729,76567,78036,80147,82512,84873,83387,81732,81449,80647,80680,79230,77543,75689,74454,73085,71606,71043,67799,67936,67596,67730,66928,66809,55559,55167,51834,45337,40839,44921,47745,48088,45971,43752,42504,42367,41333,41358,40150,38294,34220,31910,29516,27291,25732,23261,20671,18158,16021,13587,8757,4977,4025,3711,3613,3241,2300,1659,1085,807,470,296,190,102,89,37,16,4,0,2,2,0,0,0,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] 111 > (np <- floor(n / par1)) [1] 9 > 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 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 60747 63587 67256 76729 77543 55559 41333 16021 470 0 [2,] 60194 65952 67334 76567 75689 55167 41358 13587 296 0 [3,] 58401 66995 67931 78036 74454 51834 40150 8757 190 0 [4,] 58280 66366 66922 80147 73085 45337 38294 4977 102 NA [5,] 59246 65038 66512 82512 71606 40839 34220 4025 89 NA [6,] 60363 64644 66495 84873 71043 44921 31910 3711 37 NA [7,] 59486 63404 65767 83387 67799 47745 29516 3613 16 NA [8,] 60288 63654 68454 81732 67936 48088 27291 3241 4 NA [9,] 61064 61635 71116 81449 67596 45971 25732 2300 0 NA [10,] 61128 62560 73792 80647 67730 43752 23261 1659 2 NA [11,] 60793 63514 75737 80680 66928 42504 20671 1085 2 NA [12,] 61681 65319 77046 79230 66809 42367 18158 807 0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -553 2365 78 -162 -1854 -392 25 -2434 -174 0 [2,] -1793 1043 597 1469 -1235 -3333 -1208 -4830 -106 0 [3,] -121 -629 -1009 2111 -1369 -6497 -1856 -3780 -88 NA [4,] 966 -1328 -410 2365 -1479 -4498 -4074 -952 -13 NA [5,] 1117 -394 -17 2361 -563 4082 -2310 -314 -52 NA [6,] -877 -1240 -728 -1486 -3244 2824 -2394 -98 -21 NA [7,] 802 250 2687 -1655 137 343 -2225 -372 -12 NA [8,] 776 -2019 2662 -283 -340 -2117 -1559 -941 -4 NA [9,] 64 925 2676 -802 134 -2219 -2471 -641 2 NA [10,] -335 954 1945 33 -802 -1248 -2590 -574 0 NA [11,] 888 1805 1309 -1450 -119 -137 -2513 -278 -2 NA [12,] 1906 1937 -317 -1687 -11250 -1034 -2137 -337 0 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/1vhu31291820476.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/2vhu31291820476.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/3vhu31291820476.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/46qbo1291820476.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] [,9] [,10] [,11] [1,] 0 0.0 0.0 102 89 37 16 4 0 2 2 [2,] 16021 13587.0 8757.0 38294 34220 31910 29516 27291 25732 23261 20671 [3,] 58153 57680.5 55117.5 58280 59246 60363 59486 60288 61064 61128 60793 [4,] 67256 67334.0 67931.0 66922 66512 66495 65767 67936 67596 67730 66928 [5,] 77543 76567.0 78036.0 80147 82512 84873 83387 81732 81449 80647 80680 [,12] [1,] 0 [2,] 18158 [3,] 61681 [4,] 66809 [5,] 79230 $n [1] 10 10 10 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 32553.95 30826.36 25551.81 43202.59 42238.88 42148.23 40393.81 38881.63 [2,] 83752.05 84534.64 84683.19 73357.41 76253.12 78577.77 78578.19 81694.37 [,9] [,10] [,11] [,12] [1,] 39015.63 37707.66 36430.98 36058.14 [2,] 83112.37 84548.34 85155.02 87303.86 $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(0, 16021, 58153, 67256, 77543, 0, 13587, 57680.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56qbo1291820476.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] [,8] [,9] [,10] [,11] [,12] [1,] -553 -4830 -3780 -1479 -2310 -3244 -372 -2117 -802 -1248 -1450 -2137 [2,] -553 -1793 -1856 -1479 -394 -1486 -372 -1559 -802 -802 -278 -1687 [3,] -168 -657 -1009 -952 -52 -877 137 -340 2 -335 -119 -337 [4,] 25 597 -121 -13 1117 -98 343 -4 134 33 888 0 [5,] 78 1469 2111 966 2361 -21 802 776 925 954 1805 1937 $n [1] 10 10 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -456.7918 -1851.1393 -1922.76667 -1724.0933 -847.7933 -1608.0133 -239.5667 [2,] 120.7918 537.1393 -95.23333 -179.9067 743.7933 -145.9867 513.5667 [,8] [,9] [,10] [,11] [,12] [1,] -1158.9667 -490.96 -774.7667 -733.0933 -1225.4867 [2,] 478.9667 494.96 104.7667 495.0933 551.4867 $out [1] 2365 -1854 -2434 -6497 2365 -4498 -4074 4082 2824 2687 [11] -1655 -2225 2662 2676 -2219 -2471 1945 -2590 -2513 -11250 $group [1] 1 1 1 3 4 4 4 5 6 7 7 7 8 9 9 9 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-553, -553, -168, 25, 78, -4830, -1793, -657, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yha81291820476.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] [,7] [,8] [,9] [,10] [1,] 58280.0 61635.0 65767.0 76567.0 66809.0 40839 18158.0 807.0 0.0 0 [2,] 59366.0 63459.0 66717.0 78633.0 67663.0 43128 24496.5 1979.5 2.0 0 [3,] 60325.5 64149.0 67632.5 80663.5 69489.5 45654 30713.0 3662.0 26.5 0 [4,] 60928.5 65635.5 72454.0 82122.0 73769.5 49961 39222.0 6867.0 146.0 0 [5,] 61681.0 66995.0 77046.0 84873.0 77543.0 55559 41358.0 13587.0 296.0 0 $n [1] 12 12 12 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 59612.83 63156.28 65015.82 79072.14 66704.28 42537.42 23996.6 1432.778 [2,] 61038.17 65141.72 70249.18 82254.86 72274.72 48770.58 37429.4 5891.222 [,9] [,10] [1,] -39.17937 0 [2,] 92.17937 0 $out [1] 16021 470 $group [1] 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(58280, 59366, 60325.5, 60928.5, 61681, 61635, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yha81291820476.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,] 44674.80 55117.5 42151.12 [2,] 45740.61 58216.5 43779.31 [3,] 46188.56 59887.0 46079.75 [4,] 46934.44 60928.5 48422.00 [5,] 48167.78 61681.0 52608.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 45644.04 58650.04 43962.19 [2,] 46733.07 61123.96 48197.31 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(44674.8, 45740.6111111111, 46188.5555555556, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1vhu31291820476.ps tmp/1vhu31291820476.png",intern=TRUE)) character(0) > try(system("convert tmp/2vhu31291820476.ps tmp/2vhu31291820476.png",intern=TRUE)) character(0) > try(system("convert tmp/3vhu31291820476.ps tmp/3vhu31291820476.png",intern=TRUE)) character(0) > try(system("convert tmp/46qbo1291820476.ps tmp/46qbo1291820476.png",intern=TRUE)) character(0) > try(system("convert tmp/56qbo1291820476.ps tmp/56qbo1291820476.png",intern=TRUE)) character(0) > try(system("convert tmp/6yha81291820476.ps tmp/6yha81291820476.png",intern=TRUE)) character(0) > try(system("convert tmp/7yha81291820476.ps tmp/7yha81291820476.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.228 0.991 3.245