R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-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(84.11 + ,85.86 + ,86.27 + ,87.26 + ,88.89 + ,89.68 + ,90.12 + ,90.18 + ,90.32 + ,91.15 + ,91.2 + ,92.69 + ,95.46 + ,97.02 + ,97.24 + ,97.28 + ,97.57 + ,97.64 + ,98.07 + ,98.44 + ,98.46 + ,98.67 + ,98.86 + ,99.09 + ,99.21 + ,99.26 + ,99.5 + ,99.51 + ,99.56 + ,99.57 + ,99.63 + ,99.79 + ,99.81 + ,99.88 + ,99.97 + ,99.98 + ,100.08 + ,100.14 + ,100.24 + ,100.34 + ,100.39 + ,100.4 + ,100.42 + ,100.42 + ,100.45 + ,100.46 + ,100.47 + ,100.48 + ,100.51 + ,100.52 + ,100.55 + ,100.59 + ,100.67 + ,100.72 + ,100.96 + ,101.05 + ,101.29 + ,101.37 + ,101.42 + ,101.46 + ,101.53 + ,101.59 + ,101.64 + ,101.65 + ,101.66 + ,101.72 + ,101.77 + ,101.99 + ,102.07 + ,102.17 + ,102.34 + ,102.34 + ,102.37 + ,102.4 + ,102.4 + ,102.4 + ,102.42 + ,102.42 + ,102.44 + ,102.44 + ,102.45 + ,102.47 + ,102.48 + ,102.51 + ,102.53 + ,102.57 + ,102.59 + ,102.61 + ,102.67 + ,102.69 + ,102.73 + ,102.75 + ,102.78 + ,102.83 + ,102.84 + ,102.87 + ,102.89 + ,102.91 + ,102.92 + ,102.93 + ,102.93 + ,102.94 + ,102.96 + ,102.97 + ,102.99 + ,103.02 + ,103.04 + ,103.04 + ,103.05 + ,103.06 + ,103.08 + ,103.09 + ,103.1 + ,103.11 + ,103.13 + ,103.14 + ,103.16 + ,103.17 + ,103.18 + ,103.19 + ,103.2 + ,103.2 + ,103.22 + ,103.22 + ,103.23 + ,103.25 + ,103.26 + ,103.26 + ,103.29 + ,103.31 + ,103.32 + ,103.34 + ,103.37 + ,103.38 + ,103.41 + ,103.41 + ,103.42 + ,103.45 + ,103.47 + ,103.47 + ,103.47 + ,103.53 + ,103.54 + ,103.55 + ,103.61 + ,103.64 + ,103.68 + ,103.69 + ,103.71 + ,103.71 + ,103.74 + ,103.77 + ,103.81 + ,103.81 + ,103.83 + ,103.86 + ,103.89 + ,103.9 + ,103.92 + ,103.93 + ,103.93 + ,103.94 + ,103.97 + ,103.97 + ,103.97 + ,103.98 + ,103.98 + ,103.99 + ,104 + ,104.03 + ,104.05 + ,104.05 + ,104.06 + ,104.09 + ,104.1 + ,104.13 + ,104.15 + ,104.16 + ,104.2 + ,104.21 + ,104.24 + ,104.25 + ,104.28 + ,104.28 + ,104.28 + ,104.31 + ,104.31 + ,104.32 + ,104.35 + ,104.39 + ,104.46 + ,104.46 + ,104.59 + ,104.61 + ,104.64 + ,104.64 + ,104.65 + ,104.67 + ,104.7 + ,104.73 + ,104.74 + ,104.75 + ,104.76 + ,104.8 + ,104.8 + ,104.8 + ,104.9 + ,104.95 + ,104.95 + ,104.95 + ,104.97 + ,104.97 + ,105 + ,105 + ,105 + ,105.02 + ,105.03 + ,105.03 + ,105.03 + ,105.07 + ,105.07 + ,105.09 + ,105.1 + ,105.16 + ,105.17 + ,105.18 + ,105.2 + ,105.21 + ,105.25 + ,105.27 + ,105.28 + ,105.29 + ,105.3 + ,105.3 + ,105.36 + ,105.37 + ,105.37 + ,105.4 + ,105.41 + ,105.41 + ,105.43 + ,105.45 + ,105.51 + ,105.66 + ,105.67 + ,105.71 + ,105.78 + ,106.01 + ,106.03 + ,106.07 + ,106.89 + ,106.94 + ,107 + ,107.17 + ,107.23 + ,107.68 + ,107.69 + ,107.7 + ,107.72 + ,107.8 + ,107.82 + ,107.85 + ,108.03 + ,108.04 + ,108.09 + ,108.11 + ,108.15 + ,108.24 + ,108.91 + ,108.94 + ,108.96 + ,109.4 + ,109.68 + ,113.65 + ,114.31 + ,114.32 + ,114.72 + ,115.07 + ,116.45 + ,116.47 + ,116.47 + ,116.48 + ,116.76 + ,116.84 + ,116.92 + ,117.34 + ,132.09 + ,132.09 + ,132.09 + ,132.09 + ,132.09 + ,132.09 + ,132.09 + ,132.09 + ,132.09 + ,132.09 + ,132.09 + ,132.09 + ,132.09) > ylimmax = '' > ylimmin = '' > main = 'Robustness of Central Tendency' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa, P., (2012), Central Tendency (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_centraltendency.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > 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] 104.6454 > sqrtn <- sqrt(length(x)) > (armse <- sd(x) / sqrtn) [1] 0.4280852 > (armose <- arm / armse) [1] 244.4498 > (geo <- geomean(x)) [1] 104.4029 > (har <- harmean(x)) [1] 104.1755 > (qua <- quamean(x)) [1] 104.906 > (win <- winmean(x)) [,1] [,2] [1,] 104.6512 0.42718206 [2,] 104.6539 0.42678143 [3,] 104.6639 0.42538158 [4,] 104.6857 0.42251642 [5,] 104.6989 0.42089676 [6,] 104.7077 0.41985339 [7,] 104.7091 0.41968991 [8,] 104.7129 0.41925657 [9,] 104.7379 0.41644959 [10,] 104.7395 0.41626679 [11,] 104.7943 0.41056173 [12,] 104.9055 0.40065152 [13,] 104.3320 0.26497601 [14,] 104.3227 0.26081596 [15,] 104.3207 0.25998384 [16,] 104.3319 0.25790394 [17,] 104.3200 0.25499289 [18,] 104.3453 0.25267951 [19,] 104.3688 0.25076694 [20,] 104.3688 0.25044432 [21,] 104.2866 0.23391303 [22,] 104.2748 0.22883021 [23,] 104.2617 0.22275033 [24,] 104.2706 0.22188475 [25,] 104.2196 0.21327639 [26,] 103.8952 0.16494136 [27,] 103.8708 0.16192335 [28,] 103.8343 0.15687658 [29,] 103.8333 0.15657544 [30,] 103.8364 0.15569823 [31,] 103.7835 0.14684674 [32,] 103.7760 0.14567556 [33,] 103.7793 0.14452855 [34,] 103.7873 0.14337924 [35,] 103.7826 0.14268690 [36,] 103.7934 0.14149757 [37,] 103.7786 0.13862683 [38,] 103.7875 0.13713951 [39,] 103.7979 0.13575818 [40,] 103.7939 0.13413251 [41,] 103.7925 0.13374664 [42,] 103.7939 0.13337013 [43,] 103.7925 0.13322923 [44,] 103.7307 0.12653054 [45,] 103.7231 0.12556450 [46,] 103.6985 0.12304741 [47,] 103.6907 0.12206298 [48,] 103.6875 0.12092290 [49,] 103.5547 0.10958908 [50,] 103.5530 0.10860970 [51,] 103.5565 0.10771700 [52,] 103.5304 0.10343892 [53,] 103.5268 0.10171769 [54,] 103.5629 0.09724006 [55,] 103.5777 0.09562814 [56,] 103.5945 0.08966032 [57,] 103.5983 0.08753514 [58,] 103.6041 0.08643443 [59,] 103.6081 0.08548755 [60,] 103.6221 0.08431043 [61,] 103.6323 0.08315093 [62,] 103.6365 0.08185642 [63,] 103.6386 0.08168413 [64,] 103.6386 0.08135724 [65,] 103.6386 0.07937477 [66,] 103.6496 0.07848365 [67,] 103.6967 0.07444470 [68,] 103.7126 0.07289310 [69,] 103.7334 0.07100069 [70,] 103.7685 0.06777977 [71,] 103.7590 0.06708672 [72,] 103.7638 0.06640112 [73,] 103.7663 0.06553299 [74,] 103.7638 0.06535405 [75,] 103.7613 0.06517317 [76,] 103.7511 0.06372595 [77,] 103.7485 0.06354327 [78,] 103.7485 0.06280887 [79,] 103.7485 0.06280887 [80,] 103.7405 0.06186961 [81,] 103.7459 0.06149137 [82,] 103.7487 0.06130066 [83,] 103.7542 0.06052950 [84,] 103.7542 0.05974883 [85,] 103.7656 0.05897107 [86,] 103.7713 0.05858075 [87,] 103.7684 0.05757452 [88,] 103.7861 0.05639186 [89,] 103.7861 0.05557829 [90,] 103.7981 0.05478600 [91,] 103.8042 0.05438892 [92,] 103.7981 0.05270600 [93,] 103.7825 0.04953654 [94,] 103.7857 0.04933400 [95,] 103.7952 0.04872375 [96,] 103.7888 0.04742931 [97,] 103.7920 0.04679492 [98,] 103.7920 0.04636280 [99,] 103.7920 0.04592699 > (tri <- trimean(x)) [,1] [,2] [1,] 104.6221 0.41517596 [2,] 104.5926 0.40244163 [3,] 104.5613 0.38912310 [4,] 104.5261 0.37546969 [5,] 104.4848 0.36175578 [6,] 104.4402 0.34747596 [7,] 104.4402 0.33234982 [8,] 104.3458 0.31602916 [9,] 104.2970 0.29834840 [10,] 104.2445 0.27945895 [11,] 104.1911 0.25855988 [12,] 104.1315 0.23607776 [13,] 104.0608 0.21212259 [14,] 104.0608 0.20633566 [15,] 104.0152 0.20066437 [16,] 103.9924 0.19472112 [17,] 103.9684 0.18860026 [18,] 103.9449 0.18237060 [19,] 103.9194 0.17592270 [20,] 103.8921 0.16917471 [21,] 103.8644 0.16192493 [22,] 103.8408 0.15580756 [23,] 103.8175 0.14971446 [24,] 103.7945 0.14372779 [25,] 103.7707 0.13732534 [26,] 103.7489 0.13123435 [27,] 103.7421 0.12889812 [28,] 103.7421 0.12665242 [29,] 103.7319 0.12464084 [30,] 103.7275 0.12253789 [31,] 103.7229 0.12037488 [32,] 103.7204 0.11868433 [33,] 103.7182 0.11697638 [34,] 103.7158 0.11524594 [35,] 103.7131 0.11348974 [36,] 103.7104 0.11167708 [37,] 103.7074 0.10983266 [38,] 103.7048 0.10806161 [39,] 103.7019 0.10627721 [40,] 103.6985 0.10447007 [41,] 103.6952 0.10265454 [42,] 103.6919 0.10075092 [43,] 103.6919 0.09875020 [44,] 103.6851 0.09662853 [45,] 103.6836 0.09480102 [46,] 103.6823 0.09291617 [47,] 103.6818 0.09106680 [48,] 103.6815 0.08915661 [49,] 103.6813 0.08718935 [50,] 103.6852 0.08577539 [51,] 103.6892 0.08432617 [52,] 103.6932 0.08283438 [53,] 103.6981 0.08148966 [54,] 103.7031 0.08015401 [55,] 103.7072 0.07899989 [56,] 103.7072 0.07786424 [57,] 103.7144 0.07699138 [58,] 103.7177 0.07617599 [59,] 103.7209 0.07536572 [60,] 103.7241 0.07455169 [61,] 103.7270 0.07374827 [62,] 103.7297 0.07295381 [63,] 103.7323 0.07217462 [64,] 103.7349 0.07134876 [65,] 103.7375 0.07048062 [66,] 103.7402 0.06966087 [67,] 103.7427 0.06883281 [68,] 103.7440 0.06817836 [69,] 103.7448 0.06756094 [70,] 103.7452 0.06700063 [71,] 103.7445 0.06656933 [72,] 103.7441 0.06613875 [73,] 103.7436 0.06570760 [74,] 103.7430 0.06528557 [75,] 103.7424 0.06483558 [76,] 103.7419 0.06435535 [77,] 103.7417 0.06391423 [78,] 103.7415 0.06344248 [79,] 103.7413 0.06296932 [80,] 103.7411 0.06245129 [81,] 103.7411 0.06194082 [82,] 103.7410 0.06140414 [83,] 103.7408 0.06082712 [84,] 103.7404 0.06024265 [85,] 103.7400 0.05965075 [86,] 103.7400 0.05904959 [87,] 103.7393 0.05841248 [88,] 103.7376 0.05777891 [89,] 103.7362 0.05715792 [90,] 103.7348 0.05652747 [91,] 103.7330 0.05588189 [92,] 103.7310 0.05519164 [93,] 103.7290 0.05455196 [94,] 103.7275 0.05407830 [95,] 103.7258 0.05355955 [96,] 103.7237 0.05301915 [97,] 103.7218 0.05251317 [98,] 103.7197 0.05198944 [99,] 103.7175 0.05143070 > (midr <- midrange(x)) [1] 108.1 > midm <- array(NA,dim=8) > for (j in 1:8) midm[j] <- midmean(x,j) > midm [1] 103.7246 103.7341 103.7341 103.7341 103.7246 103.7246 103.7341 103.7341 > postscript(file="/var/wessaorg/rcomp/tmp/1t5vh1489528504.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/wessaorg/rcomp/tmp/2ktgb1489528504.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/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/378of1489528504.tab") > > try(system("convert tmp/1t5vh1489528504.ps tmp/1t5vh1489528504.png",intern=TRUE)) character(0) > try(system("convert tmp/2ktgb1489528504.ps tmp/2ktgb1489528504.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 3.192 0.068 3.405