R version 2.10.1 (2009-12-14) 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(40801,49081,52431,59650,75428,78705,68870,70641,80074,76464,69976,92917,92559,73981,71107,96942,86270,69610,57768,80077,71454,70382,69881,84530,79322,80181,82137,88439,91575,82909,73282,94089,108112,95653,85273,105093,102275,99308,79687,93263,114918,103374,65124,104045,101183,95492,85035,90692,107486,98179,82551,106804,110898,89950,65184,95357,98280,92146,77874,100039,104777,102341,71316,88838,85457,70784,70522,88629,88452,98886,79601,108135,113835,101617,68698,79182,86003,84165,68550,90385,100368,99081,81288,103491,111695,82504,62237,78249,92341,84412,75102,90461,106451,98379,72615,98367,116949,95832,68060,83923,87653,78054,57566,78784,88916,84662,63442,77773,88102,87972,61790,95276,104418,95420,82141,104064,96287,78426,59111,76837,76615,65860,57703,68656,77955,65856,60947,69885,80550,73694,67538,76326,84727) > 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] 133 > (np <- floor(n / par1)) [1] 11 > 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] 12 11 11 11 11 11 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 40801 92559 79322 102275 107486 104777 113835 111695 116949 88102 76615 [2,] 49081 73981 80181 99308 98179 102341 101617 82504 95832 87972 65860 [3,] 52431 71107 82137 79687 82551 71316 68698 62237 68060 61790 57703 [4,] 59650 96942 88439 93263 106804 88838 79182 78249 83923 95276 68656 [5,] 75428 86270 91575 114918 110898 85457 86003 92341 87653 104418 77955 [6,] 78705 69610 82909 103374 89950 70784 84165 84412 78054 95420 65856 [7,] 68870 57768 73282 65124 65184 70522 68550 75102 57566 82141 60947 [8,] 70641 80077 94089 104045 95357 88629 90385 90461 78784 104064 69885 [9,] 80074 71454 108112 101183 98280 88452 100368 106451 88916 96287 80550 [10,] 76464 70382 95653 95492 92146 98886 99081 98379 84662 78426 73694 [11,] 69976 69881 85273 85035 77874 79601 81288 72615 63442 59111 67538 [12,] 92917 84530 105093 90692 100039 108135 103491 98367 77773 76837 76326 [,12] [1,] 84727 [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 8280 -18578 859 -2967 -9307 -2436 -12218 -29191 -21117 -130 [2,] 3350 -2874 1956 -19621 -15628 -31025 -32919 -20267 -27772 -26182 [3,] 7219 25835 6302 13576 24253 17522 10484 16012 15863 33486 [4,] 15778 -10672 3136 21655 4094 -3381 6821 14092 3730 9142 [5,] 3277 -16660 -8666 -11544 -20948 -14673 -1838 -7929 -9599 -8998 [6,] -9835 -11842 -9627 -38250 -24766 -262 -15615 -9310 -20488 -13279 [7,] 1771 22309 20807 38921 30173 18107 21835 15359 21218 21923 [8,] 9433 -8623 14023 -2862 2923 -177 9983 15990 10132 -7777 [9,] -3610 -1072 -12459 -5691 -6134 10434 -1287 -8072 -4254 -17861 [10,] -6488 -501 -10380 -10457 -14272 -19285 -17793 -25764 -21220 -19315 [11,] 22941 14649 19820 5657 22165 28534 22203 25752 14331 17726 [12,] -358 -5208 -2818 16794 4738 5700 8204 18582 10329 -222 [,11] [,12] [1,] -10755 NA [2,] -8157 NA [3,] 10953 NA [4,] 9299 NA [5,] -12099 NA [6,] -4909 NA [7,] 8938 NA [8,] 10665 NA [9,] -6856 NA [10,] -6156 NA [11,] 8788 NA [12,] 8401 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/rcomp/tmp/1anzy1272030253.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/rcomp/tmp/2anzy1272030253.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/rcomp/tmp/3anzy1272030253.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/rcomp/tmp/4lwg11272030253.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] [1,] 40801.0 49081.0 52431.0 59650.0 75428.0 65856 57566.0 69885.0 [2,] 82024.5 77081.0 62013.5 78715.5 85730.0 74419 63035.5 79430.5 [3,] 97417.0 87972.0 68698.0 88439.0 87653.0 82909 68550.0 90385.0 [4,] 109590.5 98743.5 75501.5 94269.5 98379.5 87181 71902.0 94723.0 [5,] 116949.0 102341.0 82551.0 106804.0 114918.0 103374 82141.0 104064.0 [,9] [,10] [,11] [,12] [1,] 71454.0 70382 59111.0 76326.0 [2,] 84501.0 77445 68709.5 81151.5 [3,] 96287.0 92146 72615.0 92917.0 [4,] 100775.5 97016 80444.5 101765.0 [5,] 108112.0 99081 85273.0 108135.0 $n [1] 12 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 84843.96 77652.25 62272.48 81029.26 81626.93 76829.34 64326.11 83099.84 [2,] 109990.04 98291.75 75123.52 95848.74 93679.07 88988.66 72773.89 97670.16 [,9] [,10] [,11] [,12] [1,] 88534.02 82822.61 67024.59 83096.98 [2,] 104039.98 101469.39 78205.41 102737.02 $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(40801, 82024.5, 97417, 109590.5, 116949, 49081, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5lwg11272030253.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] [1,] -29191 -32919.0 6302.0 -3381.0 -20948.0 -24766.0 8938 -8623.0 -12459.0 [2,] -15398 -26977.0 10718.5 3433.0 -13386.0 -18051.5 16733 -1519.5 -7464.0 [3,] -9307 -19621.0 15863.0 6821.0 -9599.0 -11842.0 21218 9433.0 -5691.0 [4,] -1283 -5515.5 20887.5 11695.5 -8297.5 -9468.5 22116 10398.5 -2448.5 [5,] 8280 3350.0 33486.0 21655.0 -1838.0 -262.0 30173 15990.0 -1072.0 [,10] [,11] [,12] [1,] -25764 5657 -5208 [2,] -19300 14490 -290 [3,] -14272 19820 5700 [4,] -8434 22572 9365 [5,] -501 28534 18582 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -16031.216 -29845 11018.61 2884.845 -12023.1 -15930.838 18653.60 [2,] -2582.784 -9397 20707.39 10757.155 -7174.9 -7753.162 23782.40 [,8] [,9] [,10] [,11] [,12] [1,] 3755.409 -8080.324 -19448.431 15969.83 1100.475 [2,] 15110.591 -3301.676 -9095.569 23670.17 10299.525 $out [1] -10672 3277 -38250 1771 38921 10434 -17861 $group [1] 4 5 6 7 7 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-29191, -15398, -9307, -1283, 8280, -32919, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6vngm1272030253.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,] 40801.0 57768.0 73282 79687.0 65184.0 70522.0 68550.0 62237.0 [2,] 56040.5 70131.5 81159 87863.5 86250.5 75458.5 80235.0 76675.5 [3,] 70308.5 72717.5 86856 97400.0 96768.0 88540.5 88194.0 87436.5 [4,] 77584.5 85400.0 94871 102824.5 103421.5 100613.5 100992.5 98373.0 [5,] 92917.0 96942.0 108112 114918.0 110898.0 108135.0 113835.0 111695.0 [,9] [,10] [,11] [,12] [1,] 57566.0 59111.0 57703.0 84727 [2,] 72916.5 77631.5 65858.0 84727 [3,] 81353.5 88037.0 69270.5 84727 [4,] 88284.5 95853.5 76470.5 84727 [5,] 95832.0 104418.0 80550.0 84727 $n [1] 12 12 12 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 60482.14 65753.43 80601.86 90576.19 88936.2 77067.14 78726.36 77540.12 [2,] 80134.86 79681.57 93110.14 104223.81 104599.8 100013.86 97661.64 97332.88 [,9] [,10] [,11] [,12] [1,] 74344.05 79725.82 64430.07 84727 [2,] 88362.95 96348.18 74110.93 84727 $out [1] 65124 116949 $group [1] 4 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(40801, 56040.5, 70308.5, 77584.5, 92917, 57768, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7vngm1272030253.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,] 67732.36 68550.0 67468.75 [2,] 77948.77 77762.0 77688.50 [3,] 86476.68 88205.5 87153.62 [4,] 92141.64 92531.5 91756.50 [5,] 93261.92 97417.0 95957.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 80003.22 81469.03 80737.12 [2,] 92950.14 94941.97 93570.13 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(67732.3636363636, 77948.7727272727, 86476.6818181818, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1anzy1272030253.ps tmp/1anzy1272030253.png",intern=TRUE)) character(0) > try(system("convert tmp/2anzy1272030253.ps tmp/2anzy1272030253.png",intern=TRUE)) character(0) > try(system("convert tmp/3anzy1272030253.ps tmp/3anzy1272030253.png",intern=TRUE)) character(0) > try(system("convert tmp/4lwg11272030253.ps tmp/4lwg11272030253.png",intern=TRUE)) character(0) > try(system("convert tmp/5lwg11272030253.ps tmp/5lwg11272030253.png",intern=TRUE)) character(0) > try(system("convert tmp/6vngm1272030253.ps tmp/6vngm1272030253.png",intern=TRUE)) character(0) > try(system("convert tmp/7vngm1272030253.ps tmp/7vngm1272030253.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.650 1.600 2.831