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


From   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <njcoxstata@gmail.com> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index