R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(18.09 + ,18.13 + ,18 + ,17.72 + ,17.62 + ,17.13 + ,17.39 + ,17.09 + ,17.14 + ,17.38 + ,16.8 + ,16.51 + ,16.01 + ,15.05 + ,13.56 + ,15.22 + ,14.91 + ,15.13 + ,15.25 + ,14.61 + ,14.87 + ,15.1 + ,15.22 + ,15.46 + ,14.96 + ,14 + ,14.2 + ,13.9 + ,13.63 + ,13.32 + ,13.8 + ,14.5 + ,14.12 + ,13.88 + ,14.11 + ,14.26 + ,14.71 + ,14.52 + ,14.32 + ,14.69 + ,15.25 + ,15.04 + ,14.82 + ,14.5 + ,14.72 + ,14.6 + ,14.58 + ,14 + ,14.75 + ,14.41 + ,15.19 + ,14.96 + ,14.83 + ,14.25 + ,14.32 + ,14.93 + ,14.65 + ,15.65 + ,15.65 + ,15.61 + ,15.95 + ,15.83 + ,15.77 + ,16.7 + ,16.69 + ,16.4 + ,16.77 + ,16.78 + ,16.84 + ,16.68 + ,16.67 + ,16.3 + ,16.37 + ,16.6 + ,16.72 + ,16.82 + ,17.5 + ,17.2 + ,17.29 + ,17.2 + ,17.2 + ,17.32 + ,17.16 + ,17.41 + ,17.31 + ,17.3 + ,17.34 + ,17.19 + ,17.05 + ,17.07 + ,17.07 + ,16.81 + ,16.81 + ,16.96 + ,17.05 + ,17 + ,16.77 + ,16.66 + ,16.2 + ,16.26 + ,15.84 + ,15.85 + ,15.71 + ,15.84 + ,15.73 + ,15.77 + ,15.3 + ,15.41 + ,15.4 + ,15.61 + ,15 + ,14.12 + ,14.01 + ,13.46 + ,13.85 + ,13.92 + ,13.59 + ,13.67 + ,13.05 + ,12.87 + ,12.28 + ,11.88 + ,12.49 + ,11.9 + ,10.8 + ,10.99 + ,10.15 + ,10.07 + ,10.05 + ,10.31 + ,9.94 + ,9.65 + ,9.74 + ,9.85 + ,9.96 + ,9.63 + ,9.43 + ,8.77 + ,9.53 + ,9.5 + ,9.78 + ,9.9 + ,9.93 + ,10.35 + ,9.79 + ,9.63 + ,9.02 + ,9.25 + ,9.11 + ,8.95 + ,9.3 + ,9.13 + ,9.75 + ,9.65 + ,9.27 + ,9.59 + ,9.58 + ,9.98 + ,9.57 + ,9.6 + ,9.64 + ,9.46 + ,9.19 + ,9.02 + ,8.9 + ,9.12 + ,8.86 + ,8.94 + ,9 + ,9.23 + ,9.39 + ,9.62 + ,9.9 + ,9.8 + ,9.2 + ,9.87 + ,9.6 + ,9.37 + ,9.21 + ,9.15 + ,8.7 + ,8.2 + ,8.1 + ,6.68 + ,7.7 + ,8.2 + ,7.55 + ,7.53 + ,7.02 + ,6.6 + ,6 + ,3.95 + ,4.91 + ,5.15 + ,5.7 + ,1.93 + ,1.36 + ,1.1 + ,0.98 + ,1 + ,1.1 + ,1.06 + ,1.01 + ,0.93 + ,0.89 + ,0.9 + ,0.88 + ,0.85 + ,0.84 + ,0.94 + ,1 + ,1.1 + ,1.15 + ,1.05 + ,1.06 + ,0.99 + ,0.93 + ,0.84 + ,0.9 + ,0.86 + ,0.78 + ,0.77 + ,0.6 + ,0.57 + ,0.62 + ,0.62 + ,0.58 + ,0.6 + ,0.73 + ,0.75 + ,0.63 + ,0.71 + ,0.68 + ,0.64 + ,0.66 + ,0.69 + ,0.72 + ,0.92 + ,0.85 + ,0.95 + ,1 + ,1.15 + ,1.07 + ,1.01 + ,0.99 + ,0.95 + ,0.92 + ,0.94 + ,0.96 + ,1.05 + ,1.04 + ,1.1 + ,1.14 + ,1.12 + ,1.19 + ,1.35 + ,1.62 + ,1.43 + ,1.45 + ,1.47 + ,1.35 + ,1.15 + ,1.46 + ,1.3 + ,1.3 + ,1.5 + ,1.52 + ,1.63 + ,1.9 + ,1.65 + ,1.5 + ,1.38 + ,1.39) > 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.70055 > sqrtn <- sqrt(length(x)) > (armse <- sd(x) / sqrtn) [1] 0.3763104 > (armose <- arm / armse) [1] 25.77805 > (geo <- geomean(x)) [1] 6.127268 > (har <- harmean(x)) [1] 2.805945 > (qua <- quamean(x)) [1] 11.51601 > (win <- winmean(x)) [,1] [,2] [1,] 9.700440 0.3762951 [2,] 9.699927 0.3762283 [3,] 9.696850 0.3759828 [4,] 9.695678 0.3758425 [5,] 9.693480 0.3756734 [6,] 9.691722 0.3755036 [7,] 9.691465 0.3754421 [8,] 9.691758 0.3753681 [9,] 9.691099 0.3752108 [10,] 9.690733 0.3751236 [11,] 9.691136 0.3750225 [12,] 9.691136 0.3749510 [13,] 9.691136 0.3748736 [14,] 9.687546 0.3744414 [15,] 9.688645 0.3743450 [16,] 9.689231 0.3742937 [17,] 9.692344 0.3739217 [18,] 9.690366 0.3737761 [19,] 9.689670 0.3736134 [20,] 9.688938 0.3735597 [21,] 9.686630 0.3732680 [22,] 9.686630 0.3730106 [23,] 9.687473 0.3729375 [24,] 9.686593 0.3727334 [25,] 9.686593 0.3727334 [26,] 9.683736 0.3722235 [27,] 9.679780 0.3719382 [28,] 9.668498 0.3709692 [29,] 9.666374 0.3708183 [30,] 9.666374 0.3706453 [31,] 9.666374 0.3706453 [32,] 9.666374 0.3704608 [33,] 9.663956 0.3702898 [34,] 9.663956 0.3700942 [35,] 9.666520 0.3698726 [36,] 9.661245 0.3692943 [37,] 9.658535 0.3691040 [38,] 9.658535 0.3688863 [39,] 9.657106 0.3687862 [40,] 9.655641 0.3686837 [41,] 9.655641 0.3684491 [42,] 9.646410 0.3678057 [43,] 9.636960 0.3664165 [44,] 9.620842 0.3650609 [45,] 9.615897 0.3647238 [46,] 9.605788 0.3637778 [47,] 9.598901 0.3633128 [48,] 9.590110 0.3624516 [49,] 9.561392 0.3597190 [50,] 9.550403 0.3589968 [51,] 9.531722 0.3577782 [52,] 9.529817 0.3576545 [53,] 9.533700 0.3573182 [54,] 9.535678 0.3568476 [55,] 9.525604 0.3558915 [56,] 9.525604 0.3558915 [57,] 9.517253 0.3553537 [58,] 9.521502 0.3543456 [59,] 9.532308 0.3514633 [60,] 9.532308 0.3514633 [61,] 9.534542 0.3499307 [62,] 9.534542 0.3499307 [63,] 9.502234 0.3475365 [64,] 9.495201 0.3463953 [65,] 9.495201 0.3460409 [66,] 9.480696 0.3436973 [67,] 9.473333 0.3425122 [68,] 9.475824 0.3422977 [69,] 9.470769 0.3416104 [70,] 9.478462 0.3409484 [71,] 9.470659 0.3404659 [72,] 9.460110 0.3390367 [73,] 9.478828 0.3362435 [74,] 9.467985 0.3351792 [75,] 9.470733 0.3345387 [76,] 9.529194 0.3278886 [77,] 9.526374 0.3264736 [78,] 10.103516 0.2782262 [79,] 10.372637 0.2554318 [80,] 10.437106 0.2495422 [81,] 10.588425 0.2361875 [82,] 10.666520 0.2285740 [83,] 10.845897 0.2148906 [84,] 10.848974 0.2116432 [85,] 10.945495 0.2034182 [86,] 11.103004 0.1920011 [87,] 11.103004 0.1911252 [88,] 11.138462 0.1869479 [89,] 11.255824 0.1773666 [90,] 11.285495 0.1749904 [91,] 11.278828 0.1745265 > (tri <- trimean(x)) [,1] [,2] [1,] 9.703137 0.3762988 [2,] 9.705874 0.3762817 [3,] 9.708914 0.3762778 [4,] 9.713057 0.3763387 [5,] 9.717567 0.3764172 [6,] 9.722605 0.3765125 [7,] 9.728031 0.3766192 [8,] 9.733580 0.3767158 [9,] 9.739176 0.3768025 [10,] 9.744941 0.3768882 [11,] 9.750837 0.3769625 [12,] 9.756787 0.3770255 [13,] 9.762834 0.3770725 [14,] 9.768980 0.3771028 [15,] 9.775514 0.3771464 [16,] 9.782075 0.3771732 [17,] 9.788703 0.3771782 [18,] 9.795232 0.3771848 [19,] 9.802000 0.3771745 [20,] 9.808927 0.3771469 [21,] 9.816017 0.3770931 [22,] 9.823362 0.3770272 [23,] 9.830837 0.3769456 [24,] 9.838400 0.3768352 [25,] 9.846143 0.3767022 [26,] 9.854027 0.3765325 [27,] 9.862192 0.3763540 [28,] 9.870691 0.3761519 [29,] 9.879860 0.3759623 [30,] 9.889296 0.3757391 [31,] 9.898910 0.3754818 [32,] 9.908708 0.3751784 [33,] 9.918696 0.3748364 [34,] 9.928976 0.3744520 [35,] 9.939458 0.3740242 [36,] 9.950050 0.3735519 [37,] 9.961055 0.3730493 [38,] 9.972386 0.3724942 [39,] 9.983949 0.3718851 [40,] 9.995803 0.3712121 [41,] 10.007958 0.3704711 [42,] 10.020370 0.3696647 [43,] 10.033369 0.3688074 [44,] 10.046973 0.3679327 [45,] 10.061421 0.3670348 [46,] 10.076354 0.3660617 [47,] 10.091955 0.3650375 [48,] 10.108136 0.3639340 [49,] 10.124971 0.3627649 [50,] 10.143121 0.3616138 [51,] 10.162047 0.3603820 [52,] 10.182012 0.3590854 [53,] 10.202515 0.3576674 [54,] 10.223394 0.3561320 [55,] 10.244724 0.3544762 [56,] 10.266894 0.3527114 [57,] 10.289623 0.3507812 [58,] 10.313185 0.3486974 [59,] 10.337226 0.3464786 [60,] 10.361569 0.3442201 [61,] 10.386556 0.3417505 [62,] 10.412148 0.3391398 [63,] 10.438435 0.3362851 [64,] 10.466414 0.3332859 [65,] 10.495385 0.3300667 [66,] 10.525177 0.3265621 [67,] 10.556259 0.3228575 [68,] 10.588467 0.3188625 [69,] 10.621556 0.3144898 [70,] 10.655789 0.3097230 [71,] 10.690840 0.3045260 [72,] 10.727209 0.2988199 [73,] 10.765039 0.2926069 [74,] 10.803520 0.2859578 [75,] 10.843577 0.2786413 [76,] 10.884876 0.2705395 [77,] 10.925798 0.2621334 [78,] 10.968205 0.2528166 [79,] 10.994522 0.2473662 [80,] 11.013540 0.2433781 [81,] 11.031261 0.2394460 [82,] 11.044954 0.2362196 [83,] 11.056729 0.2332525 [84,] 11.063333 0.2310694 [85,] 11.070097 0.2288539 [86,] 11.074059 0.2270159 [87,] 11.073131 0.2258165 [88,] 11.072165 0.2244794 [89,] 11.070000 0.2232479 [90,] 11.063871 0.2225359 [91,] 11.056484 0.2218253 > (midr <- midrange(x)) [1] 9.35 > midm <- array(NA,dim=8) > for (j in 1:8) midm[j] <- midmean(x,j) > midm [1] 10.55419 10.62225 10.62225 10.62225 10.62225 10.55626 10.62225 10.62225 > postscript(file="/var/www/html/rcomp/tmp/139kr1236722596.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/2skkb1236722596.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/34u8x1236722597.tab") > > system("convert tmp/139kr1236722596.ps tmp/139kr1236722596.png") > system("convert tmp/2skkb1236722596.ps tmp/2skkb1236722596.png") > > > proc.time() user system elapsed 1.446 0.368 5.806