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

Re: st: Poisson random number generator


From   Roger Harbord <[email protected]>
To   [email protected]
Subject   Re: st: Poisson random number generator
Date   Thu, 07 Apr 2005 17:11:03 +0100

I'd suggest Bobby Gutierrez's -genpoisson-, part of his excellent -gendist- package. Type -findit genpoisson- or -findit gendist- for details and to download. This uses plug-ins so is a lot faster than Hilbe & Linde-Zwirble's -rndpoi- and -rndpoix- from STB-28, though it only starts to matter if you're doing extensive simulations. Plug-ins require Stata version 8.1 or higher.

Interestingly, -findit random poisson generate- or -findit random poisson generator- fails to bring up gendist, perhaps because the package description contains "generation" and "generating" but not "generate"? But -findit random poisson generat- works. The lesson seems to be to omit word-endings that might change when using -findit- (or -search-, presumably).

Roger.


--On 07 April 2005 17:18 +0200 Andrea Vezzulli <[email protected]> wrote:


Dear All

i would like to know if STATA v8 can generate pseudo-random numbers from a
Poisson distribution having a user-defined parameter lambda (the mean of
the  process)

Thank you

Andrea

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index