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 on April 23, and its replacement, is already up and running.

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

Re: st: distribution test

From   Maarten Buis <>
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 <> 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

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index