[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: creating log normal variables in STATA
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/