R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(87497,83111,84724,89318,96748,99126,93244,72496,72613,76909,79941,82868,85460,85476,87479,93132,102518,105293,100846,79604,78195,83641,87600,92183,93855,94324,91432,95963,104253,107357,101691,81145,77793,83269,84186,84646,84420,82497,80320,83799,90305,93774,89899,69029,66618,73562,74472,79596,82303,82653,82336,89727,96549,102394,97088,73993,75956,81693,83570,89037,93118,92657,97347,106556,117460,118711,113228,90015,88796,90687,92497,96945,98658) > 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] 73 > (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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 87497 85460 93855 84420 82303 93118 98658 [2,] 83111 85476 94324 82497 82653 92657 NA [3,] 84724 87479 91432 80320 82336 97347 NA [4,] 89318 93132 95963 83799 89727 106556 NA [5,] 96748 102518 104253 90305 96549 117460 NA [6,] 99126 105293 107357 93774 102394 118711 NA [7,] 93244 100846 101691 89899 97088 113228 NA [8,] 72496 79604 81145 69029 73993 90015 NA [9,] 72613 78195 77793 66618 75956 88796 NA [10,] 76909 83641 83269 73562 81693 90687 NA [11,] 79941 87600 84186 74472 83570 92497 NA [12,] 82868 92183 84646 79596 89037 96945 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4386 16 469 -1923 350 -461 NA [2,] 1613 2003 -2892 -2177 -317 4690 NA [3,] 4594 5653 4531 3479 7391 9209 NA [4,] 7430 9386 8290 6506 6822 10904 NA [5,] 2378 2775 3104 3469 5845 1251 NA [6,] -5882 -4447 -5666 -3875 -5306 -5483 NA [7,] -20748 -21242 -20546 -20870 -23095 -23213 NA [8,] 117 -1409 -3352 -2411 1963 -1219 NA [9,] 4296 5446 5476 6944 5737 1891 NA [10,] 3032 3959 917 910 1877 1810 NA [11,] 2927 4583 460 5124 5467 4448 NA [12,] 2592 1672 -226 2707 4081 1713 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/wessaorg/rcomp/tmp/15jdq1331538189.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/wessaorg/rcomp/tmp/2h2oi1331538189.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/wessaorg/rcomp/tmp/3n6m61331538189.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/wessaorg/rcomp/tmp/4lytb1331538189.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] [1,] 82303.0 82497.0 80320.0 83799.0 90305 93774.0 89899 69029.0 66618.0 [2,] 84940.0 82653.0 82336.0 89318.0 96549 99126.0 93244 72496.0 72613.0 [3,] 87497.0 84293.5 86101.5 91429.5 99633 103843.5 98967 76798.5 76874.5 [4,] 93486.5 92657.0 91432.0 95963.0 104253 107357.0 101691 81145.0 78195.0 [5,] 98658.0 94324.0 97347.0 95963.0 104253 118711.0 113228 90015.0 78195.0 [,10] [,11] [,12] [1,] 73562 74472 79596.0 [2,] 76909 79941 82868.0 [3,] 82481 83878 86841.5 [4,] 83641 87600 92183.0 [5,] 90687 92497 96945.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 82393.17 77840.6 80234.29 87143.26 94663.67 98534.24 93518.41 71219.62 [2,] 92600.83 90746.4 91968.71 95715.74 104602.33 109152.76 104415.59 82377.38 [,9] [,10] [,11] [,12] [1,] 73273.93 78138.64 78937.7 80833.02 [2,] 80475.07 86823.36 88818.3 92849.98 $out [1] 106556 117460 88796 $group [1] 4 5 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(82303, 84940, 87497, 93486.5, 98658, 82497, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5zblq1331538189.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] [1,] -4386.0 -2892 3479.0 6506 1251.0 -5882.0 -23213 -3352 4296 910.0 460.0 [2,] -1923.0 -2177 4531.0 6822 2378.0 -5666.0 -23095 -2411 4296 917.0 2927.0 [3,] -222.5 648 5123.5 7860 2939.5 -5394.5 -21056 -1314 5461 1843.5 4515.5 [4,] 350.0 2003 7391.0 9386 3469.0 -4447.0 -20748 117 5737 3032.0 5124.0 [5,] 469.0 4690 9209.0 10904 3469.0 -3875.0 -20546 1963 6944 3959.0 5467.0 [,12] [1,] 1672.0 [2,] 1672.0 [3,] 2152.5 [4,] 2707.0 [5,] 4081.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1688.658 -2048.235 3278.708 6206.137 2235.77 -6180.794 -22569.89 [2,] 1243.658 3344.235 6968.292 9513.863 3643.23 -4608.206 -19542.11 [,8] [,9] [,10] [,11] [,12] [1,] -2944.6417 4531.508 479.2567 3098.364 1484.892 [2,] 316.6417 6390.492 3207.7433 5932.636 2820.108 $out [1] 5845 1891 -226 $group [1] 5 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4386, -1923, -222.5, 350, 469, -2892, -2177, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6djgm1331538189.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] [1,] 72496.0 78195.0 77793.0 66618.0 73993.0 88796.0 98658 [2,] 78425.0 84550.5 83727.5 74017.0 81998.0 91592.0 98658 [3,] 83917.5 87539.5 92643.5 81408.5 83111.5 95031.5 98658 [4,] 91281.0 96989.0 98827.0 87159.5 93138.0 109892.0 98658 [5,] 99126.0 105293.0 107357.0 93774.0 102394.0 118711.0 98658 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 78053.79 81866.22 85756.52 75414.12 78030.47 86684.75 98658 [2,] 89781.21 93212.78 99530.48 87402.88 88192.53 103378.25 98658 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(72496, 78425, 83917.5, 91281, 99126, 78195, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7kmlf1331538189.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,] 76661.83 76798.50 75771.62 [2,] 82668.92 83179.50 82311.94 [3,] 87409.42 86471.50 87084.56 [4,] 96207.58 95198.25 95090.06 [5,] 104442.50 103843.50 103392.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 81234.34 80989.67 81256.37 [2,] 93584.49 91953.33 92912.75 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(76661.8333333333, 82668.9166666667, 87409.4166666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/15jdq1331538189.ps tmp/15jdq1331538189.png",intern=TRUE)) character(0) > try(system("convert tmp/2h2oi1331538189.ps tmp/2h2oi1331538189.png",intern=TRUE)) character(0) > try(system("convert tmp/3n6m61331538189.ps tmp/3n6m61331538189.png",intern=TRUE)) character(0) > try(system("convert tmp/4lytb1331538189.ps tmp/4lytb1331538189.png",intern=TRUE)) character(0) > try(system("convert tmp/5zblq1331538189.ps tmp/5zblq1331538189.png",intern=TRUE)) character(0) > try(system("convert tmp/6djgm1331538189.ps tmp/6djgm1331538189.png",intern=TRUE)) character(0) > try(system("convert tmp/7kmlf1331538189.ps tmp/7kmlf1331538189.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.580 0.411 1.996