[R] Log random number
Ravi Varadhan
rvaradhan at jhmi.edu
Wed Nov 14 23:11:30 CET 2007
If you want to generate log-normally distributed random numbers, see:
?rlnorm
Note: X is said to be log-normally distributed when log(X) is normally
distributed.
Ravi.
----------------------------------------------------------------------------
-------
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: rvaradhan at jhmi.edu
Webpage: http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html
----------------------------------------------------------------------------
--------
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Wensui Liu
Sent: Wednesday, November 14, 2007 4:51 PM
To: Tobias Schlottmann
Cc: R-help at stat.math.ethz.ch
Subject: Re: [R] Log random number
dont think so, unless i miss something here.
please do check the range of normal random number and the domain of
log function.
On 11/14/07, Tobias Schlottmann <tobischlot2002 at yahoo.com> wrote:
>
>
> Dear R users,
>
> Simply my question is that how it is possible to generate some random
numbers using rnorm( ) but in log transformed values.
>
> Thank you,
>
> Tobias
>
>
> ---------------------------------
>
> [[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.
>
--
===============================
WenSui Liu
Statistical Project Manager
ChoicePoint Precision Marketing
(http://spaces.msn.com/statcompute/blog)
______________________________________________
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.
More information about the R-help
mailing list