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(4.2632564145606E-14 + ,0.0051001932048425 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,-0.010226531783798 + ,3.3750779948605E-14 + ,3.3750779948605E-14 + ,3.3750779948605E-14 + ,3.3750779948605E-14 + ,0.010226531783834 + ,-0.6758556834499 + ,0.66342407910779 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,0.0080616046710476 + ,2.0872192862953E-14 + ,2.0872192862953E-14 + ,2.0872192862953E-14 + ,2.0872192862953E-14 + ,-0.0080616046709792 + ,-0.018567187675552 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,-0.013585114590278 + ,2.8865798640254E-14 + ,2.8865798640254E-14 + ,0.013585114590329 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,-0.013585114590278 + ,0.013585114590329 + ,-0.0075244899785778 + ,3.7747582837255E-14 + ,3.7747582837255E-14 + ,3.7747582837255E-14 + ,3.7747582837255E-14 + ,3.7747582837255E-14 + ,-0.014454416740162 + ,-2.2204460492503E-15 + ,-0.024041483624702 + ,-0.014229489103917 + ,0.014229489103947 + ,-0.039220713153317 + ,-3.5971225997855E-14 + ,-3.5971225997855E-14 + ,-3.5971225997855E-14 + ,0.015391150320264 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-0.015391150320333 + ,-0.0098442140347359 + ,4.1300296516056E-14 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,-0.013278203386059 + ,0.013278203386118 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,4.1300296516056E-14 + ,-0.025043044965659 + ,0.0058997221272046 + ,1.6431300764452E-14 + ,1.6431300764452E-14 + ,1.6431300764452E-14 + ,1.6431300764452E-14 + ,1.6431300764452E-14 + ,0.010865129869116 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,-0.026106745837688 + ,-0.015477523068867 + ,0.015477523068947 + ,3.3306690738755E-14 + ,-0.015477523068867 + ,0.015477523068947 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947 + ,3.3306690738755E-14 + ,3.3306690738755E-14 + ,3.3306690738755E-14 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947 + ,3.3306690738755E-14 + ,3.3306690738755E-14 + ,3.3306690738755E-14 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947 + ,3.3306690738755E-14 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947) > 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] -0.0007768443 > sqrtn <- sqrt(length(x)) > (armse <- sd(x) / sqrtn) [1] 0.004777797 > (armose <- arm / armse) [1] -0.1625947 > (geo <- geomean(x)) [1] NaN Warning message: In log(x) : NaNs produced > (har <- harmean(x)) [1] 3.127617e-14 > (qua <- quamean(x)) [1] 0.0674036 > (win <- winmean(x)) [,1] [,2] [1,] -8.334022e-04 5.797141e-04 [2,] -7.022625e-04 5.422454e-04 [3,] -6.863070e-04 5.385539e-04 [4,] -6.662758e-04 5.340745e-04 [5,] -5.294184e-04 5.067098e-04 [6,] -4.367285e-04 4.912714e-04 [7,] -4.367285e-04 4.912714e-04 [8,] -4.401834e-04 4.907101e-04 [9,] -4.924581e-04 4.824629e-04 [10,] -5.246768e-04 4.776008e-04 [11,] -5.246768e-04 4.776008e-04 [12,] -5.430915e-04 4.748872e-04 [13,] -5.374773e-04 4.740016e-04 [14,] -4.719059e-04 4.638705e-04 [15,] -4.550364e-04 4.613272e-04 [16,] -4.034864e-04 4.536959e-04 [17,] -4.034864e-04 4.536959e-04 [18,] -5.930410e-04 4.181070e-04 [19,] -6.537078e-04 4.098822e-04 [20,] -8.702005e-04 3.826876e-04 [21,] -1.097198e-03 3.581620e-04 [22,] -1.185146e-03 3.498713e-04 [23,] -1.771669e-03 3.141069e-04 [24,] -1.405468e-03 2.474999e-04 [25,] -1.357678e-03 2.389556e-04 [26,] -1.125939e-03 1.978392e-04 [27,] -1.053429e-03 1.850818e-04 [28,] 2.112976e-14 2.195272e-15 [29,] 2.112976e-14 2.195272e-15 [30,] 2.112976e-14 2.195272e-15 [31,] 2.140510e-14 2.133415e-15 [32,] 2.140510e-14 2.133415e-15 [33,] 2.140510e-14 2.133415e-15 [34,] 2.140510e-14 2.133415e-15 [35,] 2.140510e-14 2.133415e-15 [36,] 2.140510e-14 2.133415e-15 [37,] 2.140510e-14 2.133415e-15 [38,] 2.140510e-14 2.133415e-15 [39,] 2.140510e-14 2.133415e-15 [40,] 2.762235e-14 1.381943e-15 [41,] 2.853273e-14 1.285640e-15 [42,] 2.853273e-14 1.285640e-15 [43,] 2.853273e-14 1.285640e-15 [44,] 2.853273e-14 1.285640e-15 [45,] 2.853273e-14 1.285640e-15 [46,] 2.853273e-14 1.285640e-15 [47,] 3.093303e-14 1.054689e-15 [48,] 3.093303e-14 1.054689e-15 [49,] 3.093303e-14 1.054689e-15 [50,] 3.093303e-14 1.054689e-15 [51,] 3.093303e-14 1.054689e-15 [52,] 3.093303e-14 1.054689e-15 [53,] 3.093303e-14 1.054689e-15 [54,] 3.201217e-14 9.631009e-16 [55,] 3.201217e-14 9.631009e-16 [56,] 3.201217e-14 9.631009e-16 [57,] 3.201217e-14 9.631009e-16 [58,] 3.201217e-14 9.631009e-16 [59,] 3.253620e-14 9.213052e-16 [60,] 3.253620e-14 9.213052e-16 [61,] 3.253620e-14 9.213052e-16 [62,] 3.253620e-14 9.213052e-16 [63,] 3.253620e-14 9.213052e-16 [64,] 3.253620e-14 9.213052e-16 [65,] 3.253620e-14 9.213052e-16 [66,] 3.253620e-14 9.213052e-16 > (tri <- trimean(x)) [,1] [,2] [1,] -7.219053e-04 5.461201e-04 [2,] -6.081330e-04 5.085947e-04 [3,] -5.596126e-04 4.896484e-04 [4,] -5.156214e-04 4.705533e-04 [5,] -4.759756e-04 4.511930e-04 [6,] -4.646047e-04 4.374829e-04 [7,] -4.696005e-04 4.261507e-04 [8,] -4.747048e-04 4.139358e-04 [9,] -4.794468e-04 4.008310e-04 [10,] -4.778405e-04 3.880327e-04 [11,] -4.725780e-04 3.749176e-04 [12,] -4.671958e-04 3.606367e-04 [13,] -4.599261e-04 3.454170e-04 [14,] -4.529895e-04 3.288081e-04 [15,] -4.513999e-04 3.119214e-04 [16,] -4.511113e-04 2.935085e-04 [17,] -4.546975e-04 2.739745e-04 [18,] -4.583712e-04 2.518038e-04 [19,] -4.491346e-04 2.318781e-04 [20,] -4.356758e-04 2.101754e-04 [21,] -4.081743e-04 1.890458e-04 [22,] -3.661093e-04 1.677987e-04 [23,] -3.177600e-04 1.433024e-04 [24,] -2.345845e-04 1.171011e-04 [25,] -1.695354e-04 9.789842e-05 [26,] -1.053115e-04 7.425738e-05 [27,] -5.153760e-05 5.153760e-05 [28,] 2.710178e-14 1.919588e-15 [29,] 2.710178e-14 1.889331e-15 [30,] 2.771117e-14 1.856016e-15 [31,] 2.802911e-14 1.819271e-15 [32,] 2.834334e-14 1.784290e-15 [33,] 2.866695e-14 1.745563e-15 [34,] 2.900037e-14 1.702575e-15 [35,] 2.934405e-14 1.654705e-15 [36,] 2.969847e-14 1.601186e-15 [37,] 3.006413e-14 1.541056e-15 [38,] 3.044160e-14 1.473074e-15 [39,] 3.083144e-14 1.395591e-15 [40,] 3.123427e-14 1.306331e-15 [41,] 3.138732e-14 1.290990e-15 [42,] 3.150736e-14 1.282016e-15 [43,] 3.163162e-14 1.271820e-15 [44,] 3.176031e-14 1.260260e-15 [45,] 3.189368e-14 1.247166e-15 [46,] 3.203199e-14 1.232346e-15 [47,] 3.217552e-14 1.215571e-15 [48,] 3.222636e-14 1.216291e-15 [49,] 3.227919e-14 1.216574e-15 [50,] 3.233414e-14 1.216364e-15 [51,] 3.239132e-14 1.215597e-15 [52,] 3.245089e-14 1.214200e-15 [53,] 3.251300e-14 1.212089e-15 [54,] 3.257781e-14 1.209168e-15 [55,] 3.260108e-14 1.212831e-15 [56,] 3.262542e-14 1.216187e-15 [57,] 3.262542e-14 1.219184e-15 [58,] 3.265088e-14 1.221763e-15 [59,] 3.270555e-14 1.223852e-15 [60,] 3.271272e-14 1.228898e-15 [61,] 3.272027e-14 1.233640e-15 [62,] 3.272821e-14 1.238013e-15 [63,] 3.273658e-14 1.241942e-15 [64,] 3.274541e-14 1.245339e-15 [65,] 3.275475e-14 1.248099e-15 [66,] 3.276464e-14 1.250092e-15 > (midr <- midrange(x)) [1] -0.006215802 > midm <- array(NA,dim=8) > for (j in 1:8) midm[j] <- midmean(x,j) > midm [1] 3.407111e-14 3.407111e-14 3.407111e-14 3.407111e-14 3.407111e-14 [6] 3.407111e-14 3.407111e-14 3.407111e-14 > postscript(file="/var/www/html/rcomp/tmp/1smvh1290524796.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/23dc21290524796.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/3ny3j1290524796.tab") > > try(system("convert tmp/1smvh1290524796.ps tmp/1smvh1290524796.png",intern=TRUE)) character(0) > try(system("convert tmp/23dc21290524796.ps tmp/23dc21290524796.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.030 0.365 2.360