Statalist


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

Re: st: random draw of single variable, not whole data


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: random draw of single variable, not whole data
Date   Thu, 26 Feb 2009 15:13:46 -0500

Martin Weiss <[email protected]> :
I might be wrong, but after a quick look at help random_number_functions
  Range:        0 to nearly 1 (0 to 1 - 2^(-32))
I assumed that uniform() is zero about 1 time in 2^32 iterations.  It
is never 1, though, so 1-uniform() is "safe" in the sense of my prior
message.

On Thu, Feb 26, 2009 at 3:01 PM, Martin Weiss <[email protected]> wrote:
>
> <>
>
> "...0 with probability about 1 in 4 billion"
>
> Out of curiosity, how do you calculate that for a continuous random
> variable?
>
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index