Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: generating random vars with logistic distribution


From   Kit Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: generating random vars with logistic distribution
Date   Thu, 4 Aug 2005 13:12:27 -0400

Tom Steichen's message suggested that Hilbe's rnd contained this RNG. rnd is contained in STB-28, updated in STB-44, neither of which contain generalized logistic distribution. We had a package on SSC named rnd, which contained updates to three ado-files--those for Chi- squared, t and F, allowing for non-centrality---as well as a help file describing the gen. logistic RNG, but not the code.

I combined the apparent latest version of rnd, from users directory on stata.com (located with search rnd) with the updated versions of those 4 files from SSC. The SSC package rnd now contains everything that is out there, including the updated three RNGs.

ssc install rnd, replace

As Tom indicated, routine rndglog can be used to draw from a logistic distribution.

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html


*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* 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