To clarify my previous email, I know that there is the rnd function in
Stata. But I wanted to use my own random numbers to generate these
distributions. For example, a gamma distrubtion can be generated as
gen gam1=invgammap(2.0,u1)
where I can specify "u1". Thanks,
Anirban
On Thu, 22 Aug 2002, anirban basu wrote:
> Hi all,
>
> I was wondering if there is any easy way to generate random variates for
> Poisson, Negative Binomial and Inverse Gaussian distributions where
> E(y) = mu = exp(xb) in Stata. Thanks,
>
> Anirban
>
>
> ______________________________________
> ANIRBAN BASU
> Doctoral Student
> Harris School of Public Policy Studies
> University of Chicago
> ________________________________________________________________
>
>
>
> *
> * 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/
>
*
* 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/