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

st: RE: RE: Generating random variates


From   "Steichen, Thomas" <STEICHT@RJRT.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Generating random variates
Date   Fri, 23 Aug 2002 13:06:07 -0400

anirban basu writes:
> Thanks to Thomas for pointing out to the sg44.1 package. I 
> did update the package from the proper website. Though I ws 
> looking to use my own random numbers, these ado files are 
> useful because I can modify them to use my own rnd #s quite easily. 
> 
> However,  out of the many distributions covered by this 
> package, I did not find one for negative binomial. I was 
> wondering if anyone has any code to generate this 
> distribution.

Negative Binomial is included in the -rnd- package:

       negative binomial:   rndnbx [mu] , k(#)
                             Example: rndnblx mu, k(0.5)

Tom
CONFIDENTIALITY NOTE:  This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information.  If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system.  Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful.




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index