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   [email protected]
To   [email protected]
Subject   Re: st: creating log normal variables in STATA
Date   Fri, 22 Jul 2011 08:53:34 +0000

Thank you!
Danielle
-----Original Message-----
From: Nick Cox <[email protected]>
Sender: [email protected]
Date: Fri, 22 Jul 2011 07:38:27 
To: [email protected]<[email protected]>
Reply-To: [email protected]
Subject: Re: st: creating log normal variables in STATA

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/


*
*   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