Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: creating log normal variables in STATA


From   dmboyce1@yahoo.com
To   statalist@hsphsun2.harvard.edu
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 <njcoxstata@gmail.com>
Sender: owner-statalist@hsphsun2.harvard.edu
Date: Fri, 22 Jul 2011 07:38:27 
To: statalist@hsphsun2.harvard.edu<statalist@hsphsun2.harvard.edu>
Reply-To: statalist@hsphsun2.harvard.edu
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 <dmboyce1@yahoo.com> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index