Re: [R] Bivariate lognormal distribution

From: Spencer Graves <>
Date: Sat 26 Mar 2005 - 01:40:50 EST

      I hope Professor Ripley will correct me if I'm mistaken, but the documentation for "mvrnorm" in library(MASS) says it will, "Simulate from a Multivariate Normal Distribution". If you want the density function or probabilities or quantiles, you can get those from library(mvtnorm).

      Just for completeness, to use normal for a lognormal, you need to take the logarithms of your number (which must be all positive; zeros and negative numbers become NA), then compute mean vector and variance matrix of the logs, compute probabilities on the log scale, then back transform by exponentiating to get the results back into the original scale.

      hope this helps. spencer graves

Prof Brian Ripley wrote:

> On Thu, 24 Mar 2005, Vicky Landsman wrote:
>> Is there a package that enables to create the bivariate log-normal
>> variables?
> Just exponentiate each of a bivariate normal pair. You can get the
> latter from mvrnorm in package MASS.
> mailing list PLEASE do read the posting guide! Received on Sat Mar 26 01:47:07 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:56 EST