R version 2.12.0 (2010-10-15) 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(57.33 + ,57.33 + ,57.47 + ,57.47 + ,57.67 + ,57.67 + ,57.67 + ,57.67 + ,57.80 + ,57.87 + ,58.00 + ,58.00 + ,58.00 + ,58.00 + ,58.00 + ,58.00 + ,58.00 + ,58.00 + ,58.07 + ,58.20 + ,58.27 + ,58.27 + ,58.33 + ,58.33 + ,58.33 + ,58.40 + ,58.67 + ,58.67 + ,58.67 + ,58.67 + ,58.67 + ,58.67 + ,58.67 + ,58.80 + ,58.80 + ,58.93 + ,59.00 + ,59.00 + ,59.00 + ,59.13 + ,59.13 + ,59.33 + ,59.33 + ,59.33 + ,59.33 + ,59.33 + ,59.40 + ,59.47 + ,59.53 + ,59.53 + ,59.53 + ,59.60 + ,59.67 + ,59.67 + ,59.67 + ,59.67 + ,59.67 + ,59.67 + ,59.67 + ,59.67 + ,59.73 + ,59.73 + ,59.73 + ,59.80 + ,59.80 + ,59.87 + ,60.00 + ,60.00 + ,60.00 + ,60.00 + ,60.00 + ,60.00 + ,60.00 + ,60.00 + ,60.00 + ,60.13 + ,60.13 + ,60.13 + ,60.33 + ,60.33 + ,60.33 + ,60.33 + ,60.33 + ,60.33 + ,60.33 + ,60.40 + ,60.47 + ,60.67 + ,60.67 + ,60.67 + ,60.67 + ,60.67 + ,60.73 + ,60.80 + ,60.87 + ,61.00 + ,61.00 + ,61.00 + ,61.00 + ,61.00 + ,61.00 + ,61.00 + ,61.00 + ,61.27 + ,61.27 + ,61.33 + ,61.33 + ,61.33 + ,61.33 + ,61.33 + ,61.33 + ,61.33 + ,61.33 + ,61.40 + ,61.40 + ,61.47 + ,61.47 + ,61.60 + ,61.60 + ,61.60 + ,61.67 + ,61.67 + ,61.67 + ,61.67 + ,61.67 + ,61.67 + ,61.67 + ,61.67 + ,61.67 + ,61.80 + ,61.87 + ,61.93 + ,61.93 + ,61.93 + ,62.00 + ,62.00 + ,62.00 + ,62.00 + ,62.00 + ,62.00 + ,62.00 + ,62.13 + ,62.20 + ,62.33 + ,62.33 + ,62.33 + ,62.33 + ,62.40 + ,62.40 + ,62.40 + ,62.40 + ,62.40 + ,62.53 + ,62.60 + ,62.60 + ,62.60 + ,62.60 + ,62.67 + ,62.67 + ,62.67 + ,62.80 + ,62.80 + ,62.80 + ,62.87 + ,62.87 + ,62.93 + ,62.93 + ,63.00 + ,63.00 + ,63.00 + ,63.00 + ,63.00 + ,63.07 + ,63.13 + ,63.20 + ,63.27 + ,63.33 + ,63.33 + ,63.33 + ,63.33 + ,63.33 + ,63.33 + ,63.33 + ,63.47 + ,63.53 + ,63.53 + ,63.53 + ,63.60 + ,63.67 + ,63.67 + ,63.67 + ,63.67 + ,63.67 + ,63.67 + ,63.67 + ,63.67 + ,63.67 + ,63.67 + ,63.67 + ,63.67 + ,63.73 + ,63.73 + ,63.73 + ,63.87 + ,64.00 + ,64.00 + ,64.00 + ,64.00 + ,64.00 + ,64.00 + ,64.00 + ,64.00 + ,64.00 + ,64.07 + ,64.07 + ,64.07 + ,64.13 + ,64.20 + ,64.20 + ,64.27 + ,64.27 + ,64.33 + ,64.33 + ,64.40 + ,64.47 + ,64.60 + ,64.60 + ,64.67 + ,64.67 + ,64.67 + ,64.67 + ,64.67 + ,64.67 + ,64.67 + ,64.67 + ,64.67 + ,64.67 + ,64.67 + ,64.67 + ,64.73 + ,64.80 + ,64.87 + ,65.00 + ,65.00 + ,65.00 + ,65.00 + ,65.00 + ,65.07 + ,65.07 + ,65.20 + ,65.33 + ,65.33 + ,65.47 + ,65.47 + ,65.60 + ,65.67 + ,65.67 + ,65.67 + ,65.67 + ,65.67 + ,65.67 + ,65.67 + ,65.80 + ,65.80 + ,65.80 + ,65.93 + ,66.00 + ,66.00 + ,66.00 + ,66.00 + ,66.00 + ,66.00 + ,66.00 + ,66.00 + ,66.00 + ,66.00 + ,66.00 + ,66.07 + ,66.20 + ,66.20 + ,66.27 + ,66.27 + ,66.33 + ,66.33 + ,66.47 + ,66.53 + ,66.53 + ,66.53 + ,66.60) > ylimmax = '' > ylimmin = '' > main = 'Robustness of Central Tendency' > #'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!) > geomean <- function(x) { + return(exp(mean(log(x)))) + } > harmean <- function(x) { + return(1/mean(1/x)) + } > quamean <- function(x) { + return(sqrt(mean(x*x))) + } > winmean <- function(x) { + x <-sort(x[!is.na(x)]) + n<-length(x) + denom <- 3 + nodenom <- n/denom + if (nodenom>40) denom <- n/40 + sqrtn = sqrt(n) + roundnodenom = floor(nodenom) + win <- array(NA,dim=c(roundnodenom,2)) + for (j in 1:roundnodenom) { + win[j,1] <- (j*x[j+1]+sum(x[(j+1):(n-j)])+j*x[n-j])/n + win[j,2] <- sd(c(rep(x[j+1],j),x[(j+1):(n-j)],rep(x[n-j],j)))/sqrtn + } + return(win) + } > trimean <- function(x) { + x <-sort(x[!is.na(x)]) + n<-length(x) + denom <- 3 + nodenom <- n/denom + if (nodenom>40) denom <- n/40 + sqrtn = sqrt(n) + roundnodenom = floor(nodenom) + tri <- array(NA,dim=c(roundnodenom,2)) + for (j in 1:roundnodenom) { + tri[j,1] <- mean(x,trim=j/n) + tri[j,2] <- sd(x[(j+1):(n-j)]) / sqrt(n-j*2) + } + return(tri) + } > midrange <- function(x) { + return((max(x)+min(x))/2) + } > q1 <- function(data,n,p,i,f) { + np <- n*p; + i <<- floor(np) + f <<- np - i + qvalue <- (1-f)*data[i] + f*data[i+1] + } > q2 <- function(data,n,p,i,f) { + np <- (n+1)*p + i <<- floor(np) + f <<- np - i + qvalue <- (1-f)*data[i] + f*data[i+1] + } > q3 <- function(data,n,p,i,f) { + np <- n*p + i <<- floor(np) + f <<- np - i + if (f==0) { + qvalue <- data[i] + } else { + qvalue <- data[i+1] + } + } > q4 <- function(data,n,p,i,f) { + np <- n*p + i <<- floor(np) + f <<- np - i + if (f==0) { + qvalue <- (data[i]+data[i+1])/2 + } else { + qvalue <- data[i+1] + } + } > q5 <- function(data,n,p,i,f) { + np <- (n-1)*p + i <<- floor(np) + f <<- np - i + if (f==0) { + qvalue <- data[i+1] + } else { + qvalue <- data[i+1] + f*(data[i+2]-data[i+1]) + } + } > q6 <- function(data,n,p,i,f) { + np <- n*p+0.5 + i <<- floor(np) + f <<- np - i + qvalue <- data[i] + } > q7 <- function(data,n,p,i,f) { + np <- (n+1)*p + i <<- floor(np) + f <<- np - i + if (f==0) { + qvalue <- data[i] + } else { + qvalue <- f*data[i] + (1-f)*data[i+1] + } + } > q8 <- function(data,n,p,i,f) { + np <- (n+1)*p + i <<- floor(np) + f <<- np - i + if (f==0) { + qvalue <- data[i] + } else { + if (f == 0.5) { + qvalue <- (data[i]+data[i+1])/2 + } else { + if (f < 0.5) { + qvalue <- data[i] + } else { + qvalue <- data[i+1] + } + } + } + } > midmean <- function(x,def) { + x <-sort(x[!is.na(x)]) + n<-length(x) + if (def==1) { + qvalue1 <- q1(x,n,0.25,i,f) + qvalue3 <- q1(x,n,0.75,i,f) + } + if (def==2) { + qvalue1 <- q2(x,n,0.25,i,f) + qvalue3 <- q2(x,n,0.75,i,f) + } + if (def==3) { + qvalue1 <- q3(x,n,0.25,i,f) + qvalue3 <- q3(x,n,0.75,i,f) + } + if (def==4) { + qvalue1 <- q4(x,n,0.25,i,f) + qvalue3 <- q4(x,n,0.75,i,f) + } + if (def==5) { + qvalue1 <- q5(x,n,0.25,i,f) + qvalue3 <- q5(x,n,0.75,i,f) + } + if (def==6) { + qvalue1 <- q6(x,n,0.25,i,f) + qvalue3 <- q6(x,n,0.75,i,f) + } + if (def==7) { + qvalue1 <- q7(x,n,0.25,i,f) + qvalue3 <- q7(x,n,0.75,i,f) + } + if (def==8) { + qvalue1 <- q8(x,n,0.25,i,f) + qvalue3 <- q8(x,n,0.75,i,f) + } + midm <- 0 + myn <- 0 + roundno4 <- round(n/4) + round3no4 <- round(3*n/4) + for (i in 1:n) { + if ((x[i]>=qvalue1) & (x[i]<=qvalue3)){ + midm = midm + x[i] + myn = myn + 1 + } + } + midm = midm / myn + return(midm) + } > (arm <- mean(x)) [1] 62.18533 > sqrtn <- sqrt(length(x)) > (armse <- sd(x) / sqrtn) [1] 0.14786 > (armose <- arm / armse) [1] 420.569 > (geo <- geomean(x)) [1] 62.13452 > (har <- harmean(x)) [1] 62.08354 > (qua <- quamean(x)) [1] 62.23593 > (win <- winmean(x)) [,1] [,2] [1,] 62.18509 0.14783508 [2,] 62.18606 0.14772614 [3,] 62.18606 0.14772614 [4,] 62.18799 0.14734105 [5,] 62.18557 0.14710036 [6,] 62.18557 0.14710036 [7,] 62.18412 0.14695912 [8,] 62.18772 0.14658020 [9,] 62.18772 0.14614579 [10,] 62.19221 0.14569034 [11,] 62.18727 0.14522434 [12,] 62.18436 0.14495660 [13,] 62.18436 0.14495660 [14,] 62.18436 0.14495660 [15,] 62.18436 0.14495660 [16,] 62.18436 0.14495660 [17,] 62.18436 0.14495660 [18,] 62.18872 0.14452238 [19,] 62.19727 0.14368670 [20,] 62.20211 0.14322183 [21,] 62.20211 0.14322183 [22,] 62.20668 0.14278883 [23,] 62.20111 0.14227841 [24,] 62.19031 0.14130836 [25,] 62.19637 0.14073759 [26,] 62.22066 0.13851860 [27,] 62.20851 0.13744264 [28,] 62.20851 0.13744264 [29,] 62.20851 0.13744264 [30,] 62.20851 0.13744264 [31,] 62.20851 0.13744264 [32,] 62.20851 0.13744264 [33,] 62.22336 0.13613099 [34,] 62.21512 0.13541160 [35,] 62.21512 0.13269156 [36,] 62.22384 0.13194688 [37,] 62.20592 0.13043590 [38,] 62.20592 0.13043590 [39,] 62.20592 0.12750760 [40,] 62.18792 0.12605979 [41,] 62.21630 0.12371518 [42,] 62.20612 0.12290630 [43,] 62.20612 0.12290630 [44,] 62.20612 0.12290630 [45,] 62.20612 0.12290630 [46,] 62.21727 0.12200696 [47,] 62.20751 0.11944203 [48,] 62.20585 0.11775771 [49,] 62.19398 0.11685659 [50,] 62.18360 0.11607944 [51,] 62.19595 0.11510548 [52,] 62.20855 0.11412591 [53,] 62.20855 0.11412591 [54,] 62.20855 0.11412591 [55,] 62.20855 0.11412591 [56,] 62.20855 0.11412591 [57,] 62.20855 0.11412591 [58,] 62.20855 0.11412591 [59,] 62.20855 0.11412591 [60,] 62.22100 0.11316882 [61,] 62.22100 0.11316882 [62,] 62.20599 0.11204754 [63,] 62.22125 0.11088361 [64,] 62.19246 0.10876453 [65,] 62.19246 0.10642740 [66,] 62.20616 0.10305112 [67,] 62.20616 0.10305112 [68,] 62.19204 0.10204687 [69,] 62.19204 0.10204687 [70,] 62.17509 0.10085644 [71,] 62.17509 0.10085644 [72,] 62.15765 0.09964924 [73,] 62.14249 0.09861412 [74,] 62.14249 0.09861412 [75,] 62.17623 0.09609406 [76,] 62.15782 0.09484342 [77,] 62.15782 0.09484342 [78,] 62.21180 0.09089831 [79,] 62.21180 0.09089831 [80,] 62.21180 0.09089831 [81,] 62.21180 0.09089831 [82,] 62.21180 0.09089831 [83,] 62.21180 0.09089831 [84,] 62.21180 0.09089831 [85,] 62.19415 0.08683219 [86,] 62.17332 0.08257881 [87,] 62.23353 0.07833461 [88,] 62.23353 0.07833461 [89,] 62.21505 0.07711649 [90,] 62.21505 0.07711649 [91,] 62.21505 0.07711649 [92,] 62.23415 0.07579399 [93,] 62.25668 0.07425057 [94,] 62.27945 0.07270875 [95,] 62.32218 0.06986589 [96,] 62.32218 0.06986589 > (tri <- trimean(x)) [,1] [,2] [1,] 62.18686 0.14711978 [2,] 62.18867 0.14637321 [3,] 62.19000 0.14565160 [4,] 62.19135 0.14489802 [5,] 62.19222 0.14421676 [6,] 62.19361 0.14355834 [7,] 62.19502 0.14286971 [8,] 62.19667 0.14217277 [9,] 62.19786 0.14149964 [10,] 62.19907 0.14085293 [11,] 62.19981 0.14023121 [12,] 62.20106 0.13963194 [13,] 62.20259 0.13903139 [14,] 62.20414 0.13840123 [15,] 62.20571 0.13774000 [16,] 62.20732 0.13704616 [17,] 62.20894 0.13631805 [18,] 62.21059 0.13555390 [19,] 62.21199 0.13478642 [20,] 62.21289 0.13404463 [21,] 62.21352 0.13329974 [22,] 62.21416 0.13251689 [23,] 62.21457 0.13172435 [24,] 62.21527 0.13092569 [25,] 62.21527 0.13014966 [26,] 62.21751 0.12937012 [27,] 62.21736 0.12868987 [28,] 62.21777 0.12803872 [29,] 62.21818 0.12735157 [30,] 62.21860 0.12662641 [31,] 62.21903 0.12586107 [32,] 62.21947 0.12505321 [33,] 62.21991 0.12420031 [34,] 62.21977 0.12337522 [35,] 62.21995 0.12254424 [36,] 62.22014 0.12181768 [37,] 62.22000 0.12108942 [38,] 62.22052 0.12039993 [39,] 62.22104 0.11966884 [40,] 62.22158 0.11904942 [41,] 62.22275 0.11846607 [42,] 62.22298 0.11796658 [43,] 62.22355 0.11747422 [44,] 62.22413 0.11694806 [45,] 62.22472 0.11638601 [46,] 62.22533 0.11578581 [47,] 62.22559 0.11519098 [48,] 62.22617 0.11468429 [49,] 62.22681 0.11422454 [50,] 62.22681 0.11377410 [51,] 62.22920 0.11332665 [52,] 62.23022 0.11289279 [53,] 62.23087 0.11247277 [54,] 62.23155 0.11201837 [55,] 62.23223 0.11152724 [56,] 62.23294 0.11099686 [57,] 62.23366 0.11042448 [58,] 62.23439 0.10980709 [59,] 62.23515 0.10914142 [60,] 62.23592 0.10842388 [61,] 62.23592 0.10770150 [62,] 62.23679 0.10692227 [63,] 62.23767 0.10614161 [64,] 62.23814 0.10536248 [65,] 62.23943 0.10463394 [66,] 62.24076 0.10397138 [67,] 62.24174 0.10343364 [68,] 62.24275 0.10284633 [69,] 62.24417 0.10225866 [70,] 62.24564 0.10161642 [71,] 62.24762 0.10097919 [72,] 62.24966 0.10028205 [73,] 62.25224 0.09958594 [74,] 62.25532 0.09888018 [75,] 62.25849 0.09810603 [76,] 62.26080 0.09741452 [77,] 62.26080 0.09672462 [78,] 62.26669 0.09596411 [79,] 62.26824 0.09537751 [80,] 62.26984 0.09472637 [81,] 62.27150 0.09400437 [82,] 62.27320 0.09320436 [83,] 62.27496 0.09231827 [84,] 62.27678 0.09133689 [85,] 62.27866 0.09024969 [86,] 62.28111 0.08933299 [87,] 62.28426 0.08860699 [88,] 62.28575 0.08810091 [89,] 62.28730 0.08752498 [90,] 62.28945 0.08695405 [91,] 62.29168 0.08630378 [92,] 62.29400 0.08556477 [93,] 62.29583 0.08483369 [94,] 62.29703 0.08412809 [95,] 62.29758 0.08344866 [96,] 62.29680 0.08289898 > (midr <- midrange(x)) [1] 61.965 > midm <- array(NA,dim=8) > for (j in 1:8) midm[j] <- midmean(x,j) > midm [1] 62.14713 62.16026 62.16026 62.16026 62.16026 62.16026 62.16026 62.16026 > postscript(file="/var/www/rcomp/tmp/1uy5i1318506563.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > lb <- win[,1] - 2*win[,2] > ub <- win[,1] + 2*win[,2] > if ((ylimmin == '') | (ylimmax == '')) plot(win[,1],type='b',main=main, xlab='j', pch=19, ylab='Winsorized Mean(j/n)', ylim=c(min(lb),max(ub))) else plot(win[,1],type='l',main=main, xlab='j', pch=19, ylab='Winsorized Mean(j/n)', ylim=c(ylimmin,ylimmax)) > lines(ub,lty=3) > lines(lb,lty=3) > grid() > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/2jvam1318506563.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > lb <- tri[,1] - 2*tri[,2] > ub <- tri[,1] + 2*tri[,2] > if ((ylimmin == '') | (ylimmax == '')) plot(tri[,1],type='b',main=main, xlab='j', pch=19, ylab='Trimmed Mean(j/n)', ylim=c(min(lb),max(ub))) else plot(tri[,1],type='l',main=main, xlab='j', pch=19, ylab='Trimmed Mean(j/n)', ylim=c(ylimmin,ylimmax)) > lines(ub,lty=3) > lines(lb,lty=3) > grid() > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Central Tendency - Ungrouped Data',4,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Measure',header=TRUE) > a<-table.element(a,'Value',header=TRUE) > a<-table.element(a,'S.E.',header=TRUE) > a<-table.element(a,'Value/S.E.',header=TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm', 'Arithmetic Mean', 'click to view the definition of the Arithmetic Mean'),header=TRUE) > a<-table.element(a,arm) > a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean_standard_error.htm', armse, 'click to view the definition of the Standard Error of the Arithmetic Mean')) > a<-table.element(a,armose) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/geometric_mean.htm', 'Geometric Mean', 'click to view the definition of the Geometric Mean'),header=TRUE) > a<-table.element(a,geo) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/harmonic_mean.htm', 'Harmonic Mean', 'click to view the definition of the Harmonic Mean'),header=TRUE) > a<-table.element(a,har) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/quadratic_mean.htm', 'Quadratic Mean', 'click to view the definition of the Quadratic Mean'),header=TRUE) > a<-table.element(a,qua) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > for (j in 1:length(win[,1])) { + a<-table.row.start(a) + mylabel <- paste('Winsorized Mean (',j) + mylabel <- paste(mylabel,'/') + mylabel <- paste(mylabel,length(win[,1])) + mylabel <- paste(mylabel,')') + a<-table.element(a,hyperlink('http://www.xycoon.com/winsorized_mean.htm', mylabel, 'click to view the definition of the Winsorized Mean'),header=TRUE) + a<-table.element(a,win[j,1]) + a<-table.element(a,win[j,2]) + a<-table.element(a,win[j,1]/win[j,2]) + a<-table.row.end(a) + } > for (j in 1:length(tri[,1])) { + a<-table.row.start(a) + mylabel <- paste('Trimmed Mean (',j) + mylabel <- paste(mylabel,'/') + mylabel <- paste(mylabel,length(tri[,1])) + mylabel <- paste(mylabel,')') + a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm', mylabel, 'click to view the definition of the Trimmed Mean'),header=TRUE) + a<-table.element(a,tri[j,1]) + a<-table.element(a,tri[j,2]) + a<-table.element(a,tri[j,1]/tri[j,2]) + a<-table.row.end(a) + } > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/median_1.htm', 'Median', 'click to view the definition of the Median'),header=TRUE) > a<-table.element(a,median(x)) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/midrange.htm', 'Midrange', 'click to view the definition of the Midrange'),header=TRUE) > a<-table.element(a,midr) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean') > mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_1.htm','Weighted Average at Xnp',''),sep=' - ') > a<-table.element(a,mylabel,header=TRUE) > a<-table.element(a,midm[1]) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean') > mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_2.htm','Weighted Average at X(n+1)p',''),sep=' - ') > a<-table.element(a,mylabel,header=TRUE) > a<-table.element(a,midm[2]) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean') > mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_3.htm','Empirical Distribution Function',''),sep=' - ') > a<-table.element(a,mylabel,header=TRUE) > a<-table.element(a,midm[3]) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean') > mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_4.htm','Empirical Distribution Function - Averaging',''),sep=' - ') > a<-table.element(a,mylabel,header=TRUE) > a<-table.element(a,midm[4]) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean') > mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_5.htm','Empirical Distribution Function - Interpolation',''),sep=' - ') > a<-table.element(a,mylabel,header=TRUE) > a<-table.element(a,midm[5]) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean') > mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_6.htm','Closest Observation',''),sep=' - ') > a<-table.element(a,mylabel,header=TRUE) > a<-table.element(a,midm[6]) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean') > mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_7.htm','True Basic - Statistics Graphics Toolkit',''),sep=' - ') > a<-table.element(a,mylabel,header=TRUE) > a<-table.element(a,midm[7]) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > mymid <- hyperlink('http://www.xycoon.com/midmean.htm', 'Midmean', 'click to view the definition of the Midmean') > mylabel <- paste(mymid,hyperlink('http://www.xycoon.com/method_8.htm','MS Excel (old versions)',''),sep=' - ') > a<-table.element(a,mylabel,header=TRUE) > a<-table.element(a,midm[8]) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Number of observations',header=TRUE) > a<-table.element(a,length(x)) > a<-table.element(a,'') > a<-table.element(a,'') > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/rcomp/tmp/3d0ut1318506563.tab") > > try(system("convert tmp/1uy5i1318506563.ps tmp/1uy5i1318506563.png",intern=TRUE)) character(0) > try(system("convert tmp/2jvam1318506563.ps tmp/2jvam1318506563.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.690 0.040 1.742