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(0.24320322098874 + ,-5.7731597280508E-15 + ,-5.7731597280508E-15 + ,-5.7731597280508E-15 + ,-5.7731597280508E-15 + ,-0.24320322098871 + ,3.9523939676656E-14 + ,3.9523939676656E-14 + ,0.01889076246954 + ,-0.018890762469514 + ,3.9523939676656E-14 + ,0.01889076246954 + ,-0.018890762469514 + ,0.01889076246954 + ,-1.4210854715202E-14 + ,-1.4210854715202E-14 + ,-1.4210854715202E-14 + ,-0.077171589615714 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-0.010797183330221 + ,4.3076653355456E-14 + ,0.00063836580524335 + ,-0.00063836580522958 + ,4.3076653355456E-14 + ,4.3076653355456E-14 + ,4.3076653355456E-14 + ,4.3076653355456E-14 + ,0.010797183330243 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-0.010797183330221 + ,0.010797183330243 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-0.010797183330221 + ,0.010797183330243 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-2.0872192862953E-14 + ,-0.33710414817462 + ,-0.020563978997795 + ,0.020563978997754 + ,4.8849813083507E-15 + ,4.8849813083507E-15 + ,-0.036039936483195 + ,0.015475957485402 + ,-4.5741188614556E-14 + ,-4.5741188614556E-14 + ,-4.5741188614556E-14 + ,-4.5741188614556E-14 + ,-4.5741188614556E-14 + ,-4.5741188614556E-14 + ,-4.5741188614556E-14 + ,-0.0063434739221457 + ,0.026907452919929 + ,4.8849813083507E-15 + ,-0.020563978997795 + ,-4.5741188614556E-14 + ,-4.5741188614556E-14 + ,-0.021918685707646 + ,8.8817841970013E-16 + ,0.014665707402601 + ,-0.01466570740263 + ,-0.079734968018899 + ,0.094400675421454 + ,-2.9753977059954E-14 + ,-2.9753977059954E-14 + ,-2.9753977059954E-14 + ,-0.01466570740263 + ,8.8817841970013E-16 + ,8.8817841970013E-16 + ,0.014665707402601 + ,-2.9753977059954E-14 + ,-0.01466570740263 + ,-0.0055555698445993 + ,-0.018744691286197 + ,-4.6185277824407E-14 + ,-4.6185277824407E-14 + ,0.018744691286154 + ,2.6645352591004E-15 + ,-0.018744691286197 + ,-0.0056926149932464 + ,-0.01921288685996 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,0.00096946202453108 + ,-1.6875389974302E-14 + ,-1.6875389974302E-14 + ,-0.00096946202451687 + ,0.00096946202453108 + ,-1.6875389974302E-14 + ,-0.00096946202451687 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,-0.24125023635047 + ,0.24125023635051 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,0.019212886860031 + ,4.0412118096356E-14 + ,4.0412118096356E-14 + ,4.0412118096356E-14 + ,-0.01921288685996 + ,3.1086244689504E-14 + ,3.1086244689504E-14 + ,-0.071351199555069 + ,9.3258734068513E-15 + ,9.3258734068513E-15 + ,9.3258734068513E-15 + ,9.3258734068513E-15 + ,-0.01892800988549 + ,2.8421709430404E-14 + ,2.8421709430404E-14 + ,2.8421709430404E-14 + ,2.8421709430404E-14 + ,0.018928009885528 + ,9.3258734068513E-15 + ,-0.01892800988549 + ,-0.034560675065472 + ,-0.011049836186604 + ,-1.9539925233403E-14 + ,-1.9539925233403E-14 + ,-1.9539925233403E-14 + ,0.01104983618658 + ,-4.4408920985006E-15 + ,-4.4408920985006E-15 + ,-4.4408920985006E-15 + ,-4.4408920985006E-15 + ,-4.4408920985006E-15 + ,-0.011049836186604 + ,-0.10043439732182 + ,0.11148423350835 + ,-4.4408920985006E-15 + ,-4.4408920985006E-15 + ,-4.4408920985006E-15 + ,-4.4408920985006E-15 + ,-0.1114842335084 + ,0.11148423350835 + ,-4.4408920985006E-15 + ,-4.4408920985006E-15 + ,-4.4408920985006E-15 + ,-0.1114842335084 + ,-4.8849813083507E-14 + ,-0.017348638334649 + ,0.012422519998564 + ,0.021978906718807 + ,3.1974423109205E-14 + ,3.1974423109205E-14 + ,-0.021978906718768 + ,6.6613381477509E-15 + ,6.6613381477509E-15 + ,6.6613381477509E-15 + ,0.021978906718807 + ,-0.021978906718768 + ,6.6613381477509E-15 + ,6.6613381477509E-15 + ,6.6613381477509E-15 + ,0.021978906718807 + ,3.1974423109205E-14 + ,-0.021978906718768 + ,0.021978906718807 + ,-0.021978906718768 + ,0.021978906718807 + ,3.1974423109205E-14 + ,3.1974423109205E-14 + ,-0.021978906718768 + ,6.6613381477509E-15 + ,0.021978906718807 + ,3.1974423109205E-14 + ,-0.034401426717368 + ,0.034401426717364 + ,3.1974423109205E-14 + ,0.034424764212532 + ,-0.068826190929888 + ,0.068826190929864 + ,1.1546319456102E-14 + ,1.1546319456102E-14 + ,1.1546319456102E-14) > 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.0033596 > sqrtn <- sqrt(length(x)) > (armse <- sd(x) / sqrtn) [1] 0.003412471 > (armose <- arm / armse) [1] -0.9845065 > (geo <- geomean(x)) [1] NaN Warning message: In log(x) : NaNs produced > (har <- harmean(x)) [1] 1.106251e-13 > (qua <- quamean(x)) [1] 0.04825592 > (win <- winmean(x)) [,1] [,2] [1,] -2.899860e-03 3.204140e-03 [2,] -4.177990e-03 2.805952e-03 [3,] -2.231500e-03 2.117979e-03 [4,] -2.573171e-03 2.030787e-03 [5,] -2.936288e-03 1.815333e-03 [6,] -3.347348e-03 1.478093e-03 [7,] -3.258446e-03 1.454884e-03 [8,] -3.325389e-03 1.359544e-03 [9,] -3.433549e-03 1.307733e-03 [10,] -1.794236e-03 9.430635e-04 [11,] -1.712877e-03 9.284062e-04 [12,] -1.703322e-03 9.267098e-04 [13,] -8.958579e-04 8.003550e-04 [14,] -8.958579e-04 8.003550e-04 [15,] -1.001977e-03 7.854104e-04 [16,] -1.110065e-03 7.707902e-04 [17,] -1.134279e-03 7.675958e-04 [18,] -1.132212e-03 7.664165e-04 [19,] -1.003515e-03 7.492003e-04 [20,] -1.003515e-03 7.492003e-04 [21,] -8.769874e-04 7.288619e-04 [22,] -1.236548e-03 6.823413e-04 [23,] -1.296966e-03 6.666544e-04 [24,] -1.296966e-03 6.666544e-04 [25,] -1.572709e-03 6.335602e-04 [26,] -1.751157e-03 6.143042e-04 [27,] -1.765546e-03 6.079814e-04 [28,] -1.765546e-03 6.079814e-04 [29,] -1.563118e-03 5.799245e-04 [30,] -2.634837e-03 4.022387e-04 [31,] -2.634837e-03 4.022387e-04 [32,] -2.687812e-03 3.999388e-04 [33,] -2.196524e-03 3.075291e-04 [34,] -2.196524e-03 3.075291e-04 [35,] -2.152310e-03 3.011418e-04 [36,] -2.152310e-03 3.011418e-04 [37,] -2.152310e-03 3.011418e-04 [38,] -1.306105e-03 1.802931e-04 [39,] -1.179187e-03 1.625248e-04 [40,] -1.151778e-03 1.587013e-04 [41,] -2.116262e-04 2.829503e-05 [42,] -2.116262e-04 2.829503e-05 [43,] -1.404405e-04 1.874570e-05 [44,] -6.115108e-15 2.297589e-15 [45,] -5.515588e-15 2.242241e-15 [46,] -5.515588e-15 2.242241e-15 [47,] -5.411227e-15 2.232748e-15 [48,] -5.411227e-15 2.232748e-15 [49,] -5.411227e-15 2.232748e-15 [50,] -5.411227e-15 2.232748e-15 [51,] -5.637713e-15 2.213780e-15 [52,] -5.637713e-15 2.213780e-15 [53,] -5.637713e-15 2.213780e-15 [54,] -5.637713e-15 2.213780e-15 [55,] -5.637713e-15 2.213780e-15 [56,] -1.161293e-15 1.831810e-15 [57,] -1.161293e-15 1.831810e-15 [58,] -1.161293e-15 1.831810e-15 [59,] -1.161293e-15 1.831810e-15 [60,] 1.503242e-15 1.634957e-15 [61,] 1.503242e-15 1.634957e-15 [62,] 1.503242e-15 1.634957e-15 [63,] 1.503242e-15 1.634957e-15 [64,] 1.503242e-15 1.634957e-15 [65,] 6.372680e-16 1.556741e-15 [66,] 6.372680e-16 1.556741e-15 > (tri <- trimean(x)) [,1] [,2] [1,] -2.919288e-03 2.732555e-03 [2,] -2.939113e-03 2.133049e-03 [3,] -2.300516e-03 1.666086e-03 [4,] -2.324479e-03 1.468333e-03 [5,] -2.259034e-03 1.268610e-03 [6,] -2.114938e-03 1.107195e-03 [7,] -1.894076e-03 1.018971e-03 [8,] -1.682217e-03 9.237962e-04 [9,] -1.456506e-03 8.365849e-04 [10,] -1.212427e-03 7.465343e-04 [11,] -1.147055e-03 7.171815e-04 [12,] -1.088603e-03 6.873912e-04 [13,] -1.029722e-03 6.549046e-04 [14,] -1.041695e-03 6.372130e-04 [15,] -1.053950e-03 6.180406e-04 [16,] -1.058075e-03 5.990716e-04 [17,] -1.054160e-03 5.801994e-04 [18,] -1.048413e-03 5.600013e-04 [19,] -1.042665e-03 5.380275e-04 [20,] -1.045241e-03 5.159266e-04 [21,] -1.047882e-03 4.915311e-04 [22,] -1.058315e-03 4.669148e-04 [23,] -1.047794e-03 4.451247e-04 [24,] -1.033539e-03 4.227453e-04 [25,] -1.018904e-03 3.977072e-04 [26,] -9.889689e-04 3.734941e-04 [27,] -9.488115e-04 3.483731e-04 [28,] -9.067984e-04 3.204349e-04 [29,] -9.067984e-04 2.878450e-04 [30,] -8.291429e-04 2.535485e-04 [31,] -7.419113e-04 2.362573e-04 [32,] -6.521141e-04 2.160989e-04 [33,] -5.571655e-04 1.921671e-04 [34,] -4.818965e-04 1.778538e-04 [35,] -4.043115e-04 1.609238e-04 [36,] -3.262759e-04 1.414668e-04 [37,] -2.457630e-04 1.167730e-04 [38,] -1.626528e-04 8.198486e-05 [39,] -1.133236e-04 6.583939e-05 [40,] -6.777383e-05 4.778012e-05 [41,] -2.184144e-05 1.271187e-05 [42,] -1.386058e-05 9.966518e-06 [43,] -5.599700e-06 5.599700e-06 [44,] -4.290219e-15 2.296001e-15 [45,] -4.214810e-15 2.278293e-15 [46,] -4.161280e-15 2.262690e-15 [47,] -4.105730e-15 2.244928e-15 [48,] -4.052314e-15 2.225529e-15 [49,] -3.996803e-15 2.203492e-15 [50,] -3.939071e-15 2.178481e-15 [51,] -3.878983e-15 2.150103e-15 [52,] -3.807140e-15 2.119515e-15 [53,] -3.732239e-15 2.084731e-15 [54,] -3.654082e-15 2.045119e-15 [55,] -3.572451e-15 1.999912e-15 [56,] -3.487110e-15 1.948163e-15 [57,] -3.487110e-15 1.927944e-15 [58,] -3.583697e-15 1.904312e-15 [59,] -3.791005e-15 1.876724e-15 [60,] -3.902434e-15 1.844520e-15 [61,] -4.133446e-15 1.824187e-15 [62,] -4.376616e-15 1.799649e-15 [63,] -4.632931e-15 1.770120e-15 [64,] -4.903485e-15 1.734612e-15 [65,] -5.189500e-15 1.691863e-15 [66,] -5.453154e-15 1.652745e-15 > (midr <- midrange(x)) [1] -0.04695046 > midm <- array(NA,dim=8) > for (j in 1:8) midm[j] <- midmean(x,j) > midm [1] -3.112699e-15 -3.112699e-15 -3.112699e-15 -3.112699e-15 -3.112699e-15 [6] -3.112699e-15 -3.112699e-15 -3.112699e-15 > postscript(file="/var/www/html/rcomp/tmp/1ryb71290526562.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/22paa1290526562.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/34sk91290526562.tab") > > try(system("convert tmp/1ryb71290526562.ps tmp/1ryb71290526562.png",intern=TRUE)) character(0) > try(system("convert tmp/22paa1290526562.ps tmp/22paa1290526562.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.024 0.354 3.380