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(56.3 + ,62.3 + ,63.3 + ,59 + ,62.5 + ,62.5 + ,59 + ,56.5 + ,62 + ,53.8 + ,61.5 + ,61.5 + ,64.5 + ,58.3 + ,51.3 + ,58.8 + ,65.3 + ,59.5 + ,61.3 + ,63.3 + ,61.8 + ,53.5 + ,58 + ,61.3 + ,63.3 + ,61.5 + ,60.8 + ,59 + ,65.5 + ,56.3 + ,64.3 + ,58 + ,64.3 + ,57.5 + ,57.8 + ,61.5 + ,62.3 + ,61.8 + ,65.3 + ,58.3 + ,62.8 + ,59.3 + ,61.5 + ,62 + ,61.3 + ,62.3 + ,52.8 + ,59.8 + ,59.5 + ,61.3 + ,63.5 + ,64.8 + ,60 + ,59 + ,55.8 + ,57.8 + ,61.3 + ,62.3 + ,64.3 + ,55.5 + ,64.5 + ,60 + ,56.3 + ,58.3 + ,60 + ,54.5 + ,55.8 + ,62.8 + ,60.5 + ,63.3 + ,66.8 + ,60 + ,60.5 + ,64.3 + ,58.3 + ,66.5 + ,65.3 + ,60.5 + ,59.5 + ,59 + ,61.3 + ,61.5 + ,64.8 + ,56.8 + ,66.5 + ,61.5 + ,63 + ,57 + ,65.5 + ,62 + ,56 + ,61.3 + ,55.5 + ,61 + ,54.5 + ,66 + ,56.5 + ,56 + ,51.5 + ,62 + ,63 + ,61 + ,64 + ,61 + ,59.8 + ,61.3 + ,63.3 + ,63.5 + ,61.5 + ,60.3 + ,61.3 + ,64.8 + ,60.5 + ,57.3 + ,59.5 + ,60.8 + ,60.5 + ,67 + ,64.8 + ,50.5 + ,57.5 + ,60.5 + ,61.8 + ,61.3 + ,66.3 + ,53.3 + ,59 + ,57.8 + ,60 + ,68.3 + ,67.5 + ,63.8 + ,65 + ,59.5 + ,66 + ,61.8 + ,57.3 + ,66 + ,56.5 + ,58.3 + ,61 + ,62.8 + ,59.3 + ,67.3 + ,66.3 + ,64.5 + ,60.5 + ,66 + ,57.5 + ,64 + ,68 + ,63.5 + ,69 + ,63.8 + ,66 + ,63.5 + ,59.5 + ,66.3 + ,57 + ,60 + ,57 + ,67.3 + ,62 + ,65 + ,59.5 + ,67.8 + ,58 + ,60 + ,58.5 + ,58.3 + ,61.5 + ,65 + ,66.5 + ,68.5 + ,57 + ,61.5 + ,66.5 + ,52.5 + ,55 + ,71 + ,66.5 + ,58.8 + ,66.3 + ,65.8 + ,71 + ,59.5 + ,69.8 + ,62.5 + ,56.5 + ,57.5 + ,65.3 + ,67.3 + ,67 + ,66 + ,61.8 + ,60 + ,63 + ,60.5 + ,65.5 + ,62 + ,59 + ,61.8 + ,63.3 + ,66 + ,61.8 + ,63 + ,57.5 + ,63 + ,56 + ,60.5 + ,56.8 + ,64 + ,60 + ,69.5 + ,63.3 + ,56.3 + ,72 + ,65.3 + ,60.8 + ,55 + ,55 + ,66.5 + ,56.8 + ,64.8 + ,64.5 + ,58 + ,62.8 + ,63.8 + ,57.8 + ,57.3 + ,63.5 + ,55 + ,66.5 + ,65 + ,61.5 + ,62 + ,59.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: Wessa, P., (2007), Central Tendency (v1.0.2) 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 > #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] 61.36456 > sqrtn <- sqrt(length(x)) > (armse <- sd(x) / sqrtn) [1] 0.2562814 > (armose <- arm / armse) [1] 239.4421 > (geo <- geomean(x)) [1] 61.23727 > (har <- harmean(x)) [1] 61.1089 > (qua <- quamean(x)) [1] 61.49073 > (win <- winmean(x)) [,1] [,2] [1,] 61.36371 0.2549870 [2,] 61.36540 0.2547074 [3,] 61.36287 0.2504160 [4,] 61.36287 0.2489552 [5,] 61.36287 0.2460295 [6,] 61.35527 0.2437133 [7,] 61.35823 0.2417951 [8,] 61.37173 0.2375665 [9,] 61.36414 0.2366800 [10,] 61.37257 0.2327236 [11,] 61.36329 0.2317018 [12,] 61.36329 0.2317018 [13,] 61.36329 0.2317018 [14,] 61.37511 0.2264639 [15,] 61.37511 0.2264639 [16,] 61.38186 0.2228697 [17,] 61.36034 0.2206993 [18,] 61.37553 0.2190989 [19,] 61.37553 0.2190989 [20,] 61.37553 0.2190989 [21,] 61.40211 0.2163889 [22,] 61.40211 0.2163889 [23,] 61.40211 0.2163889 [24,] 61.38186 0.2143936 [25,] 61.40295 0.2123017 [26,] 61.40295 0.2123017 [27,] 61.40295 0.2123017 [28,] 61.36751 0.2089039 [29,] 61.40422 0.2053474 [30,] 61.40422 0.2053474 [31,] 61.40422 0.2053474 [32,] 61.43122 0.2028144 [33,] 61.43122 0.2028144 [34,] 61.43122 0.2028144 [35,] 61.40169 0.2000286 [36,] 61.40169 0.1916478 [37,] 61.40169 0.1916478 [38,] 61.40169 0.1916478 [39,] 61.40169 0.1857353 [40,] 61.40169 0.1857353 [41,] 61.40169 0.1857353 [42,] 61.40169 0.1857353 [43,] 61.40169 0.1857353 [44,] 61.40169 0.1759477 [45,] 61.40169 0.1759477 [46,] 61.40169 0.1759477 [47,] 61.40169 0.1759477 [48,] 61.40169 0.1689812 [49,] 61.40169 0.1689812 [50,] 61.40169 0.1689812 [51,] 61.40169 0.1689812 [52,] 61.46751 0.1634700 [53,] 61.40042 0.1577783 [54,] 61.40042 0.1577783 [55,] 61.40042 0.1577783 [56,] 61.40042 0.1577783 [57,] 61.35232 0.1538227 [58,] 61.40127 0.1497554 [59,] 61.47595 0.1437420 [60,] 61.47595 0.1437420 [61,] 61.45021 0.1333619 [62,] 61.45021 0.1333619 [63,] 61.45021 0.1333619 [64,] 61.39620 0.1290417 [65,] 61.39620 0.1290417 [66,] 61.39620 0.1290417 [67,] 61.31139 0.1224803 [68,] 61.39747 0.1157298 [69,] 61.39747 0.1157298 [70,] 61.39747 0.1157298 [71,] 61.45738 0.1111932 [72,] 61.39662 0.1065271 [73,] 61.39662 0.1065271 [74,] 61.39662 0.1065271 [75,] 61.39662 0.1065271 [76,] 61.39662 0.1065271 [77,] 61.39662 0.1065271 [78,] 61.39662 0.1065271 [79,] 61.39662 0.0915528 > (tri <- trimean(x)) [,1] [,2] [1,] 61.36456 0.2502034 [2,] 61.36553 0.2451367 [3,] 61.36840 0.2399173 [4,] 61.36840 0.2360178 [5,] 61.37225 0.2323197 [6,] 61.37422 0.2291093 [7,] 61.37758 0.2261876 [8,] 61.37758 0.2234424 [9,] 61.38174 0.2212131 [10,] 61.38387 0.2189847 [11,] 61.38512 0.2171496 [12,] 61.38732 0.2153324 [13,] 61.38957 0.2134095 [14,] 61.39187 0.2113736 [15,] 61.39324 0.2097541 [16,] 61.39324 0.2080370 [17,] 61.39557 0.2065495 [18,] 61.39801 0.2051610 [19,] 61.39950 0.2038218 [20,] 61.40102 0.2023968 [21,] 61.40256 0.2008802 [22,] 61.40259 0.1994791 [23,] 61.40262 0.1979858 [24,] 61.40265 0.1963939 [25,] 61.40374 0.1948438 [26,] 61.40378 0.1933415 [27,] 61.40383 0.1917367 [28,] 61.40387 0.1900218 [29,] 61.40559 0.1884255 [30,] 61.40565 0.1869622 [31,] 61.40571 0.1853939 [32,] 61.40571 0.1837126 [33,] 61.40468 0.1820795 [34,] 61.40355 0.1803262 [35,] 61.40240 0.1784428 [36,] 61.40242 0.1766067 [37,] 61.40245 0.1751833 [38,] 61.40248 0.1736482 [39,] 61.40252 0.1719919 [40,] 61.40255 0.1705874 [41,] 61.40258 0.1690679 [42,] 61.40261 0.1674233 [43,] 61.40265 0.1656426 [44,] 61.40268 0.1637133 [45,] 61.40272 0.1622687 [46,] 61.40276 0.1606975 [47,] 61.40280 0.1589881 [48,] 61.40284 0.1571270 [49,] 61.40288 0.1555693 [50,] 61.40292 0.1538679 [51,] 61.40296 0.1520086 [52,] 61.40301 0.1499751 [53,] 61.40076 0.1481358 [54,] 61.40078 0.1465218 [55,] 61.40079 0.1447472 [56,] 61.40080 0.1427947 [57,] 61.40081 0.1406441 [58,] 61.40248 0.1385703 [59,] 61.40252 0.1365926 [60,] 61.40000 0.1348554 [61,] 61.39739 0.1329273 [62,] 61.39558 0.1315832 [63,] 61.39558 0.1300808 [64,] 61.39369 0.1284009 [65,] 61.39159 0.1268706 [66,] 61.39143 0.1251528 [67,] 61.39126 0.1232230 [68,] 61.39406 0.1216050 [69,] 61.39394 0.1203549 [70,] 61.39381 0.1189319 [71,] 61.39368 0.1173123 [72,] 61.39140 0.1158707 [73,] 61.39121 0.1146492 [74,] 61.39101 0.1132404 [75,] 61.39080 0.1116165 [76,] 61.39059 0.1097441 [77,] 61.39036 0.1075823 [78,] 61.39012 0.1050809 [79,] 61.38987 0.1021768 > (midr <- midrange(x)) [1] 61.25 > midm <- array(NA,dim=8) > for (j in 1:8) midm[j] <- midmean(x,j) > midm [1] 61.45041 61.45041 61.45041 61.45041 61.45041 61.42623 61.45041 61.45041 > postscript(file="/var/www/html/rcomp/tmp/1ydwv1289124038.ps",horizontal=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/html/rcomp/tmp/2ydwv1289124038.ps",horizontal=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/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/html/rcomp/tmp/30y5u1289124038.tab") > > try(system("convert tmp/1ydwv1289124038.ps tmp/1ydwv1289124038.png",intern=TRUE)) character(0) > try(system("convert tmp/2ydwv1289124038.ps tmp/2ydwv1289124038.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.208 0.374 1.398