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(5789,6333,6901,5813,6504,5619,5867,6084,5258,5601,5081,4678,5463,5546,6810,6407,5985,5119,5904,5034,4922,6083,4365,4464,4557,5885,5286,6017,5376,5935,6276,5510,5998,5193,4602,5326,5307,5014,6153,6441,5584,6427,6062,5589,6216,5809,4989,6706,7174,6122,8075,6292,6337,8576,6077,5931,6288,7167,6054,6468,6403,6927,7914,7728,8701,8522,6481,7502,7778,7424,6941,8574,9171,7718,9083,7164,8213,8124,7075,7026,7390,7778,6203,6905,7087,6495,7664,6516,6322,7828,6708,6717,5707,8063,6315,5893,6914,7319,6615,7341,6210,7408,6168,5878,6834,6211,5982,6973) > 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] 108 > (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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 5789 5463 4557 5307 7174 6403 9171 7087 6914 NA [2,] 6333 5546 5885 5014 6122 6927 7718 6495 7319 NA [3,] 6901 6810 5286 6153 8075 7914 9083 7664 6615 NA [4,] 5813 6407 6017 6441 6292 7728 7164 6516 7341 NA [5,] 6504 5985 5376 5584 6337 8701 8213 6322 6210 NA [6,] 5619 5119 5935 6427 8576 8522 8124 7828 7408 NA [7,] 5867 5904 6276 6062 6077 6481 7075 6708 6168 NA [8,] 6084 5034 5510 5589 5931 7502 7026 6717 5878 NA [9,] 5258 4922 5998 6216 6288 7778 7390 5707 6834 NA [10,] 5601 6083 5193 5809 7167 7424 7778 8063 6211 NA [11,] 5081 4365 4602 4989 6054 6941 6203 6315 5982 NA [12,] 4678 4464 5326 6706 6468 8574 6905 5893 6973 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 544 83 1328 -293 -1052 524 -1453 -592 405 NA [2,] 568 1264 -599 1139 1953 987 1365 1169 -704 NA [3,] -1088 -403 731 288 -1783 -186 -1919 -1148 726 NA [4,] 691 -422 -641 -857 45 973 1049 -194 -1131 NA [5,] -885 -866 559 843 2239 -179 -89 1506 1198 NA [6,] 248 785 341 -365 -2499 -2041 -1049 -1120 -1240 NA [7,] 217 -870 -766 -473 -146 1021 -49 9 -290 NA [8,] -826 -112 488 627 357 276 364 -1010 956 NA [9,] 343 1161 -805 -407 879 -354 388 2356 -623 NA [10,] -520 -1718 -591 -820 -1113 -483 -1575 -1748 -229 NA [11,] -403 99 724 1717 414 1633 702 -422 991 NA [12,] 785 93 -19 468 -65 597 182 1021 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/1ro631259601438.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/2r8ef1259601438.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/3hiig1259601438.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/4id3y1259601438.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] [,10] [,11] [,12] [1,] 4557 5014 5286 5813 5376 5119 5867 5034 4922 5193 4365 4464 [2,] 5463 5885 6615 6292 5985 5935 6062 5589 5707 5809 4989 5326 [3,] 6403 6333 6901 6441 6322 7408 6168 5931 6216 6211 5982 6468 [4,] 7087 6927 7914 7164 6504 8124 6481 6717 6834 7424 6203 6905 [5,] 9171 7718 9083 7728 6504 8576 7075 7502 7778 8063 6941 8574 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5547.693 5784.213 6216.86 5981.747 6048.66 6255.127 5947.327 5336.92 [2,] 7258.307 6881.787 7585.14 6900.253 6595.34 8560.873 6388.673 6525.08 [,9] [,10] [,11] [,12] [1,] 5622.447 5360.433 5342.627 5636.393 [2,] 6809.553 7061.567 6621.373 7299.607 $out [1] 8701 8213 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(4557, 5463, 6403, 7087, 9171, 5014, 5885, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ril21259601438.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] [,12] [1,] -1453 568 -1919 -1131 -885 -2499 -870 -1010 -805 -1748 -422 -65 [2,] -592 568 -1148 -641 -179 -1240 -473 -112 -407 -1575 99 37 [3,] 83 1139 -403 -194 559 -1049 -146 357 343 -820 702 325 [4,] 524 1264 288 691 1198 248 9 488 879 -520 991 691 [5,] 1328 1953 731 1049 2239 785 217 956 2356 -229 1717 1021 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -504.76 772.44 -1159.2933 -895.52 -166.22 -1832.68 -399.8533 41 [2,] 670.76 1505.56 353.2933 507.52 1284.22 -265.32 107.8533 673 [,9] [,10] [,11] [,12] [1,] -334.2933 -1375.6333 232.2133 -40.33379 [2,] 1020.2933 -264.3667 1171.7867 690.33379 $out [1] -599 -704 1021 $group [1] 2 2 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1453, -592, 83, 524, 1328, 568, 568, 1139, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/66j6y1259601438.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] [,9] [,10] [1,] 4678.0 4365.0 4557.0 4989.0 5931.0 6403 6203.0 5707.0 5878.0 NA [2,] 5429.5 4978.0 5239.5 5445.5 6099.5 6934 7050.5 6318.5 6189.0 NA [3,] 5801.0 5504.5 5443.0 5935.5 6314.5 7615 7554.0 6612.0 6724.5 NA [4,] 6208.5 6034.0 5966.5 6321.5 7170.5 8218 8168.5 7375.5 7146.0 NA [5,] 6901.0 6810.0 6276.0 6706.0 8576.0 8701 9171.0 8063.0 7408.0 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5445.693 5022.851 5111.41 5535.95 5826.01 7029.359 7044.073 6129.895 [2,] 6156.307 5986.149 5774.59 6335.05 6802.99 8200.641 8063.927 7094.105 [,9] [,10] [1,] 6288.006 NA [2,] 7160.994 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(4678, 5429.5, 5801, 6208.5, 6901, 4365, 4978, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7hirk1259601438.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,] 6141.222 5931.0 5596.00 [2,] 6243.222 6189.5 6198.75 [3,] 6401.333 6327.5 6273.25 [4,] 6613.778 6454.5 6672.25 [5,] 7166.778 6468.0 7264.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6232.320 6206.632 6057.283 [2,] 6570.346 6448.368 6489.217 $out [1] 5614.667 6901.000 7408.000 $group [1] 1 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6141.22222222222, 6243.22222222222, 6401.33333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ro631259601438.ps tmp/1ro631259601438.png") > system("convert tmp/2r8ef1259601438.ps tmp/2r8ef1259601438.png") > system("convert tmp/3hiig1259601438.ps tmp/3hiig1259601438.png") > system("convert tmp/4id3y1259601438.ps tmp/4id3y1259601438.png") > system("convert tmp/5ril21259601438.ps tmp/5ril21259601438.png") > system("convert tmp/66j6y1259601438.ps tmp/66j6y1259601438.png") > system("convert tmp/7hirk1259601438.ps tmp/7hirk1259601438.png") > > > proc.time() user system elapsed 1.158 0.912 1.552