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 at the end of May, 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 choice indicator!


From   Austin Nichols <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Creating choice indicator!
Date   Tue, 20 Mar 2012 14:56:46 -0400

Nick Cox <n.j.cox@durham.ac.uk>:
The only problem with ceil instead of floor is that uniform() is zero
about 1 time in 2^32 iterations.

On Tue, Mar 20, 2012 at 2:24 PM, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> Alternatively, look upwards!
>
> ceil(5 * runiform())
>
> Nick
> n.j.cox@durham.ac.uk
*
*   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