R version 2.12.1 (2010-12-16) Copyright (C) 2010 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(6827,6178,7084,8162,8462,9644,10466,10748,9963,8194,6848,7027,7269,6775,7819,8371,9069,10248,11030,10882,10333,9109,7685,7602,8350,7829,8829,9948,10638,11253,11424,11391,10665,9396,7775,7933,8186,7444,8484,9948,10252,12282,11637,11577,12417,9637,8094,9280,8334,7899,9994,10078,10801,12950,12222,12246,13281,10366,8730,9614,8639,8772,10894,10455,11179,10588,10794,12770,13812,10857,9290,10925,9491,8919,11607,8852,12537,14759,13667,13731,15110,12185,10645,12161,10840,10436,13589,13402,13103,14933,14147,14057,16234,12389,11595,12772) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 6827 7269 8350 8186 8334 8639 9491 10840 NA [2,] 6178 6775 7829 7444 7899 8772 8919 10436 NA [3,] 7084 7819 8829 8484 9994 10894 11607 13589 NA [4,] 8162 8371 9948 9948 10078 10455 8852 13402 NA [5,] 8462 9069 10638 10252 10801 11179 12537 13103 NA [6,] 9644 10248 11253 12282 12950 10588 14759 14933 NA [7,] 10466 11030 11424 11637 12222 10794 13667 14147 NA [8,] 10748 10882 11391 11577 12246 12770 13731 14057 NA [9,] 9963 10333 10665 12417 13281 13812 15110 16234 NA [10,] 8194 9109 9396 9637 10366 10857 12185 12389 NA [11,] 6848 7685 7775 8094 8730 9290 10645 11595 NA [12,] 7027 7602 7933 9280 9614 10925 12161 12772 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -649 -494 -521 -742 -435 133 -572 -404 NA [2,] 906 1044 1000 1040 2095 2122 2688 3153 NA [3,] 1078 552 1119 1464 84 -439 -2755 -187 NA [4,] 300 698 690 304 723 724 3685 -299 NA [5,] 1182 1179 615 2030 2149 -591 2222 1830 NA [6,] 822 782 171 -645 -728 206 -1092 -786 NA [7,] 282 -148 -33 -60 24 1976 64 -90 NA [8,] -785 -549 -726 840 1035 1042 1379 2177 NA [9,] -1769 -1224 -1269 -2780 -2915 -2955 -2925 -3845 NA [10,] -1346 -1424 -1621 -1543 -1636 -1567 -1540 -794 NA [11,] 179 -83 158 1186 884 1635 1516 1177 NA [12,] 242 748 253 -946 -975 -1434 -1321 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/rcomp/tmp/1imgx1305787537.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/rcomp/tmp/2plvm1305787537.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/rcomp/tmp/3sw6v1305787537.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/rcomp/tmp/48ydc1305787537.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,] 6827.0 6178.0 7084.0 8162.0 8462.0 9644.0 10466.0 10748.0 9963 [2,] 7727.5 7109.5 8151.5 8611.5 9660.5 10418.0 10912.0 11136.5 10499 [3,] 8342.0 7864.0 9411.5 9948.0 10719.5 11767.5 11530.5 11911.5 12849 [4,] 9065.0 8845.5 11250.5 10266.5 11858.0 13854.5 12944.5 13250.5 14461 [5,] 10840.0 10436.0 13589.0 10455.0 13103.0 14933.0 14147.0 14057.0 16234 [,10] [,11] [,12] [1,] 8194.0 6848.0 7027.0 [2,] 9252.5 7730.0 7767.5 [3,] 10001.5 8412.0 9447.0 [4,] 11521.0 9967.5 11543.0 [5,] 12389.0 11595.0 12772.0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7594.853 6894.245 7680.354 9023.493 9491.945 9847.822 10395.12 [2,] 9089.147 8833.755 11142.646 10872.507 11947.055 13687.178 12665.88 [,8] [,9] [,10] [,11] [,12] [1,] 10730.59 10635.77 8734.283 7162.1 7337.951 [2,] 13092.41 15062.23 11268.717 9661.9 11556.049 $out [1] 13402 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(6827, 7727.5, 8342, 9065, 10840, 6178, 7109.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5b1jl1305787537.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] [1,] -742.0 906.0 -439.0 -299.0 -591.0 -1092 -148.0 -785.0 -3845.0 -1636.0 [2,] -610.5 1020.0 -313.0 302.0 897.0 -757 -75.0 -637.5 -2940.0 -1594.0 [3,] -507.5 1569.5 318.0 694.0 1506.0 -237 -4.5 937.5 -2847.5 -1541.5 [4,] -419.5 2405.0 1098.5 723.5 2089.5 494 173.0 1210.5 -1519.0 -1385.0 [5,] -404.0 3153.0 1464.0 724.0 2222.0 822 282.0 2177.0 -1224.0 -1346.0 [,11] [,12] [1,] -83.0 -1434.0 [2,] 168.5 -1148.0 [3,] 1030.5 -946.0 [4,] 1351.0 247.5 [5,] 1635.0 748.0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -614.1953 795.8191 -470.4842 458.5440 839.8524 -935.8266 -143.0364 [2,] -400.8047 2343.1809 1106.4842 929.4560 2172.1476 461.8266 134.0364 [,8] [,9] [,10] [,11] [,12] [1,] -94.81933 -3641.291 -1658.250 369.9385 -1779.3701 [2,] 1969.81933 -2053.709 -1424.750 1691.0615 -112.6299 $out [1] 133 -2755 3685 1976 -794 $group [1] 1 3 4 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-742, -610.5, -507.5, -419.5, -404, 906, 1020, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6imfi1305787537.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] [1,] 6178.0 6775.0 7775.0 7444.0 7899 8639.0 8852 10436.0 NA [2,] 6937.5 7643.5 8141.5 8335.0 9172 9872.5 10068 11992.0 NA [3,] 8178.0 8720.0 9672.0 9792.5 10222 10825.5 12173 13252.5 NA [4,] 9803.5 10290.5 10959.0 11607.0 12234 11052.0 13699 14102.0 NA [5,] 10748.0 11030.0 11424.0 12417.0 13281 12770.0 15110 16234.0 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6870.798 7512.686 8386.92 8300.119 8825.401 10287.52 10516.88 12290.11 [2,] 9485.202 9927.314 10957.08 11284.881 11618.599 11363.48 13829.12 14214.89 [,9] [1,] NA [2,] NA $out [1] 13812 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(6178, 6937.5, 8178, 9803.5, 10748, 6775, 7643.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7vh7l1305787537.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,] 8031.50 7864.00 8042.750 [2,] 9248.50 8911.75 9071.312 [3,] 10084.31 9974.75 9975.812 [4,] 12002.75 11649.00 11864.875 [5,] 12726.88 12849.00 12359.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8828.08 8726.272 8701.65 [2,] 11340.54 11223.228 11249.98 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(8031.5, 9248.5, 10084.3125, 12002.75, 12726.875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1imgx1305787537.ps tmp/1imgx1305787537.png",intern=TRUE)) character(0) > try(system("convert tmp/2plvm1305787537.ps tmp/2plvm1305787537.png",intern=TRUE)) character(0) > try(system("convert tmp/3sw6v1305787537.ps tmp/3sw6v1305787537.png",intern=TRUE)) character(0) > try(system("convert tmp/48ydc1305787537.ps tmp/48ydc1305787537.png",intern=TRUE)) character(0) > try(system("convert tmp/5b1jl1305787537.ps tmp/5b1jl1305787537.png",intern=TRUE)) character(0) > try(system("convert tmp/6imfi1305787537.ps tmp/6imfi1305787537.png",intern=TRUE)) character(0) > try(system("convert tmp/7vh7l1305787537.ps tmp/7vh7l1305787537.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.392 0.496 2.867