Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: creating log normal variables in STATA


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: creating log normal variables in STATA
Date   Fri, 22 Jul 2011 07:38:27 +0100

To simulate a lognormal, use -exp(rnormal())-.

Nick


On 22 Jul 2011, at 04:11, Danielle Boyce <[email protected]> wrote:

Hi,

How do I do this?  Is it as simple as


generate logVARIABLEX = log(
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index