[R] compute geometric mean

Russell Senior seniorr at teleport.com
Sun Nov 15 21:35:37 CET 1998


>>>>> "Jorge" == Jorge M. A. Magalhae <mop41059 at mail.telepac.pt> writes:

Jorge> Hi: I need to compute the geometric mean of a population. How i
Jorge> can do it??

One way is:

   exp(mean(log(x)))

-- 
Russell Senior
seniorr at teleport.com
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list