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: Drawing from a standard Cauchy
From
Dorothy Bridges <[email protected]>
To
[email protected]
Subject
Re: st: Drawing from a standard Cauchy
Date
Wed, 11 Jan 2012 22:19:54 -0800
Perfect, thank you!
On Tue, Jan 10, 2012 at 12:27 AM, Maarten Buis <[email protected]> wrote:
> On Tue, Jan 10, 2012 at 3:35 AM, Dorothy Bridges wrote:
>> Would I be correct in using the code "gen epsilon=invttail(1,
>> uniform())" to simulate sampling from a standard Cauchy?
>
> That is correct but old code. As of Stata 10.1 you can better write
> -gen epsilon = rt(1)-, see -help random number functions-.
>
> Hope this helps,
> Maarten
>
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
>
>
> http://www.maartenbuis.nl
> --------------------------
> *
> * 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/