Bookmark and Share

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: distribution test


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: distribution test
Date   Tue, 30 Aug 2011 13:52:37 +0200

On Tue, Aug 30, 2011 at 12:55 PM, Nick Cox <[email protected]> wrote:
> A minor curiosity is to note that although the individual results of
>
> runiform()
>
> and
>
> 1 - runiform()
>
> are only very exceptionally equal (when both are exactly 0.5) , the
> underlying distributions are identical.  So subtracting from 1 does no
> harm but is not needed here statistically.

That is correct. I used 1-runiform() because it comes directly from
the quantile function of the exponential distribution, and would thus
make it easier (for me, at least) to later see the logic I used when
creating these random draws.

-- 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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index