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(9.4 + ,9.8 + ,9.8 + ,9.8 + ,9.4 + ,9.4 + ,9.4 + ,10 + ,9.5 + ,10.5 + ,9.2 + ,10.5 + ,9.9 + ,9.1 + ,9.2 + ,9.2 + ,10.5 + ,9.3 + ,9 + ,9.2 + ,9.4 + ,9.7 + ,9.5 + ,9.4 + ,9.7 + ,9.3 + ,9.5 + ,9.5 + ,9.4 + ,9.8 + ,10.1 + ,10.6 + ,9.8 + ,9.4 + ,9.2 + ,9.6 + ,10.8 + ,9.7 + ,9.8 + ,10.5 + ,10.5 + ,9.3 + ,10.5 + ,10.3 + ,9.5 + ,13.1 + ,9.2 + ,9.5 + ,9.2 + ,9.2 + ,9.2 + ,9.4 + ,9.4 + ,9.4 + ,10.2 + ,9.5 + ,9.6 + ,9.4 + ,10 + ,9.4 + ,9.2 + ,9.3 + ,9.5 + ,9.8 + ,10.9 + ,10.9 + ,9.6 + ,10.7 + ,10.7 + ,10.5 + ,9.5 + ,9.5 + ,9.5 + ,9.2 + ,9.6 + ,10.5 + ,10.5 + ,10.7 + ,10.1 + ,9.1 + ,9.2 + ,9.4 + ,9.1 + ,9.4 + ,10.3 + ,10.1 + ,9.9 + ,9.6 + ,9.5 + ,9 + ,9.5 + ,9.9 + ,9.8 + ,9.6 + ,10.5 + ,12.9 + ,10.7 + ,9.2 + ,9.8 + ,9 + ,10.2 + ,10.4 + ,9 + ,9.2 + ,9.4 + ,9.2 + ,9.3 + ,9.3 + ,9.6 + ,9.3 + ,9.5 + ,9.8 + ,9.8 + ,9.7 + ,9.5 + ,10.5 + ,10 + ,9.4 + ,10.9 + ,9.2 + ,9 + ,10.9 + ,9.2 + ,9.5 + ,9.5 + ,9.4 + ,10.9 + ,10.9 + ,10.5 + ,9.4 + ,9.4 + ,13 + ,13 + ,9.8 + ,9.9 + ,9.6 + ,9.5 + ,9.2 + ,9.5 + ,9.5 + ,9.6 + ,9.5 + ,14 + ,9.4 + ,14 + ,9.4 + ,10 + ,9.3 + ,10.2 + ,10.5 + ,10.3 + ,9.4 + ,10.1 + ,10.1 + ,10.5 + ,10.5 + ,10.5 + ,10.5 + ,9.3 + ,9.3 + ,9.6 + ,9.2 + ,10 + ,9.4 + ,9.4 + ,9.5 + ,10.2 + ,9 + ,10.4 + ,9.5 + ,9.1 + ,9.2 + ,9.2 + ,11.5 + ,9.5 + ,9.5 + ,9.5 + ,10.5 + ,9.6 + ,9.5 + ,9.5 + ,9.3 + ,9.3 + ,9.3 + ,9.3 + ,9.7 + ,9.2 + ,9.7 + ,9.5 + ,9.5 + ,9.4 + ,9.8 + ,9.5 + ,9.7 + ,9.7 + ,9.4 + ,10.2 + ,10.1 + ,13 + ,11.4 + ,10.3 + ,9.3 + ,9.5 + ,9.2 + ,9.2 + ,10.8 + ,10.8 + ,9.3 + ,9.4 + ,10.5 + ,12.4 + ,10 + ,10.2 + ,10.1 + ,9.8 + ,10.5 + ,11 + ,9.1 + ,9.7 + ,9.5 + ,9.4 + ,9.4 + ,9.5 + ,10 + ,10.4 + ,10.5 + ,9.5 + ,9.8 + ,10.5 + ,11 + ,12.2 + ,9.9 + ,9.6 + ,11 + ,9 + ,9 + ,9 + ,9.2 + ,9 + ,9 + ,9.3 + ,10.9 + ,9.8 + ,9.2 + ,9.2 + ,9.9 + ,9.5 + ,9.3) > 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] 9.854435 > sqrtn <- sqrt(length(x)) > (armse <- sd(x) / sqrtn) [1] 0.05276028 > (armose <- arm / armse) [1] 186.7775 > (geo <- geomean(x)) [1] 9.823262 > (har <- harmean(x)) [1] 9.795227 > (qua <- quamean(x)) [1] 9.88926 > (win <- winmean(x)) [,1] [,2] [1,] 9.854435 0.05276028 [2,] 9.847177 0.05065814 [3,] 9.845968 0.05034749 [4,] 9.845968 0.05034749 [5,] 9.845968 0.05034749 [6,] 9.843548 0.04973970 [7,] 9.829435 0.04639532 [8,] 9.822984 0.04498106 [9,] 9.797581 0.04004669 [10,] 9.793548 0.03936649 [11,] 9.780242 0.03633523 [12,] 9.780242 0.03633523 [13,] 9.780242 0.03633523 [14,] 9.774597 0.03559004 [15,] 9.774597 0.03559004 [16,] 9.781048 0.03512625 [17,] 9.781048 0.03512625 [18,] 9.781048 0.03512625 [19,] 9.781048 0.03512625 [20,] 9.781048 0.03512625 [21,] 9.772581 0.03406275 [22,] 9.772581 0.03406275 [23,] 9.772581 0.03406275 [24,] 9.762903 0.03291354 [25,] 9.762903 0.03291354 [26,] 9.762903 0.03291354 [27,] 9.762903 0.03291354 [28,] 9.751613 0.03164944 [29,] 9.739919 0.03042267 [30,] 9.739919 0.03042267 [31,] 9.739919 0.03042267 [32,] 9.739919 0.03042267 [33,] 9.739919 0.03042267 [34,] 9.739919 0.03042267 [35,] 9.739919 0.03042267 [36,] 9.739919 0.03042267 [37,] 9.739919 0.03042267 [38,] 9.739919 0.03042267 [39,] 9.739919 0.03042267 [40,] 9.739919 0.03042267 [41,] 9.739919 0.03042267 [42,] 9.739919 0.03042267 [43,] 9.757258 0.02924961 [44,] 9.757258 0.02924961 [45,] 9.757258 0.02924961 [46,] 9.757258 0.02924961 [47,] 9.757258 0.02924961 [48,] 9.757258 0.02924961 [49,] 9.757258 0.02924961 [50,] 9.757258 0.02924961 [51,] 9.736694 0.02717492 [52,] 9.736694 0.02717492 [53,] 9.736694 0.02717492 [54,] 9.714919 0.02506841 [55,] 9.714919 0.02506841 [56,] 9.714919 0.02506841 [57,] 9.714919 0.02506841 [58,] 9.691532 0.02291032 [59,] 9.691532 0.02291032 [60,] 9.691532 0.02291032 [61,] 9.716129 0.02131695 [62,] 9.716129 0.02131695 [63,] 9.716129 0.02131695 [64,] 9.690323 0.01900144 [65,] 9.690323 0.01900144 [66,] 9.690323 0.01900144 [67,] 9.690323 0.01900144 [68,] 9.690323 0.01900144 [69,] 9.690323 0.01900144 [70,] 9.690323 0.01900144 [71,] 9.661694 0.01656376 [72,] 9.661694 0.01656376 [73,] 9.661694 0.01656376 [74,] 9.661694 0.01656376 [75,] 9.661694 0.01656376 [76,] 9.661694 0.01656376 [77,] 9.661694 0.01656376 [78,] 9.630242 0.01403320 [79,] 9.630242 0.01403320 [80,] 9.630242 0.01403320 [81,] 9.630242 0.01403320 [82,] 9.630242 0.01403320 > (tri <- trimean(x)) [,1] [,2] [1,] 9.841057 0.05031102 [2,] 9.827459 0.04762915 [3,] 9.817355 0.04593990 [4,] 9.807500 0.04424055 [5,] 9.797479 0.04239875 [6,] 9.787288 0.04039158 [7,] 9.777350 0.03834121 [8,] 9.769397 0.03681934 [9,] 9.762174 0.03543671 [10,] 9.757895 0.03476034 [11,] 9.753982 0.03413819 [12,] 9.751339 0.03386285 [13,] 9.748649 0.03357134 [14,] 9.745909 0.03326258 [15,] 9.743578 0.03301274 [16,] 9.741204 0.03274786 [17,] 9.738318 0.03250668 [18,] 9.735377 0.03225021 [19,] 9.732381 0.03197737 [20,] 9.729327 0.03168702 [21,] 9.726214 0.03137788 [22,] 9.723529 0.03113607 [23,] 9.720792 0.03087826 [24,] 9.718000 0.03060331 [25,] 9.715657 0.03039733 [26,] 9.713265 0.03017718 [27,] 9.710825 0.02994184 [28,] 9.708333 0.02969020 [29,] 9.706316 0.02951026 [30,] 9.704787 0.02939915 [31,] 9.703226 0.02927888 [32,] 9.701630 0.02914881 [33,] 9.700000 0.02900826 [34,] 9.698333 0.02885649 [35,] 9.696629 0.02869270 [36,] 9.694886 0.02851600 [37,] 9.693103 0.02832542 [38,] 9.691279 0.02811990 [39,] 9.689412 0.02789827 [40,] 9.687500 0.02765922 [41,] 9.685542 0.02740132 [42,] 9.683537 0.02712297 [43,] 9.681481 0.02682239 [44,] 9.678750 0.02656112 [45,] 9.675949 0.02627742 [46,] 9.673077 0.02596916 [47,] 9.670130 0.02563397 [48,] 9.667105 0.02526914 [49,] 9.664000 0.02487157 [50,] 9.660811 0.02443769 [51,] 9.657534 0.02396336 [52,] 9.654861 0.02360790 [53,] 9.652113 0.02321907 [54,] 9.649286 0.02279306 [55,] 9.647101 0.02249139 [56,] 9.644853 0.02216053 [57,] 9.642537 0.02179718 [58,] 9.640152 0.02139750 [59,] 9.638462 0.02113039 [60,] 9.636719 0.02083609 [61,] 9.634921 0.02051147 [62,] 9.632258 0.02024465 [63,] 9.629508 0.01994738 [64,] 9.626667 0.01961582 [65,] 9.624576 0.01944234 [66,] 9.622414 0.01924692 [67,] 9.620175 0.01902694 [68,] 9.617857 0.01877928 [69,] 9.615455 0.01850034 [70,] 9.612963 0.01818583 [71,] 9.610377 0.01783065 [72,] 9.608654 0.01766370 [73,] 9.606863 0.01747282 [74,] 9.605000 0.01725478 [75,] 9.603061 0.01700572 [76,] 9.601042 0.01672106 [77,] 9.598936 0.01639527 [78,] 9.596739 0.01602160 [79,] 9.595556 0.01587334 [80,] 9.594318 0.01570013 [81,] 9.593023 0.01549817 [82,] 9.591667 0.01526288 > (midr <- midrange(x)) [1] 11.5 > midm <- array(NA,dim=8) > for (j in 1:8) midm[j] <- midmean(x,j) > midm [1] 9.648062 9.648062 9.648062 9.648062 9.648062 9.648062 9.648062 9.648062 > postscript(file="/var/wessaorg/rcomp/tmp/1nqhs1324133145.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/281jy1324133145.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/3lofy1324133145.tab") > > try(system("convert tmp/1nqhs1324133145.ps tmp/1nqhs1324133145.png",intern=TRUE)) character(0) > try(system("convert tmp/281jy1324133145.ps tmp/281jy1324133145.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.354 0.134 1.500