[R] Log random number
jmburgos at u.washington.edu
Thu Nov 15 00:57:31 CET 2007
You'll have to explain what you mean with "log transformed values". If
your question is if it is possible to generate random numbers from a
normal distribution (using rnorm()) and then getting their logarithm,
then you can do that with the obvious caveat that the logarithm is not
defined for negative numbers.
Wensui Liu wrote:
> 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,
>> [[alternative HTML version deleted]]
>> R-help at r-project.org mailing list
>> 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