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 <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: random draw of single variable, not whole data
Date   Thu, 26 Feb 2009 15:13:46 -0500

Martin Weiss <martin.weiss1@gmx.de> :
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 <martin.weiss1@gmx.de> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index