[R] Random sample from log-normal distribution

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Nov 18 16:56:51 CET 2006


On Sat, 18 Nov 2006, jim holtman wrote:

> ?rlnorm

Not for a bivariate lognormal, nor specifying via mean and variance
(which is not the normal way to specify a univariate lognormal).

I think we need clarification of exactly what is meant, but the answer is 
most likely 'no'.

>
> On 11/18/06, Megh Dal <megh700004 at yahoo.com> wrote:
>>
>> Dear all R users,
>>
>> Please forgive me if my question is too trivial.
>> Suppose I have two variables, (x,y) which is
>> log-normally distributed with expected value (mu1,
>> mu2) and some variance-covariance matrix. Now I want
>> to draw a random sample of size 1000 from this
>> distribution. Is there any function available to do
>> this?
>>
>> Thanks and regards,
>> Megh
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch 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.
>>
>
>
>
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list