Skip to content
Back to formatted view

Raw Message

Message-ID: <CAAmySGP3UQ5OaOpCysLe9Ygx6jS77YTbi90ZBWTg3VA7+-y9iw@mail.gmail.com>
Date: 2012-08-22T14:50:44Z
From: R. Michael Weylandt
Subject: log-normal distribution fitting with expected value = 1
In-Reply-To: <CAGs0_Qqrc2bAB95sP1aMy4dZVfe0t59BB89pOFzHUuyG4=AE6Q@mail.gmail.com>

Take a look at

fitdist

in the MASS package.

Cheers,
Michael

On Wed, Aug 22, 2012 at 4:23 AM, Biophil <biophilo at gmail.com> wrote:
> Dear R users,
> I would like to estimate mu and sigma of a log-normal distribution, where I
> know that the expected value is 1, as it is a normalized distribution. That
> means as E(x) = exp (mu + 1/2*sigma^2) = 1 that 2*mu = -sigma^2 . Therefore
> I only need to fit one parameter either sigma or mu. How could I do this in
> R?
> Thank you very much for your help!
> biophil
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.