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(3.88 + ,3.98 + ,3.29 + ,2.88 + ,3.22 + ,3.62 + ,3.82 + ,3.54 + ,2.53 + ,2.22 + ,2.85 + ,2.78 + ,2.28 + ,2.26 + ,2.71 + ,2.77 + ,2.77 + ,2.64 + ,2.56 + ,2.07 + ,2.32 + ,2.16 + ,2.23 + ,2.4 + ,2.84 + ,2.77 + ,2.93 + ,2.91 + ,2.69 + ,2.38 + ,2.58 + ,3.19 + ,2.82 + ,2.72 + ,2.53 + ,2.7 + ,2.42 + ,2.5 + ,2.31 + ,2.41 + ,2.56 + ,2.76 + ,2.71 + ,2.44 + ,2.46 + ,2.12 + ,1.99 + ,1.86 + ,1.88 + ,1.82 + ,1.74 + ,1.71 + ,1.38 + ,1.27 + ,1.19 + ,1.28 + ,1.19 + ,1.22 + ,1.47 + ,1.46 + ,1.96 + ,1.88 + ,2.03 + ,2.04 + ,1.9 + ,1.8 + ,1.92 + ,1.92 + ,1.97 + ,2.46 + ,2.36 + ,2.53 + ,2.31 + ,1.98 + ,1.46 + ,1.26 + ,1.58 + ,1.74 + ,1.89 + ,1.85 + ,1.62 + ,1.3 + ,1.42 + ,1.15 + ,0.42 + ,0.74 + ,1.02 + ,1.51 + ,1.86 + ,1.59 + ,1.03 + ,0.44 + ,0.82 + ,0.86 + ,0.58 + ,0.59 + ,0.95 + ,0.98 + ,1.23 + ,1.17 + ,0.84 + ,0.74 + ,0.65 + ,0.91 + ,1.19 + ,1.3 + ,1.53 + ,1.94 + ,1.79 + ,1.95 + ,2.26 + ,2.04 + ,2.16 + ,2.75 + ,2.79 + ,2.88 + ,3.36 + ,2.97 + ,3.1 + ,2.49 + ,2.2 + ,2.25 + ,2.09 + ,2.79 + ,3.14 + ,2.93 + ,2.65 + ,2.67 + ,2.26 + ,2.35 + ,2.13 + ,2.18 + ,2.9 + ,2.63 + ,2.67 + ,1.81 + ,1.33 + ,0.88 + ,1.28 + ,1.26 + ,1.26 + ,1.29 + ,1.1 + ,1.37 + ,1.21 + ,1.74 + ,1.76 + ,1.48 + ,1.04 + ,1.62 + ,1.49 + ,1.79 + ,1.8 + ,1.58 + ,1.86 + ,1.74 + ,1.59 + ,1.26 + ,1.13 + ,1.92 + ,2.61 + ,2.26 + ,2.41 + ,2.26 + ,2.03 + ,2.86 + ,2.55 + ,2.27 + ,2.26 + ,2.57 + ,3.07 + ,2.76 + ,2.51 + ,2.87 + ,3.14 + ,3.11 + ,3.16 + ,2.47 + ,2.57 + ,2.89 + ,2.63 + ,2.38 + ,1.69 + ,1.96 + ,2.19 + ,1.87 + ,1.6 + ,1.63 + ,1.22 + ,1.21 + ,1.49 + ,1.64 + ,1.66 + ,1.77 + ,1.82 + ,1.78 + ,1.28 + ,1.29 + ,1.37 + ,1.12 + ,1.51 + ,2.24 + ,2.94 + ,3.09 + ,3.46 + ,3.64 + ,4.39 + ,4.15 + ,5.21 + ,5.8 + ,5.91 + ,5.39 + ,5.46 + ,4.72 + ,3.14 + ,2.63 + ,2.32 + ,1.93 + ,0.62 + ,0.6 + ,-0.37 + ,-1.1 + ,-1.68 + ,-0.78) > ylimmax = '' > ylimmin = '' > main = 'Inflatie in Belgie' > #'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] 2.109955 > sqrtn <- sqrt(length(x)) > (armse <- sd(x) / sqrtn) [1] 0.06821534 > (armose <- arm / armse) [1] 30.9308 > (geo <- geomean(x)) [1] NaN Warning message: In log(x) : NaNs produced > (har <- harmean(x)) [1] 1.868509 > (qua <- quamean(x)) [1] 2.342991 > (win <- winmean(x)) [,1] [,2] [1,] 2.112054 0.06749476 [2,] 2.111875 0.06619331 [3,] 2.116429 0.06497140 [4,] 2.127321 0.06216402 [5,] 2.116830 0.05982238 [6,] 2.111741 0.05771716 [7,] 2.104554 0.05640554 [8,] 2.098839 0.05540625 [9,] 2.095625 0.05470915 [10,] 2.094286 0.05416081 [11,] 2.089866 0.05242297 [12,] 2.088795 0.05228158 [13,] 2.088795 0.05115439 [14,] 2.085045 0.05039160 [15,] 2.079687 0.04944468 [16,] 2.076116 0.04871732 [17,] 2.073080 0.04788579 [18,] 2.073884 0.04728235 [19,] 2.073884 0.04674595 [20,] 2.075670 0.04619024 [21,] 2.076607 0.04609447 [22,] 2.077589 0.04599479 [23,] 2.080670 0.04506517 [24,] 2.081741 0.04474781 [25,] 2.081741 0.04452693 [26,] 2.081741 0.04407104 [27,] 2.072098 0.04266711 [28,] 2.070848 0.04208062 [29,] 2.069554 0.04196114 [30,] 2.069554 0.04196114 [31,] 2.069554 0.04144925 [32,] 2.068125 0.04131982 [33,] 2.068125 0.04105033 [34,] 2.066607 0.04091454 [35,] 2.068170 0.04077002 [36,] 2.071384 0.04018611 [37,] 2.069732 0.04003941 [38,] 2.068036 0.03988978 [39,] 2.066295 0.03973724 [40,] 2.064509 0.03926498 [41,] 2.060848 0.03862967 [42,] 2.060848 0.03862967 [43,] 2.058929 0.03846775 [44,] 2.058929 0.03812503 [45,] 2.058929 0.03812503 [46,] 2.060982 0.03793981 [47,] 2.058884 0.03776455 [48,] 2.065313 0.03718988 [49,] 2.071875 0.03623850 [50,] 2.065179 0.03568196 [51,] 2.065179 0.03529646 [52,] 2.074464 0.03449721 [53,] 2.081562 0.03350518 [54,] 2.079152 0.03330627 [55,] 2.076696 0.03270006 [56,] 2.079196 0.03249269 [57,] 2.076652 0.03186965 [58,] 2.074063 0.03166143 [59,] 2.076696 0.03101681 [60,] 2.076696 0.03101681 [61,] 2.082143 0.03057314 [62,] 2.090446 0.02902199 [63,] 2.082009 0.02835094 [64,] 2.082009 0.02789995 [65,] 2.082009 0.02789995 [66,] 2.082009 0.02743674 [67,] 2.087991 0.02696832 [68,] 2.084955 0.02673077 [69,] 2.081875 0.02601234 [70,] 2.085000 0.02576962 [71,] 2.091339 0.02528164 [72,] 2.094554 0.02404983 [73,] 2.097813 0.02330850 [74,] 2.104420 0.02232005 > (tri <- trimean(x)) [,1] [,2] [1,] 2.109910 0.06442554 [2,] 2.107727 0.06107482 [3,] 2.105596 0.05818245 [4,] 2.101852 0.05553383 [5,] 2.095187 0.05355235 [6,] 2.090613 0.05202869 [7,] 2.086857 0.05085658 [8,] 2.084135 0.04985534 [9,] 2.082136 0.04895795 [10,] 2.080490 0.04810962 [11,] 2.078960 0.04728397 [12,] 2.077850 0.04663204 [13,] 2.076818 0.04595595 [14,] 2.075765 0.04536554 [15,] 2.075000 0.04481998 [16,] 2.074635 0.04433653 [17,] 2.074526 0.04389264 [18,] 2.074628 0.04349697 [19,] 2.074677 0.04312881 [20,] 2.074728 0.04278191 [21,] 2.074670 0.04245742 [22,] 2.074556 0.04211806 [23,] 2.074382 0.04176279 [24,] 2.074034 0.04145434 [25,] 2.073621 0.04114735 [26,] 2.073198 0.04083413 [27,] 2.072765 0.04053094 [28,] 2.072798 0.04030483 [29,] 2.072892 0.04010074 [30,] 2.073049 0.03988746 [31,] 2.073210 0.03965611 [32,] 2.073375 0.03943956 [33,] 2.073608 0.03921273 [34,] 2.073846 0.03898394 [35,] 2.074156 0.03874382 [36,] 2.074408 0.03849205 [37,] 2.074533 0.03825636 [38,] 2.074730 0.03800860 [39,] 2.075000 0.03774780 [40,] 2.075347 0.03747285 [41,] 2.075775 0.03720350 [42,] 2.076357 0.03695018 [43,] 2.076957 0.03667204 [44,] 2.077647 0.03637738 [45,] 2.078358 0.03607701 [46,] 2.079091 0.03574679 [47,] 2.079769 0.03539697 [48,] 2.080547 0.03502412 [49,] 2.081111 0.03465572 [50,] 2.081452 0.03431826 [51,] 2.082049 0.03398417 [52,] 2.082667 0.03364186 [53,] 2.082966 0.03332145 [54,] 2.083017 0.03303744 [55,] 2.083158 0.03273449 [56,] 2.083393 0.03244056 [57,] 2.083545 0.03212662 [58,] 2.083796 0.03182184 [59,] 2.084151 0.03149462 [60,] 2.084423 0.03117737 [61,] 2.084423 0.03081867 [62,] 2.084800 0.03045065 [63,] 2.084592 0.03016372 [64,] 2.084687 0.02989197 [65,] 2.084787 0.02961807 [66,] 2.084891 0.02930249 [67,] 2.085000 0.02898114 [68,] 2.084886 0.02865361 [69,] 2.084884 0.02829720 [70,] 2.085000 0.02795451 [71,] 2.085000 0.02757992 [72,] 2.084750 0.02719362 [73,] 2.084359 0.02687187 [74,] 2.083816 0.02656998 > (midr <- midrange(x)) [1] 2.115 > midm <- array(NA,dim=8) > for (j in 1:8) midm[j] <- midmean(x,j) > midm [1] 2.083158 2.088584 2.083158 2.088584 2.088584 2.083158 2.088584 2.083158 > postscript(file="/var/www/html/rcomp/tmp/111np1255680603.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/2lzgb1255680603.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/3lt8x1255680603.tab") > > system("convert tmp/111np1255680603.ps tmp/111np1255680603.png") > system("convert tmp/2lzgb1255680603.ps tmp/2lzgb1255680603.png") > > > proc.time() user system elapsed 1.158 0.349 1.497